Sync from GitHub via hub-sync
Browse files- AGENTS.md +4 -0
- CLAUDE.md +5 -0
- LANGUAGES.md +38 -0
- README.md +4 -2
- models.json +360 -0
AGENTS.md
CHANGED
|
@@ -25,6 +25,10 @@ a short note. Axes that matter:
|
|
| 25 |
`falcon-perception` are alternatives for specific models.
|
| 26 |
- **Task support**: most scripts do plain text; some expose `--task-mode`
|
| 27 |
(table, formula, layout, etc.) — check the script's own docstring.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
For the authoritative benchmark numbers on any model in the table, query the model
|
| 30 |
card programmatically — every OCR model publishes eval results on its card:
|
|
|
|
| 25 |
`falcon-perception` are alternatives for specific models.
|
| 26 |
- **Task support**: most scripts do plain text; some expose `--task-mode`
|
| 27 |
(table, formula, layout, etc.) — check the script's own docstring.
|
| 28 |
+
- **Language coverage**: [`models.json`](./models.json) maps every script to its model,
|
| 29 |
+
params, backend, required image pins, and what the model card claims about languages —
|
| 30 |
+
with an `evidence` level (`per-language-benchmark` beats a bare `multilingual` tag).
|
| 31 |
+
Human-readable version: [LANGUAGES.md](./LANGUAGES.md).
|
| 32 |
|
| 33 |
For the authoritative benchmark numbers on any model in the table, query the model
|
| 34 |
card programmatically — every OCR model publishes eval results on its card:
|
CLAUDE.md
CHANGED
|
@@ -15,6 +15,11 @@ script's docstring and `README.md`; benchmark result tables live in `OCR-BENCHMA
|
|
| 15 |
Read this before adding or changing a recipe. Each rule maps to a failure we've actually hit; the
|
| 16 |
planned **self-review skill** (see [Deferred](#deferred--tracked)) just enforces this list.
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
- **Self-contained single file.** Each recipe is one PEP 723 UV script runnable from a raw URL
|
| 19 |
(`hf jobs uv run <url>`). No shared *importable local* module (the job env only gets the one file).
|
| 20 |
Extra pip deps are fine — **pin them**. A heavy/stable/shared subsystem may become an opt-in *package*
|
|
|
|
| 15 |
Read this before adding or changing a recipe. Each rule maps to a failure we've actually hit; the
|
| 16 |
planned **self-review skill** (see [Deferred](#deferred--tracked)) just enforces this list.
|
| 17 |
|
| 18 |
+
- **Catalog entry.** Adding or changing a recipe means updating [`models.json`](./models.json)
|
| 19 |
+
(script → model, params, backend, image pins, language claim) and, if the language claim
|
| 20 |
+
changed, [LANGUAGES.md](./LANGUAGES.md). Language fields record what the **model card claims**
|
| 21 |
+
(with an evidence level), never inferred coverage. Hand-maintained for now; if drift becomes a
|
| 22 |
+
problem, the follow-up is generating the README table from the JSON.
|
| 23 |
- **Self-contained single file.** Each recipe is one PEP 723 UV script runnable from a raw URL
|
| 24 |
(`hf jobs uv run <url>`). No shared *importable local* module (the job env only gets the one file).
|
| 25 |
Extra pip deps are fine — **pin them**. A heavy/stable/shared subsystem may become an opt-in *package*
|
LANGUAGES.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Language support
|
| 2 |
+
|
| 3 |
+
What each model's own card claims about language coverage — compiled from the model cards as of **2026-07-15**. Treat these as **claims, not guarantees**: only one model (Surya) publishes per-language scores, and a "multilingual" tag tells you very little. Machine-readable version (plus params, backend, image pins): [`models.json`](models.json).
|
| 4 |
+
|
| 5 |
+
The fastest way to find out whether a model handles *your* language is to run it on a few of your own pages — `--max-samples 10` costs a few cents on a T4/L4:
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
hf jobs uv run --flavor l4x1 -s HF_TOKEN \
|
| 9 |
+
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/surya-ocr.py \
|
| 10 |
+
your-dataset your-output --max-samples 10
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
_Sorted by strength of evidence, then coverage:_
|
| 14 |
+
|
| 15 |
+
| Model | Card claim | Evidence |
|
| 16 |
+
|-------|-----------|----------|
|
| 17 |
+
| [Surya OCR 2](https://huggingface.co/datalab-to/surya-ocr-2) | **91 languages** | The only **per-language benchmark** published ([full table](https://github.com/datalab-to/surya/blob/master/static/docs/multilingual.md)): 38/91 score ≥90%, 76/91 ≥80%. Weakest of the top-15: Arabic 72.7%, Vietnamese 73.2% |
|
| 18 |
+
| [dots.ocr](https://huggingface.co/rednote-hilab/dots.ocr) | 100 languages | Explicit **low-resource** claim, backed by an in-house benchmark (1,493 PDFs across 100 languages) — aggregate scores only, not per-language |
|
| 19 |
+
| [Tesseract 5](https://github.com/tesseract-ocr/tesseract) | 125 traineddata packs (~100+ languages + script models) | Fully **enumerable** ([tessdata_best](https://github.com/tesseract-ocr/tessdata_best)) — the broadest *named* coverage here, incl. many low-resource languages; script models (Latin, Cyrillic, Devanagari, …) cover languages without a dedicated pack |
|
| 20 |
+
| [Qianfan-OCR](https://huggingface.co/baidu/Qianfan-OCR) | 192 languages | Headline claim; no list or per-language numbers |
|
| 21 |
+
| [PaddleOCR-VL](https://huggingface.co/PaddlePaddle/PaddleOCR-VL) / [1.5](https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.5) / [1.6](https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.6) | 109 languages; 1.5 adds Tibetan + Bengali | Names scripts (Cyrillic, Arabic, Devanagari, Thai) and claims handwriting + historical documents; no per-language numbers |
|
| 22 |
+
| [PP-OCRv6](https://huggingface.co/collections/PaddlePaddle/pp-ocrv6) | 48 languages | Official card claim |
|
| 23 |
+
| [Nanonets-OCR2-3B](https://huggingface.co/nanonets/Nanonets-OCR2-3B) | 11 named + "many more" (incl. Arabic + CJK) | Illustrative list, no benchmark — but the only card claiming multilingual **handwriting** |
|
| 24 |
+
| [LightOnOCR-2-1B](https://huggingface.co/lightonai/LightOnOCR-2-1B) | 11 (9 European + zh/ja) | Declared, not benchmarked. [v1](https://huggingface.co/lightonai/LightOnOCR-1B-1025) is explicitly European/Latin-script only (9) |
|
| 25 |
+
| [GLM-OCR](https://huggingface.co/zai-org/GLM-OCR) | 8 (zh en fr es ru de ja ko) | Declared in card metadata only; no per-language evidence in the card body |
|
| 26 |
+
| [HunyuanOCR-1.5](https://huggingface.co/tencent/HunyuanOCR) | "Multilingual" | Nothing enumerated, but explicitly targets **low-resource + ancient-script OCR** as a design goal (new in 1.5; the pinned 1.0 revision doesn't claim this) |
|
| 27 |
+
| [dots.mocr](https://huggingface.co/rednote-hilab/dots.mocr) · [DeepSeek-OCR](https://huggingface.co/deepseek-ai/DeepSeek-OCR) / [-2](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2) · [Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR) · [NuExtract3](https://huggingface.co/numind/NuExtract3) | "Multilingual", unspecified | A tag or one-liner only — no count, list, or benchmark |
|
| 28 |
+
| [olmOCR-2](https://huggingface.co/allenai/olmOCR-2-7B-1025-FP8) · [Nanonets-OCR-s](https://huggingface.co/nanonets/Nanonets-OCR-s) · [SmolDocling](https://huggingface.co/ds4sd/SmolDocling-256M-preview) · [LFM2.5-VL-Extract](https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-Extract) | English only | Stated on the card |
|
| 29 |
+
| [Falcon-OCR](https://huggingface.co/tiiuae/Falcon-OCR) · [OvisOCR2](https://huggingface.co/ATH-MaaS/OvisOCR2) · [FireRed-OCR](https://huggingface.co/FireRedTeam/FireRed-OCR) · [ABot-OCR](https://huggingface.co/acvlab/ABot-OCR) · [RolmOCR](https://huggingface.co/reducto/RolmOCR) · [NuMarkdown-8B](https://huggingface.co/numind/NuMarkdown-8B-Thinking) · [lift](https://huggingface.co/datalab-to/lift) | Not stated | No language information on the card at all |
|
| 30 |
+
|
| 31 |
+
Text-only extraction: [LFM2-1.2B-Extract](https://huggingface.co/LiquidAI/LFM2-1.2B-Extract) (chains after OCR) names 9 languages: English, Arabic, Chinese, French, German, Japanese, Korean, Portuguese, Spanish.
|
| 32 |
+
|
| 33 |
+
## Reading the table for low-resource work
|
| 34 |
+
|
| 35 |
+
- **Only Surya lets you check your language before running anything** — its [benchmark table](https://github.com/datalab-to/surya/blob/master/static/docs/multilingual.md) has a row per language.
|
| 36 |
+
- **Tesseract's coverage is enumerable** — if your language has a [traineddata pack](https://github.com/tesseract-ocr/tessdata_best), it's supported (quality varies; it's the legacy baseline, not the quality leader).
|
| 37 |
+
- **dots.ocr and HunyuanOCR-1.5 are the VLMs that talk about low-resource languages at all**; PaddleOCR-VL-1.5 names Tibetan and Bengali specifically.
|
| 38 |
+
- A big claimed number (192, 109) without a list or per-language scores means you're testing it yourself either way — which is cheap (see the command above).
|
README.md
CHANGED
|
@@ -45,12 +45,14 @@ hf datasets leaderboard allenai/olmOCR-bench
|
|
| 45 |
|
| 46 |
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.
|
| 47 |
|
|
|
|
|
|
|
| 48 |
_Sorted by model size:_
|
| 49 |
|
| 50 |
| Script | Model | Size | Backend | Notes |
|
| 51 |
|--------|-------|------|---------|-------|
|
| 52 |
| [`tesseract-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/tesseract-ocr.py) | [Tesseract 5](https://github.com/tesseract-ocr/tesseract) | n/a (classical) | pytesseract (CPU) | **The legacy baseline** — no GPU at all, runs on `cpu-upgrade`. Plain-text output, `--lang`/`--psm`/`--oem` exposed, 100+ language packs via apt. Apache 2.0 |
|
| 53 |
-
| [`pp-ocrv6.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/pp-ocrv6.py) | [PP-OCRv6](https://huggingface.co/collections/PaddlePaddle/pp-ocrv6) | 1.5–34.5M | PaddleOCR (paddle) | **Smallest neural** — classical det+rec pipeline, not a VLM. Three tiers (`--model-tier tiny\|small\|medium`), plain-text output (not markdown).
|
| 54 |
| [`falcon-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/falcon-ocr.py) | [Falcon-OCR](https://huggingface.co/tiiuae/Falcon-OCR) | 0.3B | falcon-perception | Smallest VLM in collection. #1 on multi-column docs and tables (olmOCR), Apache 2.0 |
|
| 55 |
| [`smoldocling-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/smoldocling-ocr.py) | [SmolDocling](https://huggingface.co/ds4sd/SmolDocling-256M-preview) | 256M | Transformers | DocTags structured output |
|
| 56 |
| [`surya-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/surya-ocr.py) | [Surya OCR 2](https://huggingface.co/datalab-to/surya-ocr-2) | 0.65B | vLLM | **Structured** OCR + `--task layout\|table`: per-block HTML with bboxes & reading order in an extra `surya_blocks` column. 91 langs, top-under-3B on olmOCR-Bench. Modified OpenRAIL-M license. Needs the **pinned** `vllm/vllm-openai:v0.20.1` image |
|
|
@@ -63,7 +65,7 @@ _Sorted by model size:_
|
|
| 63 |
| [`lighton-ocr2.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/lighton-ocr2.py) | [LightOnOCR-2-1B](https://huggingface.co/lightonai/LightOnOCR-2-1B) | 1B | vLLM | 7× faster than v1, RLVR trained |
|
| 64 |
| [`hunyuan-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/hunyuan-ocr.py) | [HunyuanOCR 1.0](https://huggingface.co/tencent/HunyuanOCR/tree/f6af82ee007fe6091b29fb3bb287b491ead41c82) | 1B | vLLM | Lightweight VLM. Pinned to the last 1.0 revision (repo root became 1.5 in-place on 2026-07-06). [Hunyuan Community License](https://huggingface.co/tencent/HunyuanOCR/blob/main/LICENSE) (excludes EU/UK/KR) |
|
| 65 |
| [`hunyuan-ocr-1.5.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/hunyuan-ocr-1.5.py) | [HunyuanOCR-1.5](https://huggingface.co/tencent/HunyuanOCR) | 1B | vLLM | 128K context, 4K images, 12 task types, ancient scripts. ~4-5× faster/page than dots.ocr & DeepSeek-OCR-2 (tech report). [Hunyuan Community License](https://huggingface.co/tencent/HunyuanOCR/blob/main/LICENSE) (excludes EU/UK/KR) |
|
| 66 |
-
| [`dots-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/dots-ocr.py) | [
|
| 67 |
| [`firered-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/firered-ocr.py) | [FireRed-OCR](https://huggingface.co/FireRedTeam/FireRed-OCR) | 2.1B | vLLM | Qwen3-VL fine-tune, Apache 2.0 |
|
| 68 |
| [`abot-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/abot-ocr.py) | [ABot-OCR](https://huggingface.co/acvlab/ABot-OCR) | 2B | vLLM | Qwen3-VL based, doc→Markdown (text/LaTeX/HTML tables). Needs `vllm/vllm-openai` image. [paper](https://arxiv.org/abs/2605.27978) |
|
| 69 |
| [`nanonets-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/nanonets-ocr.py) | [Nanonets-OCR-s](https://huggingface.co/nanonets/Nanonets-OCR-s) | 2B | vLLM | LaTeX, tables, forms |
|
|
|
|
| 45 |
|
| 46 |
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.
|
| 47 |
|
| 48 |
+
**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).
|
| 49 |
+
|
| 50 |
_Sorted by model size:_
|
| 51 |
|
| 52 |
| Script | Model | Size | Backend | Notes |
|
| 53 |
|--------|-------|------|---------|-------|
|
| 54 |
| [`tesseract-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/tesseract-ocr.py) | [Tesseract 5](https://github.com/tesseract-ocr/tesseract) | n/a (classical) | pytesseract (CPU) | **The legacy baseline** — no GPU at all, runs on `cpu-upgrade`. Plain-text output, `--lang`/`--psm`/`--oem` exposed, 100+ language packs via apt. Apache 2.0 |
|
| 55 |
+
| [`pp-ocrv6.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/pp-ocrv6.py) | [PP-OCRv6](https://huggingface.co/collections/PaddlePaddle/pp-ocrv6) | 1.5–34.5M | PaddleOCR (paddle) | **Smallest neural** — classical det+rec pipeline, not a VLM. Three tiers (`--model-tier tiny\|small\|medium`), plain-text output (not markdown). 48 langs. Runs on `t4-small`. Apache 2.0 |
|
| 56 |
| [`falcon-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/falcon-ocr.py) | [Falcon-OCR](https://huggingface.co/tiiuae/Falcon-OCR) | 0.3B | falcon-perception | Smallest VLM in collection. #1 on multi-column docs and tables (olmOCR), Apache 2.0 |
|
| 57 |
| [`smoldocling-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/smoldocling-ocr.py) | [SmolDocling](https://huggingface.co/ds4sd/SmolDocling-256M-preview) | 256M | Transformers | DocTags structured output |
|
| 58 |
| [`surya-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/surya-ocr.py) | [Surya OCR 2](https://huggingface.co/datalab-to/surya-ocr-2) | 0.65B | vLLM | **Structured** OCR + `--task layout\|table`: per-block HTML with bboxes & reading order in an extra `surya_blocks` column. 91 langs, top-under-3B on olmOCR-Bench. Modified OpenRAIL-M license. Needs the **pinned** `vllm/vllm-openai:v0.20.1` image |
|
|
|
|
| 65 |
| [`lighton-ocr2.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/lighton-ocr2.py) | [LightOnOCR-2-1B](https://huggingface.co/lightonai/LightOnOCR-2-1B) | 1B | vLLM | 7× faster than v1, RLVR trained |
|
| 66 |
| [`hunyuan-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/hunyuan-ocr.py) | [HunyuanOCR 1.0](https://huggingface.co/tencent/HunyuanOCR/tree/f6af82ee007fe6091b29fb3bb287b491ead41c82) | 1B | vLLM | Lightweight VLM. Pinned to the last 1.0 revision (repo root became 1.5 in-place on 2026-07-06). [Hunyuan Community License](https://huggingface.co/tencent/HunyuanOCR/blob/main/LICENSE) (excludes EU/UK/KR) |
|
| 67 |
| [`hunyuan-ocr-1.5.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/hunyuan-ocr-1.5.py) | [HunyuanOCR-1.5](https://huggingface.co/tencent/HunyuanOCR) | 1B | vLLM | 128K context, 4K images, 12 task types, ancient scripts. ~4-5× faster/page than dots.ocr & DeepSeek-OCR-2 (tech report). [Hunyuan Community License](https://huggingface.co/tencent/HunyuanOCR/blob/main/LICENSE) (excludes EU/UK/KR) |
|
| 68 |
+
| [`dots-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/dots-ocr.py) | [dots.ocr](https://huggingface.co/rednote-hilab/dots.ocr) | 1.7B | vLLM | 100 languages (in-house bench), explicit low-resource claim |
|
| 69 |
| [`firered-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/firered-ocr.py) | [FireRed-OCR](https://huggingface.co/FireRedTeam/FireRed-OCR) | 2.1B | vLLM | Qwen3-VL fine-tune, Apache 2.0 |
|
| 70 |
| [`abot-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/abot-ocr.py) | [ABot-OCR](https://huggingface.co/acvlab/ABot-OCR) | 2B | vLLM | Qwen3-VL based, doc→Markdown (text/LaTeX/HTML tables). Needs `vllm/vllm-openai` image. [paper](https://arxiv.org/abs/2605.27978) |
|
| 71 |
| [`nanonets-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/nanonets-ocr.py) | [Nanonets-OCR-s](https://huggingface.co/nanonets/Nanonets-OCR-s) | 2B | vLLM | LaTeX, tables, forms |
|
models.json
ADDED
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_meta": {
|
| 3 |
+
"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.",
|
| 4 |
+
"updated": "2026-07-15",
|
| 5 |
+
"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>"
|
| 6 |
+
},
|
| 7 |
+
"tesseract-ocr.py": {
|
| 8 |
+
"model_id": null,
|
| 9 |
+
"model_name": "Tesseract 5",
|
| 10 |
+
"params": null,
|
| 11 |
+
"backend": "pytesseract (CPU)",
|
| 12 |
+
"task": "ocr",
|
| 13 |
+
"output": "plain text",
|
| 14 |
+
"license": "apache-2.0",
|
| 15 |
+
"languages": {
|
| 16 |
+
"evidence": "named-list",
|
| 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": {
|
| 23 |
+
"model_id": "PaddlePaddle/PP-OCRv6",
|
| 24 |
+
"params": "1.5M-34.5M",
|
| 25 |
+
"backend": "paddleocr",
|
| 26 |
+
"task": "ocr",
|
| 27 |
+
"output": "plain text",
|
| 28 |
+
"license": "apache-2.0",
|
| 29 |
+
"languages": { "evidence": "count-claim", "count": 48 }
|
| 30 |
+
},
|
| 31 |
+
"falcon-ocr.py": {
|
| 32 |
+
"model_id": "tiiuae/Falcon-OCR",
|
| 33 |
+
"params": "0.3B",
|
| 34 |
+
"backend": "falcon-perception",
|
| 35 |
+
"task": "ocr",
|
| 36 |
+
"output": "markdown",
|
| 37 |
+
"license": "apache-2.0",
|
| 38 |
+
"languages": { "evidence": "not-stated" }
|
| 39 |
+
},
|
| 40 |
+
"smoldocling-ocr.py": {
|
| 41 |
+
"model_id": "ds4sd/SmolDocling-256M-preview",
|
| 42 |
+
"params": "256M",
|
| 43 |
+
"backend": "transformers",
|
| 44 |
+
"task": "ocr",
|
| 45 |
+
"output": "DocTags",
|
| 46 |
+
"languages": { "evidence": "english-only" }
|
| 47 |
+
},
|
| 48 |
+
"surya-ocr.py": {
|
| 49 |
+
"model_id": "datalab-to/surya-ocr-2",
|
| 50 |
+
"params": "0.65B",
|
| 51 |
+
"backend": "vllm",
|
| 52 |
+
"image": "vllm/vllm-openai:v0.20.1",
|
| 53 |
+
"task": "ocr | layout | table",
|
| 54 |
+
"output": "markdown + surya_blocks (per-block HTML, bboxes, reading order)",
|
| 55 |
+
"license": "modified OpenRAIL-M",
|
| 56 |
+
"languages": {
|
| 57 |
+
"evidence": "per-language-benchmark",
|
| 58 |
+
"count": 91,
|
| 59 |
+
"benchmark_url": "https://github.com/datalab-to/surya/blob/master/static/docs/multilingual.md",
|
| 60 |
+
"notes": "38/91 languages score >=90%, 76/91 >=80%; weakest of top-15: Arabic 72.7%, Vietnamese 73.2%."
|
| 61 |
+
}
|
| 62 |
+
},
|
| 63 |
+
"glm-ocr.py": {
|
| 64 |
+
"model_id": "zai-org/GLM-OCR",
|
| 65 |
+
"params": "0.9B",
|
| 66 |
+
"backend": "vllm",
|
| 67 |
+
"task": "ocr",
|
| 68 |
+
"output": "markdown",
|
| 69 |
+
"languages": {
|
| 70 |
+
"evidence": "named-list",
|
| 71 |
+
"count": 8,
|
| 72 |
+
"named": ["zh", "en", "fr", "es", "ru", "de", "ja", "ko"],
|
| 73 |
+
"notes": "Declared in card metadata only; no per-language evidence in the card body."
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"paddleocr-vl.py": {
|
| 77 |
+
"model_id": "PaddlePaddle/PaddleOCR-VL",
|
| 78 |
+
"params": "0.9B",
|
| 79 |
+
"backend": "vllm",
|
| 80 |
+
"task": "ocr | table | formula | chart",
|
| 81 |
+
"output": "markdown",
|
| 82 |
+
"languages": {
|
| 83 |
+
"evidence": "count-claim",
|
| 84 |
+
"count": 109,
|
| 85 |
+
"notes": "Names scripts (Cyrillic, Arabic, Devanagari, Thai); claims handwriting + historical documents; no per-language numbers."
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"paddleocr-vl-1.5.py": {
|
| 89 |
+
"model_id": "PaddlePaddle/PaddleOCR-VL-1.5",
|
| 90 |
+
"params": "0.9B",
|
| 91 |
+
"backend": "transformers",
|
| 92 |
+
"task": "ocr (6 modes)",
|
| 93 |
+
"output": "markdown",
|
| 94 |
+
"languages": {
|
| 95 |
+
"evidence": "count-claim",
|
| 96 |
+
"count": "109+ (adds Tibetan, Bengali)",
|
| 97 |
+
"notes": "Claims improved rare-character and ancient-text recognition."
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"paddleocr-vl-1.6.py": {
|
| 101 |
+
"model_id": "PaddlePaddle/PaddleOCR-VL-1.6",
|
| 102 |
+
"params": "0.9B",
|
| 103 |
+
"backend": "vllm",
|
| 104 |
+
"task": "ocr",
|
| 105 |
+
"output": "markdown",
|
| 106 |
+
"languages": {
|
| 107 |
+
"evidence": "count-claim",
|
| 108 |
+
"count": "109+ (inherited from 1.5, not restated)",
|
| 109 |
+
"notes": "Upgrade-focused card; language-specific claims are Chinese ancient documents and rare characters."
|
| 110 |
+
}
|
| 111 |
+
},
|
| 112 |
+
"ovis-ocr2.py": {
|
| 113 |
+
"model_id": "ATH-MaaS/OvisOCR2",
|
| 114 |
+
"params": "0.9B",
|
| 115 |
+
"backend": "vllm",
|
| 116 |
+
"task": "ocr",
|
| 117 |
+
"output": "markdown + LaTeX + HTML tables",
|
| 118 |
+
"license": "apache-2.0",
|
| 119 |
+
"languages": { "evidence": "not-stated" }
|
| 120 |
+
},
|
| 121 |
+
"lighton-ocr.py": {
|
| 122 |
+
"model_id": "lightonai/LightOnOCR-1B-1025",
|
| 123 |
+
"params": "1B",
|
| 124 |
+
"backend": "vllm",
|
| 125 |
+
"task": "ocr",
|
| 126 |
+
"output": "markdown",
|
| 127 |
+
"languages": {
|
| 128 |
+
"evidence": "named-list",
|
| 129 |
+
"count": 9,
|
| 130 |
+
"named": ["en", "fr", "de", "es", "it", "nl", "pt", "sv", "da"],
|
| 131 |
+
"notes": "Explicitly European / Latin-alphabet focused."
|
| 132 |
+
}
|
| 133 |
+
},
|
| 134 |
+
"lighton-ocr2.py": {
|
| 135 |
+
"model_id": "lightonai/LightOnOCR-2-1B",
|
| 136 |
+
"params": "1B",
|
| 137 |
+
"backend": "vllm",
|
| 138 |
+
"task": "ocr",
|
| 139 |
+
"output": "markdown",
|
| 140 |
+
"languages": {
|
| 141 |
+
"evidence": "named-list",
|
| 142 |
+
"count": 11,
|
| 143 |
+
"named": ["en", "fr", "de", "es", "it", "nl", "pt", "sv", "da", "zh", "ja"],
|
| 144 |
+
"notes": "Adds zh/ja over v1; declared, not benchmarked per language."
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"hunyuan-ocr.py": {
|
| 148 |
+
"model_id": "tencent/HunyuanOCR",
|
| 149 |
+
"revision": "f6af82ee007fe6091b29fb3bb287b491ead41c82",
|
| 150 |
+
"params": "1B",
|
| 151 |
+
"backend": "vllm",
|
| 152 |
+
"task": "ocr",
|
| 153 |
+
"output": "markdown",
|
| 154 |
+
"license": "Hunyuan Community License (excludes EU/UK/KR)",
|
| 155 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 156 |
+
},
|
| 157 |
+
"hunyuan-ocr-1.5.py": {
|
| 158 |
+
"model_id": "tencent/HunyuanOCR",
|
| 159 |
+
"params": "1B",
|
| 160 |
+
"backend": "vllm",
|
| 161 |
+
"task": "ocr | 12 task types",
|
| 162 |
+
"output": "markdown",
|
| 163 |
+
"license": "Hunyuan Community License (excludes EU/UK/KR)",
|
| 164 |
+
"languages": {
|
| 165 |
+
"evidence": "multilingual-unspecified",
|
| 166 |
+
"notes": "Explicitly targets low-resource + ancient-script OCR as a design goal; nothing enumerated."
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
"dots-ocr.py": {
|
| 170 |
+
"model_id": "rednote-hilab/dots.ocr",
|
| 171 |
+
"params": "1.7B",
|
| 172 |
+
"backend": "vllm",
|
| 173 |
+
"task": "ocr + layout",
|
| 174 |
+
"output": "markdown",
|
| 175 |
+
"languages": {
|
| 176 |
+
"evidence": "count-claim",
|
| 177 |
+
"count": 100,
|
| 178 |
+
"notes": "Explicit low-resource claim backed by in-house dots.ocr-bench (1,493 PDFs across 100 languages); aggregate scores only."
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
"firered-ocr.py": {
|
| 182 |
+
"model_id": "FireRedTeam/FireRed-OCR",
|
| 183 |
+
"params": "2.1B",
|
| 184 |
+
"backend": "vllm",
|
| 185 |
+
"task": "ocr",
|
| 186 |
+
"output": "markdown",
|
| 187 |
+
"license": "apache-2.0",
|
| 188 |
+
"languages": { "evidence": "not-stated" }
|
| 189 |
+
},
|
| 190 |
+
"abot-ocr.py": {
|
| 191 |
+
"model_id": "acvlab/ABot-OCR",
|
| 192 |
+
"params": "2B",
|
| 193 |
+
"backend": "vllm",
|
| 194 |
+
"image": "vllm/vllm-openai",
|
| 195 |
+
"task": "ocr",
|
| 196 |
+
"output": "markdown (text, LaTeX, HTML tables)",
|
| 197 |
+
"languages": { "evidence": "not-stated" }
|
| 198 |
+
},
|
| 199 |
+
"nanonets-ocr.py": {
|
| 200 |
+
"model_id": "nanonets/Nanonets-OCR-s",
|
| 201 |
+
"params": "2B",
|
| 202 |
+
"backend": "vllm",
|
| 203 |
+
"task": "ocr",
|
| 204 |
+
"output": "markdown (LaTeX, tables, forms)",
|
| 205 |
+
"languages": { "evidence": "english-only" }
|
| 206 |
+
},
|
| 207 |
+
"dots-mocr.py": {
|
| 208 |
+
"model_id": "rednote-hilab/dots.mocr",
|
| 209 |
+
"params": "3B",
|
| 210 |
+
"backend": "vllm",
|
| 211 |
+
"task": "ocr | 8 prompt modes incl. SVG, layout + bbox",
|
| 212 |
+
"output": "markdown",
|
| 213 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 214 |
+
},
|
| 215 |
+
"nanonets-ocr2.py": {
|
| 216 |
+
"model_id": "nanonets/Nanonets-OCR2-3B",
|
| 217 |
+
"params": "3B",
|
| 218 |
+
"backend": "vllm",
|
| 219 |
+
"image": "vllm/vllm-openai:v0.10.2",
|
| 220 |
+
"task": "ocr",
|
| 221 |
+
"output": "markdown",
|
| 222 |
+
"languages": {
|
| 223 |
+
"evidence": "named-list",
|
| 224 |
+
"count": "11 named + 'many more'",
|
| 225 |
+
"named": ["en", "zh", "fr", "es", "pt", "de", "it", "ru", "ja", "ko", "ar"],
|
| 226 |
+
"notes": "Only card claiming multilingual handwriting; list illustrative, no per-language benchmark."
|
| 227 |
+
}
|
| 228 |
+
},
|
| 229 |
+
"deepseek-ocr-vllm.py": {
|
| 230 |
+
"model_id": "deepseek-ai/DeepSeek-OCR",
|
| 231 |
+
"params": "4B",
|
| 232 |
+
"backend": "vllm",
|
| 233 |
+
"task": "ocr | 5 resolution + 5 prompt modes",
|
| 234 |
+
"output": "markdown",
|
| 235 |
+
"license": "mit",
|
| 236 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 237 |
+
},
|
| 238 |
+
"deepseek-ocr.py": {
|
| 239 |
+
"model_id": "deepseek-ai/DeepSeek-OCR",
|
| 240 |
+
"params": "4B",
|
| 241 |
+
"backend": "transformers",
|
| 242 |
+
"task": "ocr",
|
| 243 |
+
"output": "markdown",
|
| 244 |
+
"license": "mit",
|
| 245 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 246 |
+
},
|
| 247 |
+
"deepseek-ocr2-vllm.py": {
|
| 248 |
+
"model_id": "deepseek-ai/DeepSeek-OCR-2",
|
| 249 |
+
"params": "3B",
|
| 250 |
+
"backend": "vllm (nightly)",
|
| 251 |
+
"image": "vllm/vllm-openai",
|
| 252 |
+
"task": "ocr",
|
| 253 |
+
"output": "markdown",
|
| 254 |
+
"license": "apache-2.0",
|
| 255 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 256 |
+
},
|
| 257 |
+
"unlimited-ocr-vllm.py": {
|
| 258 |
+
"model_id": "baidu/Unlimited-OCR",
|
| 259 |
+
"params": "3.3B",
|
| 260 |
+
"backend": "vllm",
|
| 261 |
+
"image": "vllm/vllm-openai:unlimited-ocr",
|
| 262 |
+
"task": "ocr (layout-grounded markdown; single-image batch)",
|
| 263 |
+
"output": "markdown",
|
| 264 |
+
"license": "mit",
|
| 265 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 266 |
+
},
|
| 267 |
+
"nuextract3.py": {
|
| 268 |
+
"model_id": "numind/NuExtract3",
|
| 269 |
+
"params": "4B",
|
| 270 |
+
"backend": "vllm",
|
| 271 |
+
"image": "vllm/vllm-openai",
|
| 272 |
+
"task": "ocr | schema-guided extraction",
|
| 273 |
+
"output": "markdown or JSON",
|
| 274 |
+
"languages": { "evidence": "multilingual-unspecified" }
|
| 275 |
+
},
|
| 276 |
+
"qianfan-ocr.py": {
|
| 277 |
+
"model_id": "baidu/Qianfan-OCR",
|
| 278 |
+
"params": "4.7B",
|
| 279 |
+
"backend": "vllm",
|
| 280 |
+
"task": "ocr",
|
| 281 |
+
"output": "markdown",
|
| 282 |
+
"languages": {
|
| 283 |
+
"evidence": "count-claim",
|
| 284 |
+
"count": 192,
|
| 285 |
+
"notes": "Headline claim; no list or per-language numbers."
|
| 286 |
+
}
|
| 287 |
+
},
|
| 288 |
+
"olmocr2-vllm.py": {
|
| 289 |
+
"model_id": "allenai/olmOCR-2-7B-1025-FP8",
|
| 290 |
+
"params": "7B",
|
| 291 |
+
"backend": "vllm",
|
| 292 |
+
"task": "ocr",
|
| 293 |
+
"output": "markdown",
|
| 294 |
+
"languages": { "evidence": "english-only" }
|
| 295 |
+
},
|
| 296 |
+
"rolm-ocr.py": {
|
| 297 |
+
"model_id": "reducto/RolmOCR",
|
| 298 |
+
"params": "7B",
|
| 299 |
+
"backend": "vllm",
|
| 300 |
+
"task": "ocr",
|
| 301 |
+
"output": "plain text",
|
| 302 |
+
"languages": { "evidence": "not-stated" }
|
| 303 |
+
},
|
| 304 |
+
"numarkdown-ocr.py": {
|
| 305 |
+
"model_id": "numind/NuMarkdown-8B-Thinking",
|
| 306 |
+
"params": "8B",
|
| 307 |
+
"backend": "vllm",
|
| 308 |
+
"task": "ocr (reasoning)",
|
| 309 |
+
"output": "markdown",
|
| 310 |
+
"languages": { "evidence": "not-stated" }
|
| 311 |
+
},
|
| 312 |
+
"lfm2-vl-extract.py": {
|
| 313 |
+
"model_id": "LiquidAI/LFM2.5-VL-1.6B-Extract",
|
| 314 |
+
"params": "1.6B",
|
| 315 |
+
"backend": "vllm",
|
| 316 |
+
"image": "vllm/vllm-openai",
|
| 317 |
+
"task": "schema-guided extraction (image -> JSON)",
|
| 318 |
+
"output": "JSON",
|
| 319 |
+
"languages": {
|
| 320 |
+
"evidence": "english-only",
|
| 321 |
+
"notes": "Vision card declares en only; the text sibling's 9-language list does NOT carry over."
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
"lfm2-extract.py": {
|
| 325 |
+
"model_id": "LiquidAI/LFM2-1.2B-Extract",
|
| 326 |
+
"params": "1.2B",
|
| 327 |
+
"backend": "vllm",
|
| 328 |
+
"image": "vllm/vllm-openai",
|
| 329 |
+
"task": "schema-guided extraction (text -> structured); chain after any OCR recipe",
|
| 330 |
+
"output": "JSON / XML / YAML",
|
| 331 |
+
"languages": {
|
| 332 |
+
"evidence": "named-list",
|
| 333 |
+
"count": 9,
|
| 334 |
+
"named": ["en", "ar", "zh", "fr", "de", "ja", "ko", "pt", "es"],
|
| 335 |
+
"notes": "Text-only model (not OCR). Card prose names 9 incl. Portuguese; card YAML lists 8 (pt missing)."
|
| 336 |
+
}
|
| 337 |
+
},
|
| 338 |
+
"lift-extract.py": {
|
| 339 |
+
"model_id": "datalab-to/lift",
|
| 340 |
+
"params": "9B",
|
| 341 |
+
"backend": "transformers | vllm",
|
| 342 |
+
"task": "schema-guided extraction (image or multi-page PDF -> JSON)",
|
| 343 |
+
"output": "JSON",
|
| 344 |
+
"license": "modified OpenRAIL-M",
|
| 345 |
+
"languages": { "evidence": "not-stated" }
|
| 346 |
+
},
|
| 347 |
+
"pp-doclayout.py": {
|
| 348 |
+
"model_id": "PaddlePaddle/PP-DocLayout-L",
|
| 349 |
+
"params": "123M",
|
| 350 |
+
"backend": "paddleocr",
|
| 351 |
+
"task": "layout detection (no text extraction)",
|
| 352 |
+
"output": "bounding boxes + region classes",
|
| 353 |
+
"languages": { "evidence": "not-applicable" }
|
| 354 |
+
},
|
| 355 |
+
"glm-ocr-v2.py": { "variant_of": "glm-ocr.py", "notes": "Adds checkpoint/resume for very large jobs." },
|
| 356 |
+
"glm-ocr-bucket.py": { "variant_of": "glm-ocr.py", "notes": "Reads images/PDFs from a mounted bucket, writes one .md per page." },
|
| 357 |
+
"falcon-ocr-bucket.py": { "variant_of": "falcon-ocr.py", "notes": "Reads images/PDFs from a mounted bucket, writes one .md per page." },
|
| 358 |
+
"surya-ocr-bucket.py": { "variant_of": "surya-ocr.py", "notes": "Bucket-to-bucket structured OCR (--io-mode mount|copy), resumable." },
|
| 359 |
+
"ocr-vllm-judge.py": { "model_id": "configurable", "task": "pairwise OCR-quality judging (VLM-as-judge)", "languages": { "evidence": "not-applicable" } }
|
| 360 |
+
}
|