AI Pulse by Inblix

Baidu's Unlimited-OCR model parses entire pages in one shot, skipping the layout analysis stage

MarkTechPost · Jul 24, 2026 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: Baidu's Unlimited-OCR model parses entire pages in one shot, skipping the layout analysis stage

Baidu has released a new vision-language model called Unlimited-OCR that takes a fundamentally different approach to document parsing. Instead of the classic multi-stage pipeline—where you’d run a separate layout analysis model, then crop regions, then OCR each chunk—this 3B-parameter model reads an entire page in a single decoding pass. Headings, paragraphs, tables, everything. One forward pass, one output.

The model is available on Hugging Face under baidu/Unlimited-OCR and weighs in at roughly 6 GB when loaded in bfloat16. The tutorial I walked through sets up the full inference workflow: GPU configuration with automatic dtype selection (bfloat16 if your hardware supports it, float16 if not), dependency installation covering transformers 4.57.1, PyMuPDF, and einops, and then a straightforward model load using trust_remote_code=True. Nothing exotic on the infrastructure side—if you’ve got a Colab GPU, you can run this.

What caught my attention is the two inference modes. The tiled “Gundam” mode handles high-resolution documents by splitting the image into overlapping tiles for fine-grained OCR, while “Base” mode processes the full page at once for faster throughput. The tutorial demonstrates both on synthetic quarterly report pages, then extends the pipeline to multi-page PDFs using PyMuPDF and an infer_multi() function. That’s where things get interesting: the model explicitly preserves cross-page context, so references spanning page breaks don’t get mangled. The generation config also bakes in repetition controls and long-context settings, which tells me the team put real thought into production behavior rather than just benchmark numbers.

I’m not ready to throw out Tesseract and layout parsers just yet—the tutorial uses clean, generated documents with consistent formatting, and I’d want to see this thing handle scanned receipts, rotated text, and the general chaos of real-world PDFs before declaring victory. But the architectural bet here is the right one. If a single model can genuinely absorb the entire visual structure of a page and produce structured text without the fragile hand-offs between detection and recognition stages, that eliminates a huge class of failure modes. The question is whether the 3B parameter budget buys enough robustness for messy inputs.

💡 Key Takeaways

  1. Unlimited-OCR's single-pass design collapses layout analysis and text recognition into one decoding step, eliminating the error-prone hand-off between separate detection and OCR models.
  2. The model ships with two inference modes: a high-resolution tiled approach for dense layouts and a faster full-page mode, letting users trade speed for accuracy depending on document complexity.
  3. Multi-page processing via `infer_multi()` preserves cross-page context, which addresses a common pain point where references and tables split across pages lose coherence.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles