Our November 28 Unlimited-OCR quickstart stopped with a missing addict dependency before producing OCR output. Use it if you're building local document ingestion and can own the model runtime; skip it if you need unattended transcription of messy scans without checking the result. The quickstart failure and independent reports of invented text make that distinction practical.
What people use Unlimited-OCR for
Unlimited-OCR is Baidu's open-source document parser, and the current README offers joint multi-page input through Transformers and SGLang. It turns page images into text with layout information, rather than simply adding a search box to a PDF. The official v2 examples send ordered page images together so the model can use context across page boundaries. That is the reason to consider it for reports, books and tables that continue onto another page.
Baidu released Unlimited-OCR-2 on October 27, 2026, with Sparse Reference Sliding Window Attention, or SR-SWA. In plain words, the decoder uses a limited set of references while writing a long document. Baidu describes nearly constant per-step decoding memory and latency. The same README documents memory settings and out-of-memory risks, so the architecture's decoding claim needs to stay separate from the resources required by the entire service.
For new work, start your evaluation with the v2 model and its matching instructions. Keep v1 as a separately named baseline when reproducing older comparisons. The original paper's R-SWA and 32K description belongs to the first model; it isn't a current compatibility promise for every conversion carrying the Unlimited-OCR name.
People have used Unlimited-OCR for local document conversion, table extraction and backend comparisons, with very different outcomes. These examples are useful because the authors identify the task and execution path rather than stopping at the model's headline.
| Who used it | What they did | What came back |
|---|---|---|
| GitHub user syw2014 | Parsed a scanned Chinese drinking-water standard using SGLang on a 24 GB RTX 4090 | Reported poor table recognition; jason-ni found the table better as a single image in issue #16. |
| noonkho/omlx-ocr-bench author | Compared document text and layout against answer keys for drawn documents | Unlimited-OCR lost to PaddleOCR-VL-1.6 on all seven samples in the oMLX workbench. |
| sarthak98765/ocr-benchmark-2026 author | Compared nine engines on ten difficult invoice and fax pages | Unlimited-OCR led the local engines at 84.5% word F1 and 45 of 55 key fields, but invented content on a noisy scan in the October 17 stress test. |
| Hugging Face staff author davanstrien | Served v1 through vLLM and SGLang on HF Jobs | Both read a clean two-page document; vLLM hallucinated on degraded historical scans where SGLang read real content in the serving walkthrough. |
| markwgreenlee/unlimited-ocr-macos author | Ported original-model inference to Apple Silicon | Reported a paper page taking 49 seconds on MPS and 131 seconds on CPU, with byte-identical text, in the Mac port. |
Developers Digest also relays a Hacker News user's Japanese grammar PDF conversion: about 200 pages in an hour on a 4090. That is a secondhand user report. For a Japanese archive, I'd give more weight to whether the output preserves your actual characters and annotations than to that throughput anecdote.
What happened when we ran it
Our November 28 README quickstart failed with ImportError: This modeling file requires the following packages that were not found in your environment: addict. The recorded run used commit 37cf64675861 in an unprivileged container configured with 2 CPUs and 4 GB RAM, no published ports and no secrets. The task was the seven-line Transformers loading block, run unedited after the runner's dependency recipe.
The clone completed in 1 second. The recipe then installed the latest PyPI torch rather than the README's pinned torch, and left out packages from the longer README command. The install log records torch 2.15.0 and 170.6 seconds. After that, the environment occupied 5,431.0 MB, with 45 packages besides torch.
Then the loading block ran. It exited 1 after 18.5 seconds, asking for addict. That is an incomplete quickstart environment, not a failed document-recognition result. The current README explicitly includes addict==2.4.0 in its full dependency command. Calling this proof that Baidu's complete installation instructions are broken would overstate what happened. The runner recorded successful teardown.
| Check | Recorded result | What it tells you |
|---|---|---|
| November 28 loading task | Exit 1: missing addict | No document output to score; the recipe differed from the full README command. |
| November 18 repository install | Succeeded in 5 seconds; 35 dependencies; 39 MB on disk | This was the smaller repository-check environment. |
| November 18 build | Succeeded in 1 second | The recorded build step completed. |
| November 18 tests | Skipped: no tests script or target | There is no passing test-suite result. |
| November 18 pip-audit | 0 known vulnerabilities | The dependency audit found no known advisories in that environment. |
| November 18 source scan | 15 files, about 584 source lines, 0.5 MB checkout | The checkout is small compared with the inference environment. |
| November 18 project signals | 0 CI workflow files, no Dockerfile, no tests directory | These are repository scan results. |
The November 18 repository checks used commit 37cf646, 3 CPUs and 8 GB RAM with recorded image label ghcr.io/astral-sh/uv:python3.12-bookworm. That label alone doesn't identify the actual runtime or operating-system version. The 39 MB repository environment and 5,431.0 MB quickstart environment answer different setup questions. Neither is the model's measured inference memory requirement.
Where people get stuck
Original-model users report looping text, empty Mac output and SGLang registration failures, and the fixes depend on which path you run. The most useful troubleshooting detail is often a follow-up comment, rather than the issue title.
| Symptom | What the reporter or follow-up found | Resolution shown in the discussion |
|---|---|---|
| Repeated text until the output limit | In issue #55, KAN-H challenged the original explanation; AIwork4me and kushdab agreed that changing coordinates and counters defeat exact n-gram matching | Issue #55 favors an output-level guard; globally lowering ngram_size to 5 damaged evaluation results. No merged fix is shown. |
| Empty output on Apple Silicon | Issue #18 reports immediate end-of-sequence after a broadcast-mask scatter problem on MPS, Apple's GPU backend | Issue #18 describes explicit contiguous mask expansion; the Mac port instead routes that operation through CPU. The thread remains open. |
| UnlimitedOCRForCausalLM not registered | A commenter traced the v1 SGLang failure to a swallowed module import error, with a separate kernels install downgrading sgl_kernel | Issue #27 points to the README correction in PR #34; the discussion doesn't show a merge. |
| CPU PDF output stops looping but stays garbled | masifamu expanded repetition controls in llama.cpp and increased rendering DPI | Issue #82 records that repetition stopped, while garbled output persisted. Later template suggestions have no reported final result. |
Don't follow #55's title as a diagnosis. An exactly periodic short phrase can be caught by the existing 35-token matching rule. The later comments identify the troublesome case as almost-repeated output with changing box digits or counters. Lowering the matching length also blocks legitimate repeated text, including table headers. That makes a blanket setting change an expensive way to fix a few pages.
The oMLX workbench reports a different integration problem: its backend accepts but ignores the model's n-gram parameter. Its author skips blank pages with an ink check and uses frequency_penalty 0.8 for sparse-page looping. Keep that workaround attached to oMLX. It is not a replacement recipe for Baidu's SGLang server.
Mac, Ollama and mobile builds have different document limits
Community builds make Unlimited-OCR available outside the official CUDA path, but they expose different input modes and output controls. Choose an execution path before borrowing a performance claim or a workaround.
| Execution path | Document behavior described by its author | Decision for your integration |
|---|---|---|
| Official v2 Transformers | infer_multi takes ordered page images together; infer uses dynamic single-page tiling | Follow the matching v2 loading and inference examples. |
| Official v2 SGLang | OpenAI-compatible requests with the model's template, page markers and custom repetition processor | Preserve the documented request settings when connecting an API client. |
| oMLX workbench, original model | Author reports no multi-page document input through this backend | Use its single-page results as single-page results. |
| Richard Young's Ollama GGUF package | Maintainer tested a synthetic invoice and shapes image, including line boxes and image regions | The Ollama package is evidence for those image tasks. |
| Apple Silicon MPS port, original model | Includes CUDA-call changes and a CPU scatter workaround; author ran a two-page PDF on CPU | Read the port's own device and mode instructions. |
| LiteRT Community v2 conversion | Processes one page per request, even when reading several pages consecutively | Its model card describes page-by-page conversion rather than joint long-document inference. |
The LiteRT authors compare converted output with what the original model writes. That measures conversion fidelity: how closely the new runtime preserves the original behavior. It doesn't answer whether either transcript matches the document. A conversion can reproduce an OCR mistake perfectly. Their CPU and GPU results also differ by device, so the model's presence in a catalog isn't enough to choose a backend.
Long documents still need memory headroom and output checks
Unlimited-OCR-2's README explicitly warns that smaller page windows lower memory peaks while hurting cross-page merging. That's a real choice if you want both a long input and a table that survives its page breaks. The serving notes recommend a 64 MB SAM attention-bias chunk cap and explain that the larger default can cause an out-of-memory allocation. They also distinguish reserved model/cache memory from temporary prefill tensors, created while processing the input.
For an ingestion service, retain the page order and raw output before converting the model's layout tags. The current README sends each benchmark document as one request through infer.py, then uses utils/process_unlimitedOCR2.py for evaluation Markdown. If you adapt that workflow, preserve enough information to locate missing pages and inspect a table on both sides of a page break. A finished stream is only one part of an acceptable document.
The independent evaluation in issue #66 shows why scoring deserves the same care. AIwork4me reported 92.45 overall across 1,651 OmniDocBench v1.6 pages, with formula and table metrics close to reported values but a text edit-distance gap. Text edit distance measures how much correction a transcript needs. After receiving prediction files and instructions to mask layout tags, the author still reported a gap. Removing tags repairs a scoring mismatch; it doesn't settle the remaining text discrepancy.
Downloaded model code and a public bind need your attention
The official Transformers loader enables trust_remote_code=True, allowing downloaded model code to execute, and the SGLang example binds to 0.0.0.0. Those are visible choices in the README. Review and pin the model revision alongside the serving environment. If you expose the service beyond your machine, put authentication and access controls in the deployment plan rather than assuming a local model automatically makes an API private.
Local execution gives you a route for keeping document inference on hardware you control. Hosted demos are a different destination for a file. For sensitive records, choose where processing happens before uploading anything. The zero-known-vulnerability audit from the repository check is a dependency observation, not a review of downloaded model code, your API boundary or document handling.
English instructions exist; language quality needs its own check
The repository has English setup instructions, while maintainer MurphyYin says the original model mainly supports English and Chinese in issue #3 and issue #25. Requests for Nepali and Italian appear in those discussions. The maintainer describes collecting multilingual data and a future broader-language version, without giving a release date for those requested languages.
Handwriting is another separate requirement. In issue #45, users point out substitutions in a Chinese handwritten sample, and jason-ni says dots.ocr works better in their local environment. That's a reason to include your handwriting in an acceptance set, rather than inferring quality from printed Chinese documents or an anecdote about Japanese PDFs.
Unlimited-OCR vs PaddleOCR and Chandra
Unlimited-OCR has no consistent win over PaddleOCR or Chandra across the independent comparisons reviewed here. The document set, prompt, backend and scoring method change the recommendation.
| Alternative | What the comparison actually found | When I'd choose it for the first trial |
|---|---|---|
| PaddleOCR-VL-1.6 | noonkho's oMLX workbench puts PaddleOCR ahead on all seven drawn samples; sarthak98765's ten-page mlx-vlm stress test puts Unlimited-OCR ahead overall but PaddleOCR ahead on the noisy invoice | Start with PaddleOCR for damaged scans, and compare both on your real tables using both studies' context. The invoice stress test is the counterexample to a universal winner. |
| chandra-ocr-2 | In the oMLX workbench, Chandra scores better than Unlimited-OCR on several English samples, worse on Chinese samples, and produces more verbose output with slower processing | Start with Chandra for an English-document comparison when its output format suits your parser; the same workbench favors neither its latency nor its Chinese results. |
| dots.ocr | jason-ni reports better local behavior on difficult inputs, including the handwriting discussion | Include it for handwritten material, treating issue #45 as a user report rather than a controlled ranking. |
| Tesseract | The ten-page stress-test author favors it for clean printed text at CPU volume, while difficult forms scored poorly | Start with it when your job is clean CPU transcription rather than model-based layout parsing, as the stress-test author recommends. |
The PaddleOCR disagreement is useful. The oMLX workbench uses synthetic pages with known drawn text and positions, and model-specific prompts. The other study uses invoices and old fax forms, word matching and critical fields, with default settings and both Baidu models through mlx-vlm. A layout score and an order-independent word F1 score answer different questions. Neither study is a controlled v2 long-document comparison.
For money amounts, checkboxes and identifiers, I would compare exact field values alongside ordinary text accuracy. In the ten-page study, Unlimited-OCR's 45 correct key fields out of 55 sit behind Gemini 3.8 Flash's 55. That is the benchmark author's result, not a reason to send private documents to a hosted service without considering your data requirements.
What the other reviews get wrong
Developers Digest mislabels the license and reverses the original model's page modes, while AI Indigo overlooks a published benchmark result. Those errors change how you choose a runtime and how much weight you give a comparison.
| Page or claim | Correction |
|---|---|
| Developers Digest calls the project Apache 2.0 | The community Mac port identifies upstream code and model as MIT; GitHub's current repository metadata also lists MIT. |
| Developers Digest assigns Gundam to multi-page input and Base to single images | The original paper assigns Base to multi-page input and Gundam to single-page dynamic resolution. |
| Developers Digest describes the local output window as about 128 words | The original paper specifies output tokens, 128 by default. Tokens are pieces used by the model, not a word count. |
| Older R-SWA and 32K explanations describe the current model | Those describe v1; the October 27 v2 announcement introduces SR-SWA. |
| Flat decoding-cache behavior removes every memory bottleneck | The v2 README's attention-bias and serving-memory warnings contradict that broader reading. |
| AI Indigo says only DeepSeek-OCR reports OmniDocBench scores among its comparison rows | The original Unlimited-OCR paper reports 93% on OmniDocBench v1.5. That's the paper's result, separate from independent reproduction. |
The misleading details appear in Developers Digest's review and AI Indigo's review. WaveSpeed's updated setup guide makes a better distinction: its author explicitly says GPU inference wasn't run for that revision. Instructions and benchmarks should be labeled differently.
Questions people ask
Baidu Unlimited-OCR's official code is at baidu/Unlimited-OCR on GitHub, and its model pages are under Baidu's Hugging Face account, as linked by the official repository.
What is Baidu Unlimited-OCR, and where are its official GitHub and Hugging Face repositories?
Unlimited-OCR parses document page images into text and layout output. Use Baidu's GitHub repository, the original Hugging Face model or Unlimited-OCR-2 on Hugging Face. The README links both generations, which matters when a tutorial simply says Unlimited-OCR without naming one.
What changed in Unlimited-OCR-2, and which version should I evaluate?
Unlimited-OCR-2 introduced SR-SWA on October 27, 2026. Start new evaluations with v2 and its matching Transformers or SGLang instructions; use v1 when reproducing v1 reports. The release notes and current serving guidance identify the change, while the older independent tests belong to their original models and backends.
Can I run Unlimited-OCR through Ollama?
Yes: Richard Young maintains richardyoung/unlimited-ocr, a community GGUF conversion of the original model. The maintainer reports successful invoice transcription and shape-region detection. It is a community package with its own model tags, not Baidu's official v2 SGLang deployment. Use its image instructions rather than the catalog's generic greeting example.
Where can I try Unlimited-OCR online without self-hosting?
Baidu links a Hugging Face v2 demo, and its November 16 announcement lists Baidu AI Cloud with a TextMind web entry in the README. The similarly named unlimited-ocr.com markets a browser OCR service, but its name alone doesn't connect it to Baidu. Keep the provider identity separate from a search-result label.
How does Unlimited-OCR compare with PaddleOCR on my document types?
PaddleOCR-VL wins all seven drawn samples in noonkho's oMLX comparison, while Unlimited-OCR leads overall in sarthak98765's ten-page mlx-vlm test. Use the comparison table above to choose candidates, then score your own documents with the runtime and output settings you intend to deploy.
Should I choose Unlimited-OCR or Chandra for local document parsing?
Chandra beats Unlimited-OCR on several English samples in the oMLX workbench, but trails on its Chinese samples and takes longer while emitting more text. For English pages, include both in your initial comparison. For cross-page parsing, compare a path that actually accepts pages jointly rather than borrowing that feature from another backend's description.
Which languages does Unlimited-OCR support, and how reliable is it beyond Chinese and English?
MurphyYin describes the original model as mainly supporting Chinese and English in issue #25. Other-language requests and user anecdotes are different from a language-specific accuracy result. The v2 community conversion's multilingual label also doesn't give you a measured score for Italian, Nepali or the documents you need to read.
When will Unlimited-OCR support Nepali, Italian and other additional languages?
The language threads give no delivery date for Nepali or Italian. In issue #3, MurphyYin says the team is collecting multilingual training data for a future version. In issue #25, the maintainer repeats that direction. Neither reply should be turned into a dated release promise.
How can the community contribute training data or extend language support?
Users ask about data contribution and training pipelines in issue #3 and issue #25; MurphyYin discusses data collection and says fine-tuning support is under discussion in those replies. Separately, the current README credits ms-swift training support. For a contribution, ask about the current accepted data format and submission route rather than assuming those older replies specify one.
Why does Unlimited-OCR repeat text, and how can I stop it without damaging accuracy?
The corrected discussion in issue #55 identifies changing coordinates and counters as a way to evade exact repetition matching. The same thread reports accuracy regressions from ngram_size 5. Match controls to your backend and keep an output cap; the fix map above separates the reported workarounds instead of presenting one setting as safe everywhere.
Why does Unlimited-OCR return empty output on Apple Silicon?
The original-model report in issue #18 traces immediate end-of-sequence output to the MPS broadcast-mask scatter path. Commenters describe mask expansion, and the Mac port uses a CPU scatter workaround plus changes to CUDA-specific calls. That report concerns its stated implementation path, rather than every Mac conversion.
What does multi-page parsing gain if tables remain separated by page markers?
The official v2 API sends ordered images together so the model can use cross-page context, while still emitting page markers, according to the README. That gives a parser page identity and shared context. It doesn't by itself produce one clean merged table: jason-ni raises exactly that distinction in issue #16, and v2's page-window settings explicitly trade memory against merging.
What we have not tested yet
Our November 28 loading task stopped before OCR, and the November 18 repository checks contain no recognition workload. We have not tested v2 GPU inference, long-document accuracy, peak inference memory, service throughput, or production reliability. The recorded container image labels do not verify the actual toolchain versions. The November 28 recipe's missing dependency and changed torch pin leave the full supported README environment unassessed.
The independent comparisons discussed here mainly concern v1 and different backends. We found no independent, controlled v2 long-document study here that settles accuracy, memory and throughput together. The full text-metric discrepancy in issue #66 remains unresolved in the discussion we read. An open historical v1 issue is not proof that v2 has the same defect; a new release is not proof of its repair.
We have not reproduced the Mac, Ollama, oMLX, HF Jobs or LiteRT results, tested additional languages, or audited model code and network traffic. LiteRT's fidelity tests compare against the original model rather than ground-truth transcription. The video records had no usable transcripts, and the Bilibili results did not document a relevant run. No video demonstration is used as evidence here.
We also have not checked the current availability or upload policies of the hosted demos, or confirmed which model unlimited-ocr.com uses. For a deployment decision, keep a labeled acceptance set with the exact page text and critical fields, including a blank page, a damaged scan and a table crossing a page boundary. Record the model revision, backend, prompt and output caps alongside the result so the next upgrade has something concrete to beat.


