Skip to content

Commit 13438c0

Browse files
davanstrienclaude
andauthored
ocr: point dots-mocr at dots-studio/dots.mocr (#182)
rednote-hilab/dots.mocr and dots.mocr-svg now redirect to dots-studio. The old id still resolves, but the script default, help text, README, LANGUAGES, SERVING and models.json now name the current repo. GitHub source links to rednote-hilab/dots.mocr are unchanged. Claude-Session: https://claude.ai/code/session_016isSPoQ2DXGxr8kwQT59fZ Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 49f1e3e commit 13438c0

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎ocr/LANGUAGES.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _Sorted by strength of evidence, then coverage:_
2626
| [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) |
2727
| [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 |
2828
| [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) |
29-
| [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 |
29+
| [dots.mocr](https://huggingface.co/dots-studio/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 |
3030
| [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 |
3131
| [Falcon-OCR](https://huggingface.co/tiiuae/Falcon-OCR) · [OvisOCR2](https://huggingface.co/ATH-MaaS/OvisOCR2) · [Xiaomi-OCR-0](https://huggingface.co/xiaomi-research/Xiaomi-OCR-0) · [LightOnOCR-3](https://huggingface.co/collections/lightonai/lightonocr-3) · [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 |
3232

‎ocr/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ These are the maintained recipes. Each one has a tested `[tool.hf-jobs]` header,
9292
| [`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 | 12 task types, including spotting, charts and translation | [Hunyuan Community](https://huggingface.co/tencent/HunyuanOCR/blob/main/LICENSE) (excludes EU, UK, South Korea) | `a10g-small` |
9393
| [`minicpm-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/minicpm-ocr.py) | [MiniCPM-OCR 1.0](https://huggingface.co/openbmb/MiniCPM-OCR-1.0) | 1.3B | OpenBMB's full pipeline: layout regions, per-region prompts, Markdown with HTML tables; Hub dataset or Bucket in/out; runs on a public [`cr.hf.co`](https://huggingface.co/containers/davanstrien/minicpm-ocr) image (experimental) | Apache-2.0 | `a10g-large` |
9494
| [`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 | 100+ languages; layout modes | MIT | `a10g-small` |
95-
| [`dots-mocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/dots-mocr.py) | [dots.mocr](https://huggingface.co/rednote-hilab/dots.mocr) | 3B | Eight prompt modes, including SVG from charts | MIT | `a10g-small` |
95+
| [`dots-mocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/dots-mocr.py) | [dots.mocr](https://huggingface.co/dots-studio/dots.mocr) | 3B | Eight prompt modes, including SVG from charts | MIT | `a10g-small` |
9696
| [`deepseek-ocr2-vllm.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/deepseek-ocr2-vllm.py) | [DeepSeek-OCR-2](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2) | 3B | Newer DeepSeek-OCR | Apache-2.0 | `a10g-small` |
9797
| [`unlimited-ocr2.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/unlimited-ocr2.py) | [Unlimited-OCR-2](https://huggingface.co/baidu/Unlimited-OCR-2) | 3.3B | Whole documents: 16 pages per request, paragraphs continue across page breaks; reads page folders or Buckets; resumable | MIT | `rtx-pro-6000` |
9898
| [`unlimited-ocr-vllm.py`](https://huggingface.co/datasets/uv-scripts/ocr/blob/main/unlimited-ocr-vllm.py) | [Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR) | 3.3B | Markdown with layout boxes (`--strip-grounding` for clean text) | MIT | `a10g-small` |
@@ -176,7 +176,7 @@ Most dataset recipes also record the model and settings in an `inference_info` c
176176
| `lighton-ocr3.py` | `--model lightonai/LightOnOCR-3-4B\|lightonai/LightOnOCR-3-0.8B`, `--mode plain\|grounding`, `--blocks-column`, `--longest-edge` |
177177
| `hunyuan-ocr-1.5.py` | `--task-type` (12 types, default `doc_parse`), `--custom-prompt` |
178178
| `dots-ocr.py` | `--prompt-mode ocr\|layout-all\|layout-only` |
179-
| `dots-mocr.py` | `--prompt-mode` (8 modes). For SVG: `--model rednote-hilab/dots.mocr-svg --prompt-mode svg` |
179+
| `dots-mocr.py` | `--prompt-mode` (8 modes). For SVG: `--model dots-studio/dots.mocr-svg --prompt-mode svg` |
180180
| `deepseek-ocr-vllm.py` | `--prompt-mode document\|image\|free\|figure\|describe` |
181181
| `deepseek-ocr2-vllm.py` | `--prompt-mode document\|free` |
182182
| `unlimited-ocr-vllm.py` | `--strip-grounding`, `--grounding-column` |

‎ocr/SERVING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ card/docs (verbatim commands live in the linked sources):
8787
|---|---|---|
8888
| lightonai/LightOnOCR-1B / 2-1B | ✅ vLLM | Card ships the serve command + client; ≥0.11.1 for v1; images longest-dim 1540px |
8989
| nanonets/OCR-s / OCR2-3B | ✅ vLLM | Bare `vllm serve` + client in card; **pin v0.10.2 for OCR2** (see above) |
90-
| rednote-hilab/dots.mocr | ✅ vLLM ≥0.11 | Direct from Hub id on `vllm/vllm-openai:v0.11.0`+ |
90+
| dots-studio/dots.mocr | ✅ vLLM ≥0.11 | Direct from Hub id on `vllm/vllm-openai:v0.11.0`+ |
9191
| rednote-hilab/dots.ocr | ✅ (GitHub) | HF card shows a legacy pre-0.11 hack; GitHub README: integrated upstream since 0.11 |
9292
| tencent/HunyuanOCR | ✅ vLLM 0.18.1 | serve.sh in repo; nightly adds DFlash speculative decoding |
9393
| zai-org/GLM-OCR | ✅ vLLM + SGLang + Ollama | Only card here with an SGLang serve example; needs vLLM nightly |

‎ocr/dots-mocr.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
- Layout-aware text extraction
3434
- Web screen parsing
3535
- Scene text spotting
36-
- SVG code generation (use --prompt-mode svg, or --model rednote-hilab/dots.mocr-svg for best results)
36+
- SVG code generation (use --prompt-mode svg, or --model dots-studio/dots.mocr-svg for best results)
3737
38-
Model: rednote-hilab/dots.mocr
39-
SVG variant: rednote-hilab/dots.mocr-svg
38+
Model: dots-studio/dots.mocr
39+
SVG variant: dots-studio/dots.mocr-svg
4040
vLLM: Officially integrated since v0.11.0
4141
GitHub: https://github.com/rednote-hilab/dots.mocr
4242
Paper: https://arxiv.org/abs/2603.13032
@@ -114,7 +114,7 @@
114114
"scene-spotting": """Detect and recognize the text in the image.""",
115115
"grounding-ocr": """Extract text from the given bounding box on the image (format: [x1, y1, x2, y2]).\nBounding Box:\n""",
116116
# SVG code generation — {width} and {height} are replaced with actual image dimensions.
117-
# For best results, use --model rednote-hilab/dots.mocr-svg
117+
# For best results, use --model dots-studio/dots.mocr-svg
118118
# Uses higher temperature (0.9) and top_p (1.0) per official recommendation.
119119
"svg": """Please generate the SVG code based on the image. viewBox="0 0 {width} {height}" """,
120120
"general": """ """,
@@ -306,7 +306,7 @@ def main(
306306
output_dataset: str,
307307
image_column: str = "image",
308308
batch_size: int = 16,
309-
model: str = "rednote-hilab/dots.mocr",
309+
model: str = "dots-studio/dots.mocr",
310310
max_model_len: int = 24000,
311311
max_tokens: int = 24000,
312312
gpu_memory_utilization: float = 0.9,
@@ -581,7 +581,7 @@ def update_inference_info(example):
581581
print(" uv run --with vllm==0.30.0 dots-mocr.py input-dataset output-dataset")
582582
print("\n2. SVG generation:")
583583
print(
584-
" uv run --with vllm==0.30.0 dots-mocr.py charts svg-output --prompt-mode svg --model rednote-hilab/dots.mocr-svg"
584+
" uv run --with vllm==0.30.0 dots-mocr.py charts svg-output --prompt-mode svg --model dots-studio/dots.mocr-svg"
585585
)
586586
print("\n3. Web screen parsing:")
587587
print(" uv run --with vllm==0.30.0 dots-mocr.py screenshots parsed --prompt-mode web-parsing")
@@ -614,15 +614,15 @@ def update_inference_info(example):
614614
615615
SVG Code Generation:
616616
Use --prompt-mode svg for SVG output. For best results, combine with
617-
--model rednote-hilab/dots.mocr-svg (the SVG-optimized variant).
617+
--model dots-studio/dots.mocr-svg (the SVG-optimized variant).
618618
SVG mode automatically uses temperature=0.9, top_p=1.0 unless overridden.
619619
620620
Examples:
621621
# Basic text OCR (default)
622622
uv run --with vllm==0.30.0 dots-mocr.py my-docs analyzed-docs
623623
624624
# SVG generation with optimized variant
625-
uv run --with vllm==0.30.0 dots-mocr.py charts svg-out --prompt-mode svg --model rednote-hilab/dots.mocr-svg
625+
uv run --with vllm==0.30.0 dots-mocr.py charts svg-out --prompt-mode svg --model dots-studio/dots.mocr-svg
626626
627627
# Web screen parsing
628628
uv run --with vllm==0.30.0 dots-mocr.py screenshots parsed --prompt-mode web-parsing
@@ -650,8 +650,8 @@ def update_inference_info(example):
650650
)
651651
parser.add_argument(
652652
"--model",
653-
default="rednote-hilab/dots.mocr",
654-
help="Model to use (default: rednote-hilab/dots.mocr, or rednote-hilab/dots.mocr-svg for SVG)",
653+
default="dots-studio/dots.mocr",
654+
help="Model to use (default: dots-studio/dots.mocr, or dots-studio/dots.mocr-svg for SVG)",
655655
)
656656
parser.add_argument(
657657
"--max-model-len",

‎ocr/models.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582
"support_note": "Nanonets-OCR-s; use nanonets-ocr2.py."
583583
},
584584
"dots-mocr.py": {
585-
"model_id": "rednote-hilab/dots.mocr",
585+
"model_id": "dots-studio/dots.mocr",
586586
"params": "3B",
587587
"backend": "vllm",
588588
"task": "ocr | 8 prompt modes incl. SVG, layout + bbox",

0 commit comments

Comments
 (0)