Sync from GitHub via hub-sync
Browse filesFiles changed (8)
90 unmodified lines9192939494959697989910010110210390 unmodified lines
But which model wins on *your* documents is still document-dependent — so [ocr-bench](https://github.com/davanstrien/ocr-bench) builds a **per-collection leaderboard** for your own data (pairwise VLM-as-judge, optionally human-validated), using these scripts under the hood.
**Language coverage:** [LANGUAGES.md](LANGUAGES.md) lists what each model's card claims (and how much evidence backs it). Machine-readable catalog for agents — script → model, params, backend, image pins, languages: [`models.json`](models.json).**Language coverage:** [LANGUAGES.md](LANGUAGES.md) lists what each model's card claims (and how much evidence backs it). Machine-readable catalog for agents — script → model, params, backend, support level, tested Jobs launch config, languages: [`models.json`](models.json).
**Support levels** (smoke-tested on HF Jobs, 2026-09-23/24; details in the `support` and `support_note` fields of [`models.json`](models.json)):
- **Core** recipes carry a tested `[tool.hf-jobs]` header, so `hf jobs uv run <url> <in> <out>` needs no flags (hf CLI 1.32+). `models.json` has each recipe's launch config under `jobs`.- **Less supported (legacy):** they work but are superseded or little used, and have no header yet: `abot-ocr.py`, `falcon-ocr-bucket.py`, `falcon-ocr.py`, `firered-ocr.py`, `glm-ocr-v2.py`, `lfm2-vl-extract.py`, `lighton-ocr.py`, `lighton-ocr2-server.py`, `nanonets-ocr.py`, `nanonets-ocr2.py`, `numarkdown-ocr.py`, `ovis-ocr2-server.py`, `paddleocr-vl.py`.- **Unsupported (known broken):** kept for now, don't use: `deepseek-ocr.py`, `hunyuan-ocr.py`, `jina-ocr-v1.py`, `paddleocr-vl-1.5.py`, `rolm-ocr.py`, `smoldocling-ocr.py`. Each script's docstring names the alternative.
_Sorted by model size:_
17 unmodified lines181920212223242517 unmodified lines# ///
"""UNSUPPORTED: Broken (2026-09-23): every output row is the string 'None' (model.infer returns None). Use deepseek-ocr-vllm.py. See models.json (`support`).
Convert document images to markdown using DeepSeek-OCR with Transformers.
This script processes images through the DeepSeek-OCR model to extract14 unmodified lines151617181920212214 unmodified lines# ///
"""UNSUPPORTED: Broken (2026-09-23): the pinned 1.0 revision fails on current vLLM/transformers. Use hunyuan-ocr-1.5.py. See models.json (`support`).
Convert document images to markdown using HunyuanOCR (v1.0) with vLLM.
HunyuanOCR is a lightweight 1B parameter VLM from Tencent designed for complex16 unmodified lines171819202122232416 unmodified lines# ///
"""UNSUPPORTED: Broken (2026-09-23): vLLM 0.30 DeepEncoder kernel error; pinning vllm/vllm-openai:v0.29.0 likely fixes it (as for deepseek-ocr-vllm.py). CC-BY-NC-4.0 model. See models.json (`support`).
Convert document images to markdown using jina-ocr-v1 with vLLM (offline batch).
jina-ocr-v1 (Jina AI, 2026-09) is a DeepSeek-OCR fine-tune: the DeepEncoder vision12345345678910111213148 unmodified lines232425262728293031323334356 unmodified lines424344454647484950515253545 unmodified lines606162436364656667683 unmodified lines727374537576777879808 unmodified lines899091929394959697989910010110210310410510616 unmodified lines123124125901261271281291301311321331341351361371381391401411425 unmodified lines1481491501021511521531541551565 unmodified lines1621631641141651661671681691705 unmodified lines1761771781261791801811821831841851861871881891901911921931941954 unmodified lines2002012021372032042052062072082092102112122132142152162172182196 unmodified lines22622722815022923023123223323423523615623723823924024124224324424524624724824925025125225325417 unmodified lines27227327418627527627727827928018 unmodified lines29930030121130230330430530630730830931031131231331431531631731820 unmodified lines33934034123834234334434534634734834924435035135235314 unmodified lines3683693703713723733743753763773783793803816 unmodified lines3883893902773913923933943953965 unmodified lines4024034042894054064074084094104114124134144154164174184194204215 unmodified lines4274284293014304314324334344354364374384394404414424434444454464 unmodified lines4514524533124544554564574584594 unmodified lines4644654663234674684694704714723 unmodified lines4764774783334794804814824834843 unmodified lines48848949034349149249349449549649749849950050150250350450550650719 unmodified lines5275285293695305315325335345354 unmodified lines5405415423805435445455465475485495505515525535545555565575585597 unmodified lines5675685695705715725735745755765775785795805815825835 unmodified lines5895905914055925935945955965975985994116006016026036046056066076086096106116126136146156166176186196206 unmodified lines6276286296306316326336346356366376386396406416426436446456466474356486496506516526536546556566576586596606616626636646656666676 unmodified lines6746756764526776786796806816826836846856866876886896906916926933 unmodified lines6976986994627007017027037047057067077087097107117127137147157163 unmodified lines7207217224727237247257267277283 unmodified lines7327337344827357367377387397405 unmodified lines74674774849474975075175275375475575650075775875976011 unmodified lines7727737747757767777787797807817827837847857867877887895 unmodified lines7957967977987998008018028038048058068074 unmodified lines812813814815816817818819820821822823824825543826827828829830831547832833834835836837838839840841842843844845846847848551849850851852853854555855856857858859860861862863864865866867868869870871872873874562875876877878879880881882883884885886887888889890{ "_meta": { "description": "Machine-readable catalog of the OCR recipes in this directory: script -> model, params, backend, required image pins, and what the model's own card claims about language coverage. Human-readable language notes: LANGUAGES.md. Language evidence levels, strongest first: per-language-benchmark | count-claim | named-list | multilingual-unspecified | english-only | not-stated | not-applicable. Claims come from model cards (compiled 2026-07-15) - treat as claims, not guarantees.", "updated": "2026-07-15", "run_pattern": "hf jobs uv run --flavor <flavor> -s HF_TOKEN https://huggingface.co/datasets/uv-scripts/ocr/raw/main/<script> <input-dataset> <output-dataset>" "description": "Machine-readable catalog of the OCR recipes in this directory: script -> model, params, backend, support level, the tested Jobs launch config (the script's [tool.hf-jobs] header), and what the model's own card claims about language coverage. Human-readable language notes: LANGUAGES.md. Language evidence levels, strongest first: per-language-benchmark | count-claim | named-list | multilingual-unspecified | english-only | not-stated | not-applicable. Claims come from model cards (compiled 2026-07-15) - treat as claims, not guarantees.", "updated": "2026-09-24", "run_pattern": "hf jobs uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/<script> <input-dataset> <output-dataset> (hf CLI >= 1.32 reads image/flavor/secrets from the script's [tool.hf-jobs] header; add --timeout for long runs. Scripts without a `jobs` entry need --flavor/-s HF_TOKEN (and any --image in their docstring).)", "support_levels": { "core": "Maintained. Smoke-tested flagless on HF Jobs on 2026-09-23/24 with the pinned launch config in `jobs`.", "tool": "Maintained companion (judge, layout, text extraction), not a page-OCR recipe.", "legacy": "Works (smoke-tested 2026-09-23) but superseded or little used; no header yet. See support_note for the alternative.", "unsupported": "Known broken as of 2026-09-23; kept in the repo for now. See support_note." } }, "tesseract-ocr.py": { "model_id": null,8 unmodified lines "count": "125 traineddata packs (~100+ languages + script models)", "list_url": "https://github.com/tesseract-ocr/tessdata_best", "notes": "Broadest named coverage; script models (Latin, Cyrillic, Devanagari, ...) cover languages without a dedicated pack. Legacy baseline quality." }, "support": "core", "jobs": { "flavor": "cpu-upgrade", "secrets": [ "HF_TOKEN" ] } }, "pp-ocrv6.py": {6 unmodified lines "languages": { "evidence": "count-claim", "count": 48 }, "support": "core", "jobs": { "flavor": "t4-small", "secrets": [ "HF_TOKEN" ] } }, "falcon-ocr.py": {5 unmodified lines "license": "apache-2.0", "languages": { "evidence": "not-stated" } }, "support": "legacy", "support_note": "Falcon-OCR v1; v1.5 work is in PR #110." }, "smoldocling-ocr.py": { "model_id": "ds4sd/SmolDocling-256M-preview",3 unmodified lines "output": "DocTags", "languages": { "evidence": "english-only" } }, "support": "unsupported", "support_note": "Broken (2026-09-23): the DocTags-to-markdown converter is a stub, so rows are raw DocTags." }, "surya-ocr.py": { "model_id": "datalab-to/surya-ocr-2",8 unmodified lines "count": 91, "benchmark_url": "https://github.com/datalab-to/surya/blob/master/static/docs/multilingual.md", "notes": "38/91 languages score >=90%, 76/91 >=80%; weakest of top-15: Arabic 72.7%, Vietnamese 73.2%." }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.20.1", "python": "/usr/local/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/site-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "glm-ocr.py": {16 unmodified lines "ko" ], "notes": "Declared in card metadata only; no per-language evidence in the card body." } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "paddleocr-vl.py": { "model_id": "PaddlePaddle/PaddleOCR-VL",5 unmodified lines "evidence": "count-claim", "count": 109, "notes": "Names scripts (Cyrillic, Arabic, Devanagari, Thai); claims handwriting + historical documents; no per-language numbers." } }, "support": "legacy", "support_note": "PaddleOCR-VL 1.0; use paddleocr-vl-1.6.py." }, "paddleocr-vl-1.5.py": { "model_id": "PaddlePaddle/PaddleOCR-VL-1.5",5 unmodified lines "evidence": "count-claim", "count": "109+ (adds Tibetan, Bengali)", "notes": "Claims improved rare-character and ancient-text recognition." } }, "support": "unsupported", "support_note": "Broken (2026-09-23): every row is an [OCR ERROR] ('min_pixels' attribute removed in transformers 5). Use paddleocr-vl-1.6.py." }, "paddleocr-vl-1.6.py": { "model_id": "PaddlePaddle/PaddleOCR-VL-1.6",5 unmodified lines "evidence": "count-claim", "count": "109+ (inherited from 1.5, not restated)", "notes": "Upgrade-focused card; language-specific claims are Chinese ancient documents and rare characters." } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "ovis-ocr2.py": { "model_id": "ATH-MaaS/OvisOCR2",4 unmodified lines "license": "apache-2.0", "languages": { "evidence": "not-stated" } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "ovis-ocr2-server.py": { "model_id": "ATH-MaaS/OvisOCR2",6 unmodified lines "notes": "Server-mode sibling of ovis-ocr2.py: ~1.7x its inference throughput, per-request failure isolation. See SERVING.md.", "languages": { "evidence": "not-stated" } }, "support": "legacy", "support_note": "Use ovis-ocr2-saturate.py (same model and server, adaptive concurrency, resumable)." }, "ovis-ocr2-saturate.py": { "model_id": "ATH-MaaS/OvisOCR2", "params": "0.9B", "backend": "saturate (in-job vllm serve + saturate pump)", "image": "vllm/vllm-openai:latest", "image": "vllm/vllm-openai:v0.22.1", "task": "ocr", "output": "markdown + LaTeX + HTML tables", "license": "apache-2.0", "notes": "saturate companion of ovis-ocr2-server.py: same model/prompt/sampling/post-processing; the driver half (adaptive concurrency, retries, resumable parquet output, durable error rows) is the saturate library. SERVING dict at the top of the script is the machine-readable tuning prior.", "languages": { "evidence": "not-stated" }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.22.1", "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "lighton-ocr.py": {17 unmodified lines "da" ], "notes": "Explicitly European / Latin-alphabet focused." } }, "support": "legacy", "support_note": "LightOnOCR v1; use lighton-ocr2.py." }, "lighton-ocr2.py": { "model_id": "lightonai/LightOnOCR-2-1B",18 unmodified lines "ja" ], "notes": "Adds zh/ja over v1; declared, not benchmarked per language." } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.22.1", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.22.1" }, "lighton-ocr2-server.py": { "model_id": "lightonai/LightOnOCR-2-1B",20 unmodified lines "ja" ], "notes": "Adds zh/ja over v1; declared, not benchmarked per language." } }, "support": "legacy", "support_note": "Use lighton-ocr2-saturate.py (same model and server, adaptive concurrency, resumable)." }, "lighton-ocr2-saturate.py": { "model_id": "lightonai/LightOnOCR-2-1B", "params": "1B", "backend": "saturate (in-job vllm serve + saturate pump)", "image": "vllm/vllm-openai:latest", "image": "vllm/vllm-openai:v0.22.1", "task": "ocr", "output": "markdown", "notes": "saturate companion of lighton-ocr2-server.py: same model/message shape/sampling; the driver half (adaptive concurrency, retries, resumable parquet output, durable error rows) is the saturate library. SERVING dict at the top of the script is the machine-readable tuning prior.",14 unmodified lines "ja" ], "notes": "Adds zh/ja over v1; declared, not benchmarked per language." }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.22.1", "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "hunyuan-ocr.py": {6 unmodified lines "license": "Hunyuan Community License (excludes EU/UK/KR)", "languages": { "evidence": "multilingual-unspecified" } }, "support": "unsupported", "support_note": "Broken (2026-09-23): the pinned 1.0 revision fails on current vLLM/transformers. Use hunyuan-ocr-1.5.py." }, "hunyuan-ocr-1.5.py": { "model_id": "tencent/HunyuanOCR",5 unmodified lines "languages": { "evidence": "multilingual-unspecified", "notes": "Explicitly targets low-resource + ancient-script OCR as a design goal; nothing enumerated." } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.24.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.24.0" }, "dots-ocr.py": { "model_id": "rednote-hilab/dots.ocr",5 unmodified lines "evidence": "count-claim", "count": 100, "notes": "Explicit low-resource claim backed by in-house dots.ocr-bench (1,493 PDFs across 100 languages); aggregate scores only." } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "firered-ocr.py": { "model_id": "FireRedTeam/FireRed-OCR",4 unmodified lines "license": "apache-2.0", "languages": { "evidence": "not-stated" } }, "support": "legacy", "support_note": "Works; low adoption." }, "abot-ocr.py": { "model_id": "acvlab/ABot-OCR",4 unmodified lines "output": "markdown (text, LaTeX, HTML tables)", "languages": { "evidence": "not-stated" } }, "support": "legacy", "support_note": "Works; low adoption and no declared model licence." }, "nanonets-ocr.py": { "model_id": "nanonets/Nanonets-OCR-s",3 unmodified lines "output": "markdown (LaTeX, tables, forms)", "languages": { "evidence": "english-only" } }, "support": "legacy", "support_note": "Nanonets-OCR-s; use nanonets-ocr2.py." }, "dots-mocr.py": { "model_id": "rednote-hilab/dots.mocr",3 unmodified lines "output": "markdown", "languages": { "evidence": "multilingual-unspecified" } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "nanonets-ocr2.py": { "model_id": "nanonets/Nanonets-OCR2-3B",19 unmodified lines "ar" ], "notes": "Only card claiming multilingual handwriting; list illustrative, no per-language benchmark." } }, "support": "legacy", "support_note": "Works on its pinned vllm/vllm-openai:v0.10.2 image; not header-migrated." }, "deepseek-ocr-vllm.py": { "model_id": "deepseek-ai/DeepSeek-OCR",4 unmodified lines "license": "mit", "languages": { "evidence": "multilingual-unspecified" } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "jina-ocr-v1.py": { "model_id": "jinaai/jina-ocr-v1",7 unmodified lines "languages": { "evidence": "multilingual-unspecified", "notes": "Card metadata says multilingual; no per-language list or evidence in the card body." }, "support": "unsupported", "support_note": "Broken (2026-09-23): vLLM 0.30 DeepEncoder kernel error; pinning vllm/vllm-openai:v0.29.0 likely fixes it (as for deepseek-ocr-vllm.py). CC-BY-NC-4.0 model.", "jobs": { "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ], "env": { "UV_TORCH_BACKEND": "auto" } } }, "deepseek-ocr.py": {5 unmodified lines "license": "mit", "languages": { "evidence": "multilingual-unspecified" } }, "support": "unsupported", "support_note": "Broken (2026-09-23): every output row is the string 'None' (model.infer returns None). Use deepseek-ocr-vllm.py." }, "deepseek-ocr2-vllm.py": { "model_id": "deepseek-ai/DeepSeek-OCR-2", "params": "3B", "backend": "vllm (nightly)", "image": "vllm/vllm-openai", "image": "vllm/vllm-openai:v0.29.0", "task": "ocr", "output": "markdown", "license": "apache-2.0", "languages": { "evidence": "multilingual-unspecified" }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "unlimited-ocr-vllm.py": {6 unmodified lines "license": "mit", "languages": { "evidence": "multilingual-unspecified" }, "support": "core", "jobs": { "image": "vllm/vllm-openai:unlimited-ocr", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "nuextract3.py": { "model_id": "numind/NuExtract3", "params": "4B", "backend": "vllm", "image": "vllm/vllm-openai", "image": "vllm/vllm-openai:v0.29.0", "task": "ocr | schema-guided extraction", "output": "markdown or JSON", "languages": { "evidence": "multilingual-unspecified" }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "qianfan-ocr.py": {6 unmodified lines "evidence": "count-claim", "count": 192, "notes": "Headline claim; no list or per-language numbers." } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "olmocr2-vllm.py": { "model_id": "allenai/olmOCR-2-7B-1025-FP8",3 unmodified lines "output": "markdown", "languages": { "evidence": "english-only" } }, "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "rolm-ocr.py": { "model_id": "reducto/RolmOCR",3 unmodified lines "output": "plain text", "languages": { "evidence": "not-stated" } }, "support": "unsupported", "support_note": "Broken (2026-09-23): no KV cache room on a 24 GB L4 with the default settings. Use olmocr2-vllm.py." }, "numarkdown-ocr.py": { "model_id": "numind/NuMarkdown-8B-Thinking",3 unmodified lines "output": "markdown", "languages": { "evidence": "not-stated" } }, "support": "legacy", "support_note": "8B reasoning model; works, little used." }, "lfm2-vl-extract.py": { "model_id": "LiquidAI/LFM2.5-VL-1.6B-Extract",5 unmodified lines "languages": { "evidence": "english-only", "notes": "Vision card declares en only; the text sibling's 9-language list does NOT carry over." } }, "support": "legacy", "support_note": "Works; nuextract3.py and lift-extract.py cover image-to-JSON extraction." }, "lfm2-extract.py": { "model_id": "LiquidAI/LFM2-1.2B-Extract", "params": "1.2B", "backend": "vllm", "image": "vllm/vllm-openai", "image": "vllm/vllm-openai:v0.29.0", "task": "schema-guided extraction (text -> structured); chain after any OCR recipe", "output": "JSON / XML / YAML", "languages": {11 unmodified lines "es" ], "notes": "Text-only model (not OCR). Card prose names 9 incl. Portuguese; card YAML lists 8 (pt missing)." }, "support": "tool", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] } }, "lift-extract.py": {5 unmodified lines "license": "modified OpenRAIL-M", "languages": { "evidence": "not-stated" }, "support": "core", "jobs": { "flavor": "a100-large", "secrets": [ "HF_TOKEN" ] } }, "pp-doclayout.py": {4 unmodified lines "output": "bounding boxes + region classes", "languages": { "evidence": "not-applicable" }, "support": "tool", "jobs": { "flavor": "t4-small", "secrets": [ "HF_TOKEN" ] } }, "glm-ocr-v2.py": { "variant_of": "glm-ocr.py", "notes": "Adds checkpoint/resume for very large jobs." "notes": "Adds checkpoint/resume for very large jobs.", "support": "legacy", "support_note": "Superseded by glm-ocr.py for most runs; kept for its resume support." }, "glm-ocr-bucket.py": { "variant_of": "glm-ocr.py", "notes": "Reads images/PDFs from a mounted bucket, writes one .md per page." "notes": "Reads images/PDFs from a mounted bucket, writes one .md per page.", "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }, "falcon-ocr-bucket.py": { "variant_of": "falcon-ocr.py", "notes": "Reads images/PDFs from a mounted bucket, writes one .md per page." "notes": "Reads images/PDFs from a mounted bucket, writes one .md per page.", "support": "legacy", "support_note": "Falcon-OCR v1; v1.5 work is in PR #110. --max-samples counts files, not pages." }, "surya-ocr-bucket.py": { "variant_of": "surya-ocr.py", "notes": "Bucket-to-bucket structured OCR (--io-mode mount|copy), resumable." "notes": "Bucket-to-bucket structured OCR (--io-mode mount|copy), resumable.", "support": "core", "jobs": { "image": "vllm/vllm-openai:v0.20.1", "python": "/usr/local/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/site-packages" }, "flavor": "a10g-small", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.20.1" }, "ocr-vllm-judge.py": { "model_id": "configurable", "task": "pairwise OCR-quality judging (VLM-as-judge)", "languages": { "evidence": "not-applicable" } }, "support": "tool", "jobs": { "image": "vllm/vllm-openai:v0.29.0", "python": "/usr/bin/python3", "env": { "PYTHONPATH": "/usr/local/lib/python3.12/dist-packages" }, "flavor": "a100-large", "secrets": [ "HF_TOKEN" ] }, "image": "vllm/vllm-openai:v0.29.0" }}12 unmodified lines131415161718192012 unmodified lines# ///
"""UNSUPPORTED: Broken (2026-09-23): every row is an [OCR ERROR] ('min_pixels' attribute removed in transformers 5). Use paddleocr-vl-1.6.py. See models.json (`support`).
Convert document images to text/tables/formulas using PaddleOCR-VL-1.5 with transformers.
PaddleOCR-VL-1.5 is a compact 0.9B OCR model that achieves 94.5% SOTA accuracy on12 unmodified lines131415161718192012 unmodified lines# ///
"""UNSUPPORTED: Broken (2026-09-23): no KV cache room on a 24 GB L4 with the default settings. Use olmocr2-vllm.py. See models.json (`support`).
Extract text from document images using RolmOCR with vLLM.
This script processes images through the RolmOCR model to extract13 unmodified lines141516171819202113 unmodified lines# ///
"""UNSUPPORTED: Broken (2026-09-23): the DocTags-to-markdown converter is a stub, so rows are raw DocTags. See models.json (`support`).
Extract structured documents using SmolDocling-256M with vLLM.
This script processes images through the SmolDocling model to extractREADME.md+7-1
deepseek-ocr.py+2
hunyuan-ocr.py+2
jina-ocr-v1.py+2
models.json+365-39
paddleocr-vl-1.5.py+2
rolm-ocr.py+2
smoldocling-ocr.py+2