Skip to content

Commit d46efa0

Browse files
davanstrienclaude
andauthored
ocr: pin transformers<5 in dots-mocr (#76)
dots.mocr's remote code calls AutoProcessor.register with a string key, which transformers v5 rejects (AttributeError: 'str' object has no attribute '__module__'). transformers rode in unpinned via vllm and drifted to v5. Verified on a real l4x1 Job (5-sample smoke + 50-sample production run). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 483ff79 commit d46efa0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ocr/dots-mocr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# "tqdm",
99
# "toolz",
1010
# "torch",
11+
# # dots.mocr's remote code (AutoProcessor.register with a string key)
12+
# # breaks on transformers v5; vllm pulls transformers unpinned.
13+
# "transformers<5",
1114
# ]
1215
#
1316
# ///

0 commit comments

Comments
 (0)