SAVRN
Search Contact SAVRN

Open-weight model · Image and text to text

Unlimited-OCR

by BAIDU baidu/Unlimited-OCR

[2026/07/21] Thanks to the ms-swift community for their support, our model now supports training with ms-swift. - [2026/07/03] Thanks to the Baidu Cloud team for their support. Our model is now available on Baidu Cloud.

Parameters3.3B
Context32,768
Weights6.7 GB
Licensemit
AccessOpen weights
Monthly Downloads2.3M

Runs On

What it takes to serve Unlimited-OCR (3.3B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 6.7 GB 8.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 3.3 GB 4.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 1.7 GB 2.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By BAIDU, published under mit, revision 07dea832e22a.

Unlimited OCR Works

Welcome the Era of One-shot Long-horizon Parsing.

Release

Inference

Transformers

Inference using Huggingface transformers on NVIDIA GPUs. Requirements tested on python 3.12.3 + CUDA12.9:

torch==2.10.0
torchvision==0.25.0
transformers==4.57.1
Pillow==12.1.1
matplotlib==3.10.8
einops==0.8.2
addict==2.4.0
easydict==1.13
pymupdf==1.27.2.2
psutil==7.2.2

Read the full model card (844 words)

Configuration

Architecture
UnlimitedOCRForCausalLM
Context length (tokens)
32,768
Layers
12
Hidden size
1,280
Feed-forward size
6,848
Attention heads
10
Key/value heads
10
Vocabulary size
129,280
Routed experts
64
Experts active per token
6
Sliding window (tokens)
128
Stored precision
bfloat16
Model type
unlimited-ocr

Identity and Version

Repository
baidu/Unlimited-OCR
Publisher
BAIDU
Task
Image and text to text
Modality
Image and text
Library
transformers
Parameters
3.3B parameters
Languages
ocr
Revision
07dea832e22aefee32ad281d4b80551282e1c168
First published
2026-06-19
Last updated
2026-07-29

Files and Weights

20 files, 6.8 GB in total. The weights are 1 file totalling 6.7 GB in safetensors.

Weights1 file · 6.7 GB
Configuration9 files · 463.3 KB
Tokenizer2 files · 10.1 MB
Documentation2 files · 12.2 KB
Other5 files · 95.2 MB
Repository1 file · 302 B
Every file
FileTypeSizeSHA-256
model-00001-of-000001.safetensorsWeights6.7 GB 2bc48a7a1100
config.jsonConfiguration2.9 KB
configuration_deepseek_v2.pyConfiguration10.7 KB
conversation.pyConfiguration9.3 KB
deepencoder.pyConfiguration38.0 KB
model.safetensors.index.jsonConfiguration257.6 KB
modeling_deepseekv2.pyConfiguration90.2 KB
modeling_unlimitedocr.pyConfiguration53.4 KB
processor_config.jsonConfiguration466 B
special_tokens_map.jsonConfiguration801 B
LICENSEDocumentation1.1 KB
README.mdDocumentation11.1 KB
Unlimited-OCR.pdfOther460.3 KB d4cc0b2e98f5
assets/Unlimited-OCR.pngOther106.3 KB 77063289aecf
assets/baidu.pngOther11.1 KB
assets/long-horizon-ocr.gifOther82.2 MB d4ba8964d33f
wheel/sglang-0.0.0.dev11416+g92e8bb79e-py3-none-any.whlOther12.5 MB 2644a1f349c5
.gitattributesRepository302 B
tokenizer.jsonTokenizer10.0 MB
tokenizer_config.jsonTokenizer165.9 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
6.7 GB
Download from BAIDU

Released by BAIDU through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2606.23050

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
llamaindex/ParseBench Task chartMetric chartSetup Pipeline name: unlimitedocrComparison conditions not established 1.34 ParseBench
Reported by a third party
Evaluated revision not stated 2026-06-24
llamaindex/ParseBench Task layoutMetric layoutSetup Pipeline name: unlimitedocrComparison conditions not established 71.52 ParseBench
Reported by a third party
Evaluated revision not stated 2026-06-24
llamaindex/ParseBench Task meanMetric meanSetup Pipeline name: unlimitedocrComparison conditions not established 46.17 ParseBench
Reported by a third party
Evaluated revision not stated 2026-06-24
llamaindex/ParseBench Task tableMetric tableSetup Pipeline name: unlimitedocrComparison conditions not established 70.21 ParseBench
Reported by a third party
Evaluated revision not stated 2026-06-24
llamaindex/ParseBench Task text_contentMetric text_contentSetup Pipeline name: unlimitedocrComparison conditions not established 86.81 ParseBench
Reported by a third party
Evaluated revision not stated 2026-06-24
llamaindex/ParseBench Task text_formattingMetric text_formattingSetup Pipeline name: unlimitedocrComparison conditions not established 0.97 ParseBench
Reported by a third party
Evaluated revision not stated 2026-06-24

Memory Requirements

PrecisionWeights in memory
As published6.7 GB
16-bit6.7 GB
8-bit3.3 GB
4-bit1.7 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Built on This Model

Compare Unlimited-OCR

Questions About Unlimited-OCR

How much GPU memory does Unlimited-OCR need?

About 8 GB at 16-bit and 2 GB at 4-bit: the weights (3.3B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Unlimited-OCR on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Unlimited-OCR commercially?

Yes. Unlimited-OCR is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is Unlimited-OCR's context length?

32,768 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Image and text to text

DeepSeek-OCR

DeepSeek

Inference using Huggingface transformers on NVIDIA GPUs. Requirements tested on python 3.12.9 + CUDA11.8: Refer to GitHub for guidance on model inference acceleration and PDF processing, etc. [2025/10/23] DeepSeek-OCR is now officially supported in upstream vLLM. We would like to thank Vary, GOT-OCR2.0, MinerU, PaddleOCR, OneChart, Slow Perception for their valuable models and ideas. author={Wei, Haoran and Sun, Yaofeng and Li, Yukun}, year={2025}

Open weights mit 3.3B parameters 8,192 tokens transformers

Model · Image and text to text

unlimited-ocr-max

Konstantin

baidu/Unlimited-OCR as one repository max serve opens directly on Apple Silicon: baidu's weights unchanged (model.safetensors, byte-identical to upstream at revision 07dea832e22aefee32ad281d4b80551282e1c168, sha256 2bc48a7a110061ea58fff65d3169367eebe3aee371ca6968dc2219c1b2855fc6), the tokenizer files as published, and the checkpoint's config.json with two keys removed (automap, modeltype) so MAX can load it without trustremotecode. The runtime is a MAX custom architecture with two Mojo custom ops, served from https://github.com/kthr/unlimited-ocr-max as an OpenAI-compatible endpoint on the Metal GPU or the CPU. The repository also carries model-int8.safetensors, this port's weight-only int8…

Open weights mit 3.3B parameters 32,768 tokens

Model · Image and text to text

Unlimited-OCR-AWQ

Sahil Chachra

AWQ 4-bit (W4A16) quantization of baidu/Unlimited-OCR, a 3B vision-language OCR model that pushes DeepSeek-OCR one step further (one-shot, long-horizon document parsing). This repo quantizes the DeepSeek-V2 MoE text decoder with activation-aware scaling (AWQ) while keeping the vision tower in BF16, so it stays a drop-in transformers model. Unlimited-OCR uses the DeepSeek-OCR prompt vocabulary. The prompt must contain; prefix it with whenever you also want bounding boxes for what was read. - base — basesize=1024, imagesize=1024, cropmode=False. Good default for normal pages. - gundam — basesize=1024, imagesize=640, cropmode=True. Tiles the page; use for dense or large/high-resolution…

Open weights mit 3.4B parameters 32,768 tokens transformers

Model · Image and text to text

DeepSeek-OCR-2

DeepSeek

Inference using Huggingface transformers on NVIDIA GPUs. Requirements tested on python 3.12.9 + CUDA11.8: Refer to GitHub for guidance on model inference acceleration and PDF processing, etc. We would like to thank DeepSeek-OCR, Vary, GOT-OCR2.0, MinerU, PaddleOCR for their valuable models and ideas. We also appreciate the benchmark OmniDocBench. author={Wei, Haoran and Sun, Yaofeng and Li, Yukun}, year={2025} title={DeepSeek-OCR 2: Visual Causal Flow}, author={Wei, Haoran and Sun, Yaofeng and Li, Yukun}, year={2026}

Open weights apache-2.0 3.4B parameters 8,192 tokens transformers

Model · Image and text to text

dots.ocr

Dots Studio

dots.ocr: Multilingual Document Layout Parsing in a Single Vision-Language Model dots.ocr is a powerful, multilingual document parser that unifies layout detection and content recognition within a single vision-language model while maintaining good reading order. Despite its compact 1.7B-parameter LLM foundation, it achieves state-of-the-art(SOTA) performance. 1. Powerful Performance: dots.ocr achieves SOTA performance for text, tables, and reading order on OmniDocBench, while delivering formula recognition results comparable to much larger models like Doubao-1.5 and gemini2.5-pro. 2. Multilingual Support: dots.ocr demonstrates robust parsing capabilities for low-resource languages…

Open weights mit 3B parameters 131,072 tokens dots_ocr

Model · Image and text to text

dots.mocr

Dots Studio

dots.mocr We present dots.mocr. Beyond achieving state-of-the-art (SOTA) performance in standard multilingual document parsing among models of comparable size, dots.mocr excels at converting structured graphics (e.g., charts, UI layouts, scientific figures and etc.) directly into SVG code. Its core capabilities encompass grounding, recognition, semantic understanding, and interactive dialogue. Simultaneously, we are releasing dots.mocr-svg, a variant specifically optimized for robust image-to-SVG parsing tasks. More information can be found in the paper. Visual languages (e.g., charts, graphics, chemical formulas, logos) encapsulate dense human knowledge. dots.mocr unifies the…

Open weights mit 3B parameters 131,072 tokens dots_mocr