Sync from GitHub via hub-sync
Browse files- README.md +7 -1
- deepseek-ocr.py +2 -0
- hunyuan-ocr.py +2 -0
- jina-ocr-v1.py +2 -0
- models.json +365 -39
- paddleocr-vl-1.5.py +2 -0
- rolm-ocr.py +2 -0
- smoldocling-ocr.py +2 -0
README.md
CHANGED
|
@@ -91,7 +91,13 @@ hf datasets leaderboard allenai/olmOCR-bench
|
|
| 91 |
|
| 92 |
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.
|
| 93 |
|
| 94 |
-
**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,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
_Sorted by model size:_
|
| 97 |
|
|
|
|
| 91 |
|
| 92 |
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.
|
| 93 |
|
| 94 |
+
**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).
|
| 95 |
+
|
| 96 |
+
**Support levels** (smoke-tested on HF Jobs, 2026-09-23/24; details in the `support` and `support_note` fields of [`models.json`](models.json)):
|
| 97 |
+
|
| 98 |
+
- **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`.
|
| 99 |
+
- **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`.
|
| 100 |
+
- **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.
|
| 101 |
|
| 102 |
_Sorted by model size:_
|
| 103 |
|
deepseek-ocr.py
CHANGED
|
@@ -18,6 +18,8 @@
|
|
| 18 |
# ///
|
| 19 |
|
| 20 |
"""
|
|
|
|
|
|
|
| 21 |
Convert document images to markdown using DeepSeek-OCR with Transformers.
|
| 22 |
|
| 23 |
This script processes images through the DeepSeek-OCR model to extract
|
|
|
|
| 18 |
# ///
|
| 19 |
|
| 20 |
"""
|
| 21 |
+
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`).
|
| 22 |
+
|
| 23 |
Convert document images to markdown using DeepSeek-OCR with Transformers.
|
| 24 |
|
| 25 |
This script processes images through the DeepSeek-OCR model to extract
|
hunyuan-ocr.py
CHANGED
|
@@ -15,6 +15,8 @@
|
|
| 15 |
# ///
|
| 16 |
|
| 17 |
"""
|
|
|
|
|
|
|
| 18 |
Convert document images to markdown using HunyuanOCR (v1.0) with vLLM.
|
| 19 |
|
| 20 |
HunyuanOCR is a lightweight 1B parameter VLM from Tencent designed for complex
|
|
|
|
| 15 |
# ///
|
| 16 |
|
| 17 |
"""
|
| 18 |
+
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`).
|
| 19 |
+
|
| 20 |
Convert document images to markdown using HunyuanOCR (v1.0) with vLLM.
|
| 21 |
|
| 22 |
HunyuanOCR is a lightweight 1B parameter VLM from Tencent designed for complex
|
jina-ocr-v1.py
CHANGED
|
@@ -17,6 +17,8 @@
|
|
| 17 |
# ///
|
| 18 |
|
| 19 |
"""
|
|
|
|
|
|
|
| 20 |
Convert document images to markdown using jina-ocr-v1 with vLLM (offline batch).
|
| 21 |
|
| 22 |
jina-ocr-v1 (Jina AI, 2026-09) is a DeepSeek-OCR fine-tune: the DeepEncoder vision
|
|
|
|
| 17 |
# ///
|
| 18 |
|
| 19 |
"""
|
| 20 |
+
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`).
|
| 21 |
+
|
| 22 |
Convert document images to markdown using jina-ocr-v1 with vLLM (offline batch).
|
| 23 |
|
| 24 |
jina-ocr-v1 (Jina AI, 2026-09) is a DeepSeek-OCR fine-tune: the DeepEncoder vision
|
models.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
| 1 |
{
|
| 2 |
"_meta": {
|
| 3 |
-
"description": "Machine-readable catalog of the OCR recipes in this directory: script -> model, params, backend,
|
| 4 |
-
"updated": "2026-
|
| 5 |
-
"run_pattern": "hf jobs uv run
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
},
|
| 7 |
"tesseract-ocr.py": {
|
| 8 |
"model_id": null,
|
|
@@ -17,6 +23,13 @@
|
|
| 17 |
"count": "125 traineddata packs (~100+ languages + script models)",
|
| 18 |
"list_url": "https://github.com/tesseract-ocr/tessdata_best",
|
| 19 |
"notes": "Broadest named coverage; script models (Latin, Cyrillic, Devanagari, ...) cover languages without a dedicated pack. Legacy baseline quality."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
},
|
| 22 |
"pp-ocrv6.py": {
|
|
@@ -29,6 +42,13 @@
|
|
| 29 |
"languages": {
|
| 30 |
"evidence": "count-claim",
|
| 31 |
"count": 48
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
},
|
| 34 |
"falcon-ocr.py": {
|
|
@@ -40,7 +60,9 @@
|
|
| 40 |
"license": "apache-2.0",
|
| 41 |
"languages": {
|
| 42 |
"evidence": "not-stated"
|
| 43 |
-
}
|
|
|
|
|
|
|
| 44 |
},
|
| 45 |
"smoldocling-ocr.py": {
|
| 46 |
"model_id": "ds4sd/SmolDocling-256M-preview",
|
|
@@ -50,7 +72,9 @@
|
|
| 50 |
"output": "DocTags",
|
| 51 |
"languages": {
|
| 52 |
"evidence": "english-only"
|
| 53 |
-
}
|
|
|
|
|
|
|
| 54 |
},
|
| 55 |
"surya-ocr.py": {
|
| 56 |
"model_id": "datalab-to/surya-ocr-2",
|
|
@@ -65,6 +89,18 @@
|
|
| 65 |
"count": 91,
|
| 66 |
"benchmark_url": "https://github.com/datalab-to/surya/blob/master/static/docs/multilingual.md",
|
| 67 |
"notes": "38/91 languages score >=90%, 76/91 >=80%; weakest of top-15: Arabic 72.7%, Vietnamese 73.2%."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
},
|
| 70 |
"glm-ocr.py": {
|
|
@@ -87,7 +123,20 @@
|
|
| 87 |
"ko"
|
| 88 |
],
|
| 89 |
"notes": "Declared in card metadata only; no per-language evidence in the card body."
|
| 90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
},
|
| 92 |
"paddleocr-vl.py": {
|
| 93 |
"model_id": "PaddlePaddle/PaddleOCR-VL",
|
|
@@ -99,7 +148,9 @@
|
|
| 99 |
"evidence": "count-claim",
|
| 100 |
"count": 109,
|
| 101 |
"notes": "Names scripts (Cyrillic, Arabic, Devanagari, Thai); claims handwriting + historical documents; no per-language numbers."
|
| 102 |
-
}
|
|
|
|
|
|
|
| 103 |
},
|
| 104 |
"paddleocr-vl-1.5.py": {
|
| 105 |
"model_id": "PaddlePaddle/PaddleOCR-VL-1.5",
|
|
@@ -111,7 +162,9 @@
|
|
| 111 |
"evidence": "count-claim",
|
| 112 |
"count": "109+ (adds Tibetan, Bengali)",
|
| 113 |
"notes": "Claims improved rare-character and ancient-text recognition."
|
| 114 |
-
}
|
|
|
|
|
|
|
| 115 |
},
|
| 116 |
"paddleocr-vl-1.6.py": {
|
| 117 |
"model_id": "PaddlePaddle/PaddleOCR-VL-1.6",
|
|
@@ -123,7 +176,20 @@
|
|
| 123 |
"evidence": "count-claim",
|
| 124 |
"count": "109+ (inherited from 1.5, not restated)",
|
| 125 |
"notes": "Upgrade-focused card; language-specific claims are Chinese ancient documents and rare characters."
|
| 126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
},
|
| 128 |
"ovis-ocr2.py": {
|
| 129 |
"model_id": "ATH-MaaS/OvisOCR2",
|
|
@@ -134,7 +200,20 @@
|
|
| 134 |
"license": "apache-2.0",
|
| 135 |
"languages": {
|
| 136 |
"evidence": "not-stated"
|
| 137 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
},
|
| 139 |
"ovis-ocr2-server.py": {
|
| 140 |
"model_id": "ATH-MaaS/OvisOCR2",
|
|
@@ -147,19 +226,29 @@
|
|
| 147 |
"notes": "Server-mode sibling of ovis-ocr2.py: ~1.7x its inference throughput, per-request failure isolation. See SERVING.md.",
|
| 148 |
"languages": {
|
| 149 |
"evidence": "not-stated"
|
| 150 |
-
}
|
|
|
|
|
|
|
| 151 |
},
|
| 152 |
"ovis-ocr2-saturate.py": {
|
| 153 |
"model_id": "ATH-MaaS/OvisOCR2",
|
| 154 |
"params": "0.9B",
|
| 155 |
"backend": "saturate (in-job vllm serve + saturate pump)",
|
| 156 |
-
"image": "vllm/vllm-openai:
|
| 157 |
"task": "ocr",
|
| 158 |
"output": "markdown + LaTeX + HTML tables",
|
| 159 |
"license": "apache-2.0",
|
| 160 |
"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.",
|
| 161 |
"languages": {
|
| 162 |
"evidence": "not-stated"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
}
|
| 164 |
},
|
| 165 |
"lighton-ocr.py": {
|
|
@@ -183,7 +272,9 @@
|
|
| 183 |
"da"
|
| 184 |
],
|
| 185 |
"notes": "Explicitly European / Latin-alphabet focused."
|
| 186 |
-
}
|
|
|
|
|
|
|
| 187 |
},
|
| 188 |
"lighton-ocr2.py": {
|
| 189 |
"model_id": "lightonai/LightOnOCR-2-1B",
|
|
@@ -208,7 +299,20 @@
|
|
| 208 |
"ja"
|
| 209 |
],
|
| 210 |
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
| 211 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
},
|
| 213 |
"lighton-ocr2-server.py": {
|
| 214 |
"model_id": "lightonai/LightOnOCR-2-1B",
|
|
@@ -235,13 +339,15 @@
|
|
| 235 |
"ja"
|
| 236 |
],
|
| 237 |
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
| 238 |
-
}
|
|
|
|
|
|
|
| 239 |
},
|
| 240 |
"lighton-ocr2-saturate.py": {
|
| 241 |
"model_id": "lightonai/LightOnOCR-2-1B",
|
| 242 |
"params": "1B",
|
| 243 |
"backend": "saturate (in-job vllm serve + saturate pump)",
|
| 244 |
-
"image": "vllm/vllm-openai:
|
| 245 |
"task": "ocr",
|
| 246 |
"output": "markdown",
|
| 247 |
"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.",
|
|
@@ -262,6 +368,14 @@
|
|
| 262 |
"ja"
|
| 263 |
],
|
| 264 |
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
}
|
| 266 |
},
|
| 267 |
"hunyuan-ocr.py": {
|
|
@@ -274,7 +388,9 @@
|
|
| 274 |
"license": "Hunyuan Community License (excludes EU/UK/KR)",
|
| 275 |
"languages": {
|
| 276 |
"evidence": "multilingual-unspecified"
|
| 277 |
-
}
|
|
|
|
|
|
|
| 278 |
},
|
| 279 |
"hunyuan-ocr-1.5.py": {
|
| 280 |
"model_id": "tencent/HunyuanOCR",
|
|
@@ -286,7 +402,20 @@
|
|
| 286 |
"languages": {
|
| 287 |
"evidence": "multilingual-unspecified",
|
| 288 |
"notes": "Explicitly targets low-resource + ancient-script OCR as a design goal; nothing enumerated."
|
| 289 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
},
|
| 291 |
"dots-ocr.py": {
|
| 292 |
"model_id": "rednote-hilab/dots.ocr",
|
|
@@ -298,7 +427,20 @@
|
|
| 298 |
"evidence": "count-claim",
|
| 299 |
"count": 100,
|
| 300 |
"notes": "Explicit low-resource claim backed by in-house dots.ocr-bench (1,493 PDFs across 100 languages); aggregate scores only."
|
| 301 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
},
|
| 303 |
"firered-ocr.py": {
|
| 304 |
"model_id": "FireRedTeam/FireRed-OCR",
|
|
@@ -309,7 +451,9 @@
|
|
| 309 |
"license": "apache-2.0",
|
| 310 |
"languages": {
|
| 311 |
"evidence": "not-stated"
|
| 312 |
-
}
|
|
|
|
|
|
|
| 313 |
},
|
| 314 |
"abot-ocr.py": {
|
| 315 |
"model_id": "acvlab/ABot-OCR",
|
|
@@ -320,7 +464,9 @@
|
|
| 320 |
"output": "markdown (text, LaTeX, HTML tables)",
|
| 321 |
"languages": {
|
| 322 |
"evidence": "not-stated"
|
| 323 |
-
}
|
|
|
|
|
|
|
| 324 |
},
|
| 325 |
"nanonets-ocr.py": {
|
| 326 |
"model_id": "nanonets/Nanonets-OCR-s",
|
|
@@ -330,7 +476,9 @@
|
|
| 330 |
"output": "markdown (LaTeX, tables, forms)",
|
| 331 |
"languages": {
|
| 332 |
"evidence": "english-only"
|
| 333 |
-
}
|
|
|
|
|
|
|
| 334 |
},
|
| 335 |
"dots-mocr.py": {
|
| 336 |
"model_id": "rednote-hilab/dots.mocr",
|
|
@@ -340,7 +488,20 @@
|
|
| 340 |
"output": "markdown",
|
| 341 |
"languages": {
|
| 342 |
"evidence": "multilingual-unspecified"
|
| 343 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
},
|
| 345 |
"nanonets-ocr2.py": {
|
| 346 |
"model_id": "nanonets/Nanonets-OCR2-3B",
|
|
@@ -366,7 +527,9 @@
|
|
| 366 |
"ar"
|
| 367 |
],
|
| 368 |
"notes": "Only card claiming multilingual handwriting; list illustrative, no per-language benchmark."
|
| 369 |
-
}
|
|
|
|
|
|
|
| 370 |
},
|
| 371 |
"deepseek-ocr-vllm.py": {
|
| 372 |
"model_id": "deepseek-ai/DeepSeek-OCR",
|
|
@@ -377,7 +540,20 @@
|
|
| 377 |
"license": "mit",
|
| 378 |
"languages": {
|
| 379 |
"evidence": "multilingual-unspecified"
|
| 380 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 381 |
},
|
| 382 |
"jina-ocr-v1.py": {
|
| 383 |
"model_id": "jinaai/jina-ocr-v1",
|
|
@@ -391,6 +567,17 @@
|
|
| 391 |
"languages": {
|
| 392 |
"evidence": "multilingual-unspecified",
|
| 393 |
"notes": "Card metadata says multilingual; no per-language list or evidence in the card body."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 394 |
}
|
| 395 |
},
|
| 396 |
"deepseek-ocr.py": {
|
|
@@ -402,18 +589,32 @@
|
|
| 402 |
"license": "mit",
|
| 403 |
"languages": {
|
| 404 |
"evidence": "multilingual-unspecified"
|
| 405 |
-
}
|
|
|
|
|
|
|
| 406 |
},
|
| 407 |
"deepseek-ocr2-vllm.py": {
|
| 408 |
"model_id": "deepseek-ai/DeepSeek-OCR-2",
|
| 409 |
"params": "3B",
|
| 410 |
"backend": "vllm (nightly)",
|
| 411 |
-
"image": "vllm/vllm-openai",
|
| 412 |
"task": "ocr",
|
| 413 |
"output": "markdown",
|
| 414 |
"license": "apache-2.0",
|
| 415 |
"languages": {
|
| 416 |
"evidence": "multilingual-unspecified"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 417 |
}
|
| 418 |
},
|
| 419 |
"unlimited-ocr-vllm.py": {
|
|
@@ -426,17 +627,41 @@
|
|
| 426 |
"license": "mit",
|
| 427 |
"languages": {
|
| 428 |
"evidence": "multilingual-unspecified"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
}
|
| 430 |
},
|
| 431 |
"nuextract3.py": {
|
| 432 |
"model_id": "numind/NuExtract3",
|
| 433 |
"params": "4B",
|
| 434 |
"backend": "vllm",
|
| 435 |
-
"image": "vllm/vllm-openai",
|
| 436 |
"task": "ocr | schema-guided extraction",
|
| 437 |
"output": "markdown or JSON",
|
| 438 |
"languages": {
|
| 439 |
"evidence": "multilingual-unspecified"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 440 |
}
|
| 441 |
},
|
| 442 |
"qianfan-ocr.py": {
|
|
@@ -449,7 +674,20 @@
|
|
| 449 |
"evidence": "count-claim",
|
| 450 |
"count": 192,
|
| 451 |
"notes": "Headline claim; no list or per-language numbers."
|
| 452 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
},
|
| 454 |
"olmocr2-vllm.py": {
|
| 455 |
"model_id": "allenai/olmOCR-2-7B-1025-FP8",
|
|
@@ -459,7 +697,20 @@
|
|
| 459 |
"output": "markdown",
|
| 460 |
"languages": {
|
| 461 |
"evidence": "english-only"
|
| 462 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 463 |
},
|
| 464 |
"rolm-ocr.py": {
|
| 465 |
"model_id": "reducto/RolmOCR",
|
|
@@ -469,7 +720,9 @@
|
|
| 469 |
"output": "plain text",
|
| 470 |
"languages": {
|
| 471 |
"evidence": "not-stated"
|
| 472 |
-
}
|
|
|
|
|
|
|
| 473 |
},
|
| 474 |
"numarkdown-ocr.py": {
|
| 475 |
"model_id": "numind/NuMarkdown-8B-Thinking",
|
|
@@ -479,7 +732,9 @@
|
|
| 479 |
"output": "markdown",
|
| 480 |
"languages": {
|
| 481 |
"evidence": "not-stated"
|
| 482 |
-
}
|
|
|
|
|
|
|
| 483 |
},
|
| 484 |
"lfm2-vl-extract.py": {
|
| 485 |
"model_id": "LiquidAI/LFM2.5-VL-1.6B-Extract",
|
|
@@ -491,13 +746,15 @@
|
|
| 491 |
"languages": {
|
| 492 |
"evidence": "english-only",
|
| 493 |
"notes": "Vision card declares en only; the text sibling's 9-language list does NOT carry over."
|
| 494 |
-
}
|
|
|
|
|
|
|
| 495 |
},
|
| 496 |
"lfm2-extract.py": {
|
| 497 |
"model_id": "LiquidAI/LFM2-1.2B-Extract",
|
| 498 |
"params": "1.2B",
|
| 499 |
"backend": "vllm",
|
| 500 |
-
"image": "vllm/vllm-openai",
|
| 501 |
"task": "schema-guided extraction (text -> structured); chain after any OCR recipe",
|
| 502 |
"output": "JSON / XML / YAML",
|
| 503 |
"languages": {
|
|
@@ -515,6 +772,18 @@
|
|
| 515 |
"es"
|
| 516 |
],
|
| 517 |
"notes": "Text-only model (not OCR). Card prose names 9 incl. Portuguese; card YAML lists 8 (pt missing)."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 518 |
}
|
| 519 |
},
|
| 520 |
"lift-extract.py": {
|
|
@@ -526,6 +795,13 @@
|
|
| 526 |
"license": "modified OpenRAIL-M",
|
| 527 |
"languages": {
|
| 528 |
"evidence": "not-stated"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
}
|
| 530 |
},
|
| 531 |
"pp-doclayout.py": {
|
|
@@ -536,29 +812,79 @@
|
|
| 536 |
"output": "bounding boxes + region classes",
|
| 537 |
"languages": {
|
| 538 |
"evidence": "not-applicable"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 539 |
}
|
| 540 |
},
|
| 541 |
"glm-ocr-v2.py": {
|
| 542 |
"variant_of": "glm-ocr.py",
|
| 543 |
-
"notes": "Adds checkpoint/resume for very large jobs."
|
|
|
|
|
|
|
| 544 |
},
|
| 545 |
"glm-ocr-bucket.py": {
|
| 546 |
"variant_of": "glm-ocr.py",
|
| 547 |
-
"notes": "Reads images/PDFs from a mounted bucket, writes one .md per page."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 548 |
},
|
| 549 |
"falcon-ocr-bucket.py": {
|
| 550 |
"variant_of": "falcon-ocr.py",
|
| 551 |
-
"notes": "Reads images/PDFs from a mounted bucket, writes one .md per page."
|
|
|
|
|
|
|
| 552 |
},
|
| 553 |
"surya-ocr-bucket.py": {
|
| 554 |
"variant_of": "surya-ocr.py",
|
| 555 |
-
"notes": "Bucket-to-bucket structured OCR (--io-mode mount|copy), resumable."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 556 |
},
|
| 557 |
"ocr-vllm-judge.py": {
|
| 558 |
"model_id": "configurable",
|
| 559 |
"task": "pairwise OCR-quality judging (VLM-as-judge)",
|
| 560 |
"languages": {
|
| 561 |
"evidence": "not-applicable"
|
| 562 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 563 |
}
|
| 564 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_meta": {
|
| 3 |
+
"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.",
|
| 4 |
+
"updated": "2026-09-24",
|
| 5 |
+
"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).)",
|
| 6 |
+
"support_levels": {
|
| 7 |
+
"core": "Maintained. Smoke-tested flagless on HF Jobs on 2026-09-23/24 with the pinned launch config in `jobs`.",
|
| 8 |
+
"tool": "Maintained companion (judge, layout, text extraction), not a page-OCR recipe.",
|
| 9 |
+
"legacy": "Works (smoke-tested 2026-09-23) but superseded or little used; no header yet. See support_note for the alternative.",
|
| 10 |
+
"unsupported": "Known broken as of 2026-09-23; kept in the repo for now. See support_note."
|
| 11 |
+
}
|
| 12 |
},
|
| 13 |
"tesseract-ocr.py": {
|
| 14 |
"model_id": null,
|
|
|
|
| 23 |
"count": "125 traineddata packs (~100+ languages + script models)",
|
| 24 |
"list_url": "https://github.com/tesseract-ocr/tessdata_best",
|
| 25 |
"notes": "Broadest named coverage; script models (Latin, Cyrillic, Devanagari, ...) cover languages without a dedicated pack. Legacy baseline quality."
|
| 26 |
+
},
|
| 27 |
+
"support": "core",
|
| 28 |
+
"jobs": {
|
| 29 |
+
"flavor": "cpu-upgrade",
|
| 30 |
+
"secrets": [
|
| 31 |
+
"HF_TOKEN"
|
| 32 |
+
]
|
| 33 |
}
|
| 34 |
},
|
| 35 |
"pp-ocrv6.py": {
|
|
|
|
| 42 |
"languages": {
|
| 43 |
"evidence": "count-claim",
|
| 44 |
"count": 48
|
| 45 |
+
},
|
| 46 |
+
"support": "core",
|
| 47 |
+
"jobs": {
|
| 48 |
+
"flavor": "t4-small",
|
| 49 |
+
"secrets": [
|
| 50 |
+
"HF_TOKEN"
|
| 51 |
+
]
|
| 52 |
}
|
| 53 |
},
|
| 54 |
"falcon-ocr.py": {
|
|
|
|
| 60 |
"license": "apache-2.0",
|
| 61 |
"languages": {
|
| 62 |
"evidence": "not-stated"
|
| 63 |
+
},
|
| 64 |
+
"support": "legacy",
|
| 65 |
+
"support_note": "Falcon-OCR v1; v1.5 work is in PR #110."
|
| 66 |
},
|
| 67 |
"smoldocling-ocr.py": {
|
| 68 |
"model_id": "ds4sd/SmolDocling-256M-preview",
|
|
|
|
| 72 |
"output": "DocTags",
|
| 73 |
"languages": {
|
| 74 |
"evidence": "english-only"
|
| 75 |
+
},
|
| 76 |
+
"support": "unsupported",
|
| 77 |
+
"support_note": "Broken (2026-09-23): the DocTags-to-markdown converter is a stub, so rows are raw DocTags."
|
| 78 |
},
|
| 79 |
"surya-ocr.py": {
|
| 80 |
"model_id": "datalab-to/surya-ocr-2",
|
|
|
|
| 89 |
"count": 91,
|
| 90 |
"benchmark_url": "https://github.com/datalab-to/surya/blob/master/static/docs/multilingual.md",
|
| 91 |
"notes": "38/91 languages score >=90%, 76/91 >=80%; weakest of top-15: Arabic 72.7%, Vietnamese 73.2%."
|
| 92 |
+
},
|
| 93 |
+
"support": "core",
|
| 94 |
+
"jobs": {
|
| 95 |
+
"image": "vllm/vllm-openai:v0.20.1",
|
| 96 |
+
"python": "/usr/local/bin/python3",
|
| 97 |
+
"env": {
|
| 98 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/site-packages"
|
| 99 |
+
},
|
| 100 |
+
"flavor": "a10g-small",
|
| 101 |
+
"secrets": [
|
| 102 |
+
"HF_TOKEN"
|
| 103 |
+
]
|
| 104 |
}
|
| 105 |
},
|
| 106 |
"glm-ocr.py": {
|
|
|
|
| 123 |
"ko"
|
| 124 |
],
|
| 125 |
"notes": "Declared in card metadata only; no per-language evidence in the card body."
|
| 126 |
+
},
|
| 127 |
+
"support": "core",
|
| 128 |
+
"jobs": {
|
| 129 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 130 |
+
"python": "/usr/bin/python3",
|
| 131 |
+
"env": {
|
| 132 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 133 |
+
},
|
| 134 |
+
"flavor": "a10g-small",
|
| 135 |
+
"secrets": [
|
| 136 |
+
"HF_TOKEN"
|
| 137 |
+
]
|
| 138 |
+
},
|
| 139 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 140 |
},
|
| 141 |
"paddleocr-vl.py": {
|
| 142 |
"model_id": "PaddlePaddle/PaddleOCR-VL",
|
|
|
|
| 148 |
"evidence": "count-claim",
|
| 149 |
"count": 109,
|
| 150 |
"notes": "Names scripts (Cyrillic, Arabic, Devanagari, Thai); claims handwriting + historical documents; no per-language numbers."
|
| 151 |
+
},
|
| 152 |
+
"support": "legacy",
|
| 153 |
+
"support_note": "PaddleOCR-VL 1.0; use paddleocr-vl-1.6.py."
|
| 154 |
},
|
| 155 |
"paddleocr-vl-1.5.py": {
|
| 156 |
"model_id": "PaddlePaddle/PaddleOCR-VL-1.5",
|
|
|
|
| 162 |
"evidence": "count-claim",
|
| 163 |
"count": "109+ (adds Tibetan, Bengali)",
|
| 164 |
"notes": "Claims improved rare-character and ancient-text recognition."
|
| 165 |
+
},
|
| 166 |
+
"support": "unsupported",
|
| 167 |
+
"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."
|
| 168 |
},
|
| 169 |
"paddleocr-vl-1.6.py": {
|
| 170 |
"model_id": "PaddlePaddle/PaddleOCR-VL-1.6",
|
|
|
|
| 176 |
"evidence": "count-claim",
|
| 177 |
"count": "109+ (inherited from 1.5, not restated)",
|
| 178 |
"notes": "Upgrade-focused card; language-specific claims are Chinese ancient documents and rare characters."
|
| 179 |
+
},
|
| 180 |
+
"support": "core",
|
| 181 |
+
"jobs": {
|
| 182 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 183 |
+
"python": "/usr/bin/python3",
|
| 184 |
+
"env": {
|
| 185 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 186 |
+
},
|
| 187 |
+
"flavor": "a10g-small",
|
| 188 |
+
"secrets": [
|
| 189 |
+
"HF_TOKEN"
|
| 190 |
+
]
|
| 191 |
+
},
|
| 192 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 193 |
},
|
| 194 |
"ovis-ocr2.py": {
|
| 195 |
"model_id": "ATH-MaaS/OvisOCR2",
|
|
|
|
| 200 |
"license": "apache-2.0",
|
| 201 |
"languages": {
|
| 202 |
"evidence": "not-stated"
|
| 203 |
+
},
|
| 204 |
+
"support": "core",
|
| 205 |
+
"jobs": {
|
| 206 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 207 |
+
"python": "/usr/bin/python3",
|
| 208 |
+
"env": {
|
| 209 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 210 |
+
},
|
| 211 |
+
"flavor": "a10g-small",
|
| 212 |
+
"secrets": [
|
| 213 |
+
"HF_TOKEN"
|
| 214 |
+
]
|
| 215 |
+
},
|
| 216 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 217 |
},
|
| 218 |
"ovis-ocr2-server.py": {
|
| 219 |
"model_id": "ATH-MaaS/OvisOCR2",
|
|
|
|
| 226 |
"notes": "Server-mode sibling of ovis-ocr2.py: ~1.7x its inference throughput, per-request failure isolation. See SERVING.md.",
|
| 227 |
"languages": {
|
| 228 |
"evidence": "not-stated"
|
| 229 |
+
},
|
| 230 |
+
"support": "legacy",
|
| 231 |
+
"support_note": "Use ovis-ocr2-saturate.py (same model and server, adaptive concurrency, resumable)."
|
| 232 |
},
|
| 233 |
"ovis-ocr2-saturate.py": {
|
| 234 |
"model_id": "ATH-MaaS/OvisOCR2",
|
| 235 |
"params": "0.9B",
|
| 236 |
"backend": "saturate (in-job vllm serve + saturate pump)",
|
| 237 |
+
"image": "vllm/vllm-openai:v0.22.1",
|
| 238 |
"task": "ocr",
|
| 239 |
"output": "markdown + LaTeX + HTML tables",
|
| 240 |
"license": "apache-2.0",
|
| 241 |
"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.",
|
| 242 |
"languages": {
|
| 243 |
"evidence": "not-stated"
|
| 244 |
+
},
|
| 245 |
+
"support": "core",
|
| 246 |
+
"jobs": {
|
| 247 |
+
"image": "vllm/vllm-openai:v0.22.1",
|
| 248 |
+
"flavor": "a10g-small",
|
| 249 |
+
"secrets": [
|
| 250 |
+
"HF_TOKEN"
|
| 251 |
+
]
|
| 252 |
}
|
| 253 |
},
|
| 254 |
"lighton-ocr.py": {
|
|
|
|
| 272 |
"da"
|
| 273 |
],
|
| 274 |
"notes": "Explicitly European / Latin-alphabet focused."
|
| 275 |
+
},
|
| 276 |
+
"support": "legacy",
|
| 277 |
+
"support_note": "LightOnOCR v1; use lighton-ocr2.py."
|
| 278 |
},
|
| 279 |
"lighton-ocr2.py": {
|
| 280 |
"model_id": "lightonai/LightOnOCR-2-1B",
|
|
|
|
| 299 |
"ja"
|
| 300 |
],
|
| 301 |
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
| 302 |
+
},
|
| 303 |
+
"support": "core",
|
| 304 |
+
"jobs": {
|
| 305 |
+
"image": "vllm/vllm-openai:v0.22.1",
|
| 306 |
+
"python": "/usr/bin/python3",
|
| 307 |
+
"env": {
|
| 308 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 309 |
+
},
|
| 310 |
+
"flavor": "a10g-small",
|
| 311 |
+
"secrets": [
|
| 312 |
+
"HF_TOKEN"
|
| 313 |
+
]
|
| 314 |
+
},
|
| 315 |
+
"image": "vllm/vllm-openai:v0.22.1"
|
| 316 |
},
|
| 317 |
"lighton-ocr2-server.py": {
|
| 318 |
"model_id": "lightonai/LightOnOCR-2-1B",
|
|
|
|
| 339 |
"ja"
|
| 340 |
],
|
| 341 |
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
| 342 |
+
},
|
| 343 |
+
"support": "legacy",
|
| 344 |
+
"support_note": "Use lighton-ocr2-saturate.py (same model and server, adaptive concurrency, resumable)."
|
| 345 |
},
|
| 346 |
"lighton-ocr2-saturate.py": {
|
| 347 |
"model_id": "lightonai/LightOnOCR-2-1B",
|
| 348 |
"params": "1B",
|
| 349 |
"backend": "saturate (in-job vllm serve + saturate pump)",
|
| 350 |
+
"image": "vllm/vllm-openai:v0.22.1",
|
| 351 |
"task": "ocr",
|
| 352 |
"output": "markdown",
|
| 353 |
"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.",
|
|
|
|
| 368 |
"ja"
|
| 369 |
],
|
| 370 |
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
| 371 |
+
},
|
| 372 |
+
"support": "core",
|
| 373 |
+
"jobs": {
|
| 374 |
+
"image": "vllm/vllm-openai:v0.22.1",
|
| 375 |
+
"flavor": "a10g-small",
|
| 376 |
+
"secrets": [
|
| 377 |
+
"HF_TOKEN"
|
| 378 |
+
]
|
| 379 |
}
|
| 380 |
},
|
| 381 |
"hunyuan-ocr.py": {
|
|
|
|
| 388 |
"license": "Hunyuan Community License (excludes EU/UK/KR)",
|
| 389 |
"languages": {
|
| 390 |
"evidence": "multilingual-unspecified"
|
| 391 |
+
},
|
| 392 |
+
"support": "unsupported",
|
| 393 |
+
"support_note": "Broken (2026-09-23): the pinned 1.0 revision fails on current vLLM/transformers. Use hunyuan-ocr-1.5.py."
|
| 394 |
},
|
| 395 |
"hunyuan-ocr-1.5.py": {
|
| 396 |
"model_id": "tencent/HunyuanOCR",
|
|
|
|
| 402 |
"languages": {
|
| 403 |
"evidence": "multilingual-unspecified",
|
| 404 |
"notes": "Explicitly targets low-resource + ancient-script OCR as a design goal; nothing enumerated."
|
| 405 |
+
},
|
| 406 |
+
"support": "core",
|
| 407 |
+
"jobs": {
|
| 408 |
+
"image": "vllm/vllm-openai:v0.24.0",
|
| 409 |
+
"python": "/usr/bin/python3",
|
| 410 |
+
"env": {
|
| 411 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 412 |
+
},
|
| 413 |
+
"flavor": "a10g-small",
|
| 414 |
+
"secrets": [
|
| 415 |
+
"HF_TOKEN"
|
| 416 |
+
]
|
| 417 |
+
},
|
| 418 |
+
"image": "vllm/vllm-openai:v0.24.0"
|
| 419 |
},
|
| 420 |
"dots-ocr.py": {
|
| 421 |
"model_id": "rednote-hilab/dots.ocr",
|
|
|
|
| 427 |
"evidence": "count-claim",
|
| 428 |
"count": 100,
|
| 429 |
"notes": "Explicit low-resource claim backed by in-house dots.ocr-bench (1,493 PDFs across 100 languages); aggregate scores only."
|
| 430 |
+
},
|
| 431 |
+
"support": "core",
|
| 432 |
+
"jobs": {
|
| 433 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 434 |
+
"python": "/usr/bin/python3",
|
| 435 |
+
"env": {
|
| 436 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 437 |
+
},
|
| 438 |
+
"flavor": "a10g-small",
|
| 439 |
+
"secrets": [
|
| 440 |
+
"HF_TOKEN"
|
| 441 |
+
]
|
| 442 |
+
},
|
| 443 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 444 |
},
|
| 445 |
"firered-ocr.py": {
|
| 446 |
"model_id": "FireRedTeam/FireRed-OCR",
|
|
|
|
| 451 |
"license": "apache-2.0",
|
| 452 |
"languages": {
|
| 453 |
"evidence": "not-stated"
|
| 454 |
+
},
|
| 455 |
+
"support": "legacy",
|
| 456 |
+
"support_note": "Works; low adoption."
|
| 457 |
},
|
| 458 |
"abot-ocr.py": {
|
| 459 |
"model_id": "acvlab/ABot-OCR",
|
|
|
|
| 464 |
"output": "markdown (text, LaTeX, HTML tables)",
|
| 465 |
"languages": {
|
| 466 |
"evidence": "not-stated"
|
| 467 |
+
},
|
| 468 |
+
"support": "legacy",
|
| 469 |
+
"support_note": "Works; low adoption and no declared model licence."
|
| 470 |
},
|
| 471 |
"nanonets-ocr.py": {
|
| 472 |
"model_id": "nanonets/Nanonets-OCR-s",
|
|
|
|
| 476 |
"output": "markdown (LaTeX, tables, forms)",
|
| 477 |
"languages": {
|
| 478 |
"evidence": "english-only"
|
| 479 |
+
},
|
| 480 |
+
"support": "legacy",
|
| 481 |
+
"support_note": "Nanonets-OCR-s; use nanonets-ocr2.py."
|
| 482 |
},
|
| 483 |
"dots-mocr.py": {
|
| 484 |
"model_id": "rednote-hilab/dots.mocr",
|
|
|
|
| 488 |
"output": "markdown",
|
| 489 |
"languages": {
|
| 490 |
"evidence": "multilingual-unspecified"
|
| 491 |
+
},
|
| 492 |
+
"support": "core",
|
| 493 |
+
"jobs": {
|
| 494 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 495 |
+
"python": "/usr/bin/python3",
|
| 496 |
+
"env": {
|
| 497 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 498 |
+
},
|
| 499 |
+
"flavor": "a10g-small",
|
| 500 |
+
"secrets": [
|
| 501 |
+
"HF_TOKEN"
|
| 502 |
+
]
|
| 503 |
+
},
|
| 504 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 505 |
},
|
| 506 |
"nanonets-ocr2.py": {
|
| 507 |
"model_id": "nanonets/Nanonets-OCR2-3B",
|
|
|
|
| 527 |
"ar"
|
| 528 |
],
|
| 529 |
"notes": "Only card claiming multilingual handwriting; list illustrative, no per-language benchmark."
|
| 530 |
+
},
|
| 531 |
+
"support": "legacy",
|
| 532 |
+
"support_note": "Works on its pinned vllm/vllm-openai:v0.10.2 image; not header-migrated."
|
| 533 |
},
|
| 534 |
"deepseek-ocr-vllm.py": {
|
| 535 |
"model_id": "deepseek-ai/DeepSeek-OCR",
|
|
|
|
| 540 |
"license": "mit",
|
| 541 |
"languages": {
|
| 542 |
"evidence": "multilingual-unspecified"
|
| 543 |
+
},
|
| 544 |
+
"support": "core",
|
| 545 |
+
"jobs": {
|
| 546 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 547 |
+
"python": "/usr/bin/python3",
|
| 548 |
+
"env": {
|
| 549 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 550 |
+
},
|
| 551 |
+
"flavor": "a10g-small",
|
| 552 |
+
"secrets": [
|
| 553 |
+
"HF_TOKEN"
|
| 554 |
+
]
|
| 555 |
+
},
|
| 556 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 557 |
},
|
| 558 |
"jina-ocr-v1.py": {
|
| 559 |
"model_id": "jinaai/jina-ocr-v1",
|
|
|
|
| 567 |
"languages": {
|
| 568 |
"evidence": "multilingual-unspecified",
|
| 569 |
"notes": "Card metadata says multilingual; no per-language list or evidence in the card body."
|
| 570 |
+
},
|
| 571 |
+
"support": "unsupported",
|
| 572 |
+
"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.",
|
| 573 |
+
"jobs": {
|
| 574 |
+
"flavor": "a10g-small",
|
| 575 |
+
"secrets": [
|
| 576 |
+
"HF_TOKEN"
|
| 577 |
+
],
|
| 578 |
+
"env": {
|
| 579 |
+
"UV_TORCH_BACKEND": "auto"
|
| 580 |
+
}
|
| 581 |
}
|
| 582 |
},
|
| 583 |
"deepseek-ocr.py": {
|
|
|
|
| 589 |
"license": "mit",
|
| 590 |
"languages": {
|
| 591 |
"evidence": "multilingual-unspecified"
|
| 592 |
+
},
|
| 593 |
+
"support": "unsupported",
|
| 594 |
+
"support_note": "Broken (2026-09-23): every output row is the string 'None' (model.infer returns None). Use deepseek-ocr-vllm.py."
|
| 595 |
},
|
| 596 |
"deepseek-ocr2-vllm.py": {
|
| 597 |
"model_id": "deepseek-ai/DeepSeek-OCR-2",
|
| 598 |
"params": "3B",
|
| 599 |
"backend": "vllm (nightly)",
|
| 600 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 601 |
"task": "ocr",
|
| 602 |
"output": "markdown",
|
| 603 |
"license": "apache-2.0",
|
| 604 |
"languages": {
|
| 605 |
"evidence": "multilingual-unspecified"
|
| 606 |
+
},
|
| 607 |
+
"support": "core",
|
| 608 |
+
"jobs": {
|
| 609 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 610 |
+
"python": "/usr/bin/python3",
|
| 611 |
+
"env": {
|
| 612 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 613 |
+
},
|
| 614 |
+
"flavor": "a10g-small",
|
| 615 |
+
"secrets": [
|
| 616 |
+
"HF_TOKEN"
|
| 617 |
+
]
|
| 618 |
}
|
| 619 |
},
|
| 620 |
"unlimited-ocr-vllm.py": {
|
|
|
|
| 627 |
"license": "mit",
|
| 628 |
"languages": {
|
| 629 |
"evidence": "multilingual-unspecified"
|
| 630 |
+
},
|
| 631 |
+
"support": "core",
|
| 632 |
+
"jobs": {
|
| 633 |
+
"image": "vllm/vllm-openai:unlimited-ocr",
|
| 634 |
+
"python": "/usr/bin/python3",
|
| 635 |
+
"env": {
|
| 636 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 637 |
+
},
|
| 638 |
+
"flavor": "a10g-small",
|
| 639 |
+
"secrets": [
|
| 640 |
+
"HF_TOKEN"
|
| 641 |
+
]
|
| 642 |
}
|
| 643 |
},
|
| 644 |
"nuextract3.py": {
|
| 645 |
"model_id": "numind/NuExtract3",
|
| 646 |
"params": "4B",
|
| 647 |
"backend": "vllm",
|
| 648 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 649 |
"task": "ocr | schema-guided extraction",
|
| 650 |
"output": "markdown or JSON",
|
| 651 |
"languages": {
|
| 652 |
"evidence": "multilingual-unspecified"
|
| 653 |
+
},
|
| 654 |
+
"support": "core",
|
| 655 |
+
"jobs": {
|
| 656 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 657 |
+
"python": "/usr/bin/python3",
|
| 658 |
+
"env": {
|
| 659 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 660 |
+
},
|
| 661 |
+
"flavor": "a10g-small",
|
| 662 |
+
"secrets": [
|
| 663 |
+
"HF_TOKEN"
|
| 664 |
+
]
|
| 665 |
}
|
| 666 |
},
|
| 667 |
"qianfan-ocr.py": {
|
|
|
|
| 674 |
"evidence": "count-claim",
|
| 675 |
"count": 192,
|
| 676 |
"notes": "Headline claim; no list or per-language numbers."
|
| 677 |
+
},
|
| 678 |
+
"support": "core",
|
| 679 |
+
"jobs": {
|
| 680 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 681 |
+
"python": "/usr/bin/python3",
|
| 682 |
+
"env": {
|
| 683 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 684 |
+
},
|
| 685 |
+
"flavor": "a10g-small",
|
| 686 |
+
"secrets": [
|
| 687 |
+
"HF_TOKEN"
|
| 688 |
+
]
|
| 689 |
+
},
|
| 690 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 691 |
},
|
| 692 |
"olmocr2-vllm.py": {
|
| 693 |
"model_id": "allenai/olmOCR-2-7B-1025-FP8",
|
|
|
|
| 697 |
"output": "markdown",
|
| 698 |
"languages": {
|
| 699 |
"evidence": "english-only"
|
| 700 |
+
},
|
| 701 |
+
"support": "core",
|
| 702 |
+
"jobs": {
|
| 703 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 704 |
+
"python": "/usr/bin/python3",
|
| 705 |
+
"env": {
|
| 706 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 707 |
+
},
|
| 708 |
+
"flavor": "a10g-small",
|
| 709 |
+
"secrets": [
|
| 710 |
+
"HF_TOKEN"
|
| 711 |
+
]
|
| 712 |
+
},
|
| 713 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 714 |
},
|
| 715 |
"rolm-ocr.py": {
|
| 716 |
"model_id": "reducto/RolmOCR",
|
|
|
|
| 720 |
"output": "plain text",
|
| 721 |
"languages": {
|
| 722 |
"evidence": "not-stated"
|
| 723 |
+
},
|
| 724 |
+
"support": "unsupported",
|
| 725 |
+
"support_note": "Broken (2026-09-23): no KV cache room on a 24 GB L4 with the default settings. Use olmocr2-vllm.py."
|
| 726 |
},
|
| 727 |
"numarkdown-ocr.py": {
|
| 728 |
"model_id": "numind/NuMarkdown-8B-Thinking",
|
|
|
|
| 732 |
"output": "markdown",
|
| 733 |
"languages": {
|
| 734 |
"evidence": "not-stated"
|
| 735 |
+
},
|
| 736 |
+
"support": "legacy",
|
| 737 |
+
"support_note": "8B reasoning model; works, little used."
|
| 738 |
},
|
| 739 |
"lfm2-vl-extract.py": {
|
| 740 |
"model_id": "LiquidAI/LFM2.5-VL-1.6B-Extract",
|
|
|
|
| 746 |
"languages": {
|
| 747 |
"evidence": "english-only",
|
| 748 |
"notes": "Vision card declares en only; the text sibling's 9-language list does NOT carry over."
|
| 749 |
+
},
|
| 750 |
+
"support": "legacy",
|
| 751 |
+
"support_note": "Works; nuextract3.py and lift-extract.py cover image-to-JSON extraction."
|
| 752 |
},
|
| 753 |
"lfm2-extract.py": {
|
| 754 |
"model_id": "LiquidAI/LFM2-1.2B-Extract",
|
| 755 |
"params": "1.2B",
|
| 756 |
"backend": "vllm",
|
| 757 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 758 |
"task": "schema-guided extraction (text -> structured); chain after any OCR recipe",
|
| 759 |
"output": "JSON / XML / YAML",
|
| 760 |
"languages": {
|
|
|
|
| 772 |
"es"
|
| 773 |
],
|
| 774 |
"notes": "Text-only model (not OCR). Card prose names 9 incl. Portuguese; card YAML lists 8 (pt missing)."
|
| 775 |
+
},
|
| 776 |
+
"support": "tool",
|
| 777 |
+
"jobs": {
|
| 778 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 779 |
+
"python": "/usr/bin/python3",
|
| 780 |
+
"env": {
|
| 781 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 782 |
+
},
|
| 783 |
+
"flavor": "a10g-small",
|
| 784 |
+
"secrets": [
|
| 785 |
+
"HF_TOKEN"
|
| 786 |
+
]
|
| 787 |
}
|
| 788 |
},
|
| 789 |
"lift-extract.py": {
|
|
|
|
| 795 |
"license": "modified OpenRAIL-M",
|
| 796 |
"languages": {
|
| 797 |
"evidence": "not-stated"
|
| 798 |
+
},
|
| 799 |
+
"support": "core",
|
| 800 |
+
"jobs": {
|
| 801 |
+
"flavor": "a100-large",
|
| 802 |
+
"secrets": [
|
| 803 |
+
"HF_TOKEN"
|
| 804 |
+
]
|
| 805 |
}
|
| 806 |
},
|
| 807 |
"pp-doclayout.py": {
|
|
|
|
| 812 |
"output": "bounding boxes + region classes",
|
| 813 |
"languages": {
|
| 814 |
"evidence": "not-applicable"
|
| 815 |
+
},
|
| 816 |
+
"support": "tool",
|
| 817 |
+
"jobs": {
|
| 818 |
+
"flavor": "t4-small",
|
| 819 |
+
"secrets": [
|
| 820 |
+
"HF_TOKEN"
|
| 821 |
+
]
|
| 822 |
}
|
| 823 |
},
|
| 824 |
"glm-ocr-v2.py": {
|
| 825 |
"variant_of": "glm-ocr.py",
|
| 826 |
+
"notes": "Adds checkpoint/resume for very large jobs.",
|
| 827 |
+
"support": "legacy",
|
| 828 |
+
"support_note": "Superseded by glm-ocr.py for most runs; kept for its resume support."
|
| 829 |
},
|
| 830 |
"glm-ocr-bucket.py": {
|
| 831 |
"variant_of": "glm-ocr.py",
|
| 832 |
+
"notes": "Reads images/PDFs from a mounted bucket, writes one .md per page.",
|
| 833 |
+
"support": "core",
|
| 834 |
+
"jobs": {
|
| 835 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 836 |
+
"python": "/usr/bin/python3",
|
| 837 |
+
"env": {
|
| 838 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 839 |
+
},
|
| 840 |
+
"flavor": "a10g-small",
|
| 841 |
+
"secrets": [
|
| 842 |
+
"HF_TOKEN"
|
| 843 |
+
]
|
| 844 |
+
},
|
| 845 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 846 |
},
|
| 847 |
"falcon-ocr-bucket.py": {
|
| 848 |
"variant_of": "falcon-ocr.py",
|
| 849 |
+
"notes": "Reads images/PDFs from a mounted bucket, writes one .md per page.",
|
| 850 |
+
"support": "legacy",
|
| 851 |
+
"support_note": "Falcon-OCR v1; v1.5 work is in PR #110. --max-samples counts files, not pages."
|
| 852 |
},
|
| 853 |
"surya-ocr-bucket.py": {
|
| 854 |
"variant_of": "surya-ocr.py",
|
| 855 |
+
"notes": "Bucket-to-bucket structured OCR (--io-mode mount|copy), resumable.",
|
| 856 |
+
"support": "core",
|
| 857 |
+
"jobs": {
|
| 858 |
+
"image": "vllm/vllm-openai:v0.20.1",
|
| 859 |
+
"python": "/usr/local/bin/python3",
|
| 860 |
+
"env": {
|
| 861 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/site-packages"
|
| 862 |
+
},
|
| 863 |
+
"flavor": "a10g-small",
|
| 864 |
+
"secrets": [
|
| 865 |
+
"HF_TOKEN"
|
| 866 |
+
]
|
| 867 |
+
},
|
| 868 |
+
"image": "vllm/vllm-openai:v0.20.1"
|
| 869 |
},
|
| 870 |
"ocr-vllm-judge.py": {
|
| 871 |
"model_id": "configurable",
|
| 872 |
"task": "pairwise OCR-quality judging (VLM-as-judge)",
|
| 873 |
"languages": {
|
| 874 |
"evidence": "not-applicable"
|
| 875 |
+
},
|
| 876 |
+
"support": "tool",
|
| 877 |
+
"jobs": {
|
| 878 |
+
"image": "vllm/vllm-openai:v0.29.0",
|
| 879 |
+
"python": "/usr/bin/python3",
|
| 880 |
+
"env": {
|
| 881 |
+
"PYTHONPATH": "/usr/local/lib/python3.12/dist-packages"
|
| 882 |
+
},
|
| 883 |
+
"flavor": "a100-large",
|
| 884 |
+
"secrets": [
|
| 885 |
+
"HF_TOKEN"
|
| 886 |
+
]
|
| 887 |
+
},
|
| 888 |
+
"image": "vllm/vllm-openai:v0.29.0"
|
| 889 |
}
|
| 890 |
}
|
paddleocr-vl-1.5.py
CHANGED
|
@@ -13,6 +13,8 @@
|
|
| 13 |
# ///
|
| 14 |
|
| 15 |
"""
|
|
|
|
|
|
|
| 16 |
Convert document images to text/tables/formulas using PaddleOCR-VL-1.5 with transformers.
|
| 17 |
|
| 18 |
PaddleOCR-VL-1.5 is a compact 0.9B OCR model that achieves 94.5% SOTA accuracy on
|
|
|
|
| 13 |
# ///
|
| 14 |
|
| 15 |
"""
|
| 16 |
+
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`).
|
| 17 |
+
|
| 18 |
Convert document images to text/tables/formulas using PaddleOCR-VL-1.5 with transformers.
|
| 19 |
|
| 20 |
PaddleOCR-VL-1.5 is a compact 0.9B OCR model that achieves 94.5% SOTA accuracy on
|
rolm-ocr.py
CHANGED
|
@@ -13,6 +13,8 @@
|
|
| 13 |
# ///
|
| 14 |
|
| 15 |
"""
|
|
|
|
|
|
|
| 16 |
Extract text from document images using RolmOCR with vLLM.
|
| 17 |
|
| 18 |
This script processes images through the RolmOCR model to extract
|
|
|
|
| 13 |
# ///
|
| 14 |
|
| 15 |
"""
|
| 16 |
+
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`).
|
| 17 |
+
|
| 18 |
Extract text from document images using RolmOCR with vLLM.
|
| 19 |
|
| 20 |
This script processes images through the RolmOCR model to extract
|
smoldocling-ocr.py
CHANGED
|
@@ -14,6 +14,8 @@
|
|
| 14 |
# ///
|
| 15 |
|
| 16 |
"""
|
|
|
|
|
|
|
| 17 |
Extract structured documents using SmolDocling-256M with vLLM.
|
| 18 |
|
| 19 |
This script processes images through the SmolDocling model to extract
|
|
|
|
| 14 |
# ///
|
| 15 |
|
| 16 |
"""
|
| 17 |
+
UNSUPPORTED: Broken (2026-09-23): the DocTags-to-markdown converter is a stub, so rows are raw DocTags. See models.json (`support`).
|
| 18 |
+
|
| 19 |
Extract structured documents using SmolDocling-256M with vLLM.
|
| 20 |
|
| 21 |
This script processes images through the SmolDocling model to extract
|