Baidu’s 3B OCR Model Reads Entire Documents at Once
Baidu’s 3B OCR model reads entire documents at once without page chunking. This open-source tool parses multi-page files in a single forward pass.

Most OCR pipelines chop documents into pages before processing them. However, Baidu’s 3B OCR model reads entire documents at once to solve this limitation. This open-source Unlimited-OCR tool parses dozens of pages in a single forward pass. Therefore, it maintains context across the whole document without splitting logic.
How Baidu’s 3B OCR Model Reads Entire Documents at Once
The core innovation is Recurrent Sliding Window Attention (R-SWA). Standard attention mechanisms scale memory usage with document length. Consequently, existing tools must chunk documents into separate pages. R-SWA keeps a constant KV cache regardless of input length.
This makes a 32K-token context window practical for this model size. A single forward pass processes what other tools handle sequentially. For example, the model sees a reference on page 3 while parsing page 18. Existing page-by-page pipelines cannot achieve this by design.
Unlimited-OCR builds on the DeepSeek-OCR lineage using a Mixture-of-Experts architecture. Baidu positions it as a continuation of that research direction. Thus, it pushes document understanding further than the base model achieved.
Hardware Requirements for Local Deployment
This is a locally deployable model rather than a cloud API. The hardware requirements are accessible for most developers running inference workloads. First, you need an NVIDIA GPU with at least 8GB VRAM. Consumer cards like the RTX 3070 qualify.
Second, the model supports transformers, vllm, and sglang frameworks. Finally, it requires a standard Linux setup with CUDA support. Teams already running mid-sized open-weight models can adopt this easily. The infrastructure lift remains minimal for these users.
Economic Benefits Over Cloud OCR Services
Cloud OCR services typically bill per page. A 200-page contract triggers 200 separate API calls. Therefore, costs escalate quickly for enterprises processing thousands of documents monthly. Unlimited-OCR runs on your own hardware with zero per-page cost after setup.
This shifts economics completely for high-volume workflows like legal discovery or financial extraction. The trade-off involves infrastructure ownership versus managed-service convenience. This pattern mirrors broader trends from Chinese AI labs releasing capable open models. They aim to undercut per-unit pricing from Western cloud incumbents.
Fitting Into the Open-Weight Landscape
Unlimited-OCR is a narrow, task-specific model rather than a general LLM. It excels at reading documents at scale without architectural compromises. The open-weight landscape is expanding rapidly with large reasoning models. However, Unlimited-OCR belongs to a different specialist category.
These models make specific enterprise workflows genuinely self-hostable. Legal teams need reliable extraction that preserves structure over frontier reasoning. A 3B parameter model optimized for this task solves the actual problem. Furthermore, it runs efficiently on local hardware.
Getting Started with Unlimited-OCR
The full model weights and code are available on GitHub. The repository includes integration examples for all supported inference frameworks. Setup mirrors standard open-weight deployment for vllm or sglang users. Additionally, the 8GB VRAM floor means most modern GPUs qualify without quantization.