Home / Productivity · Image / Unlimited-OCR-2 (Baidu)

Unlimited-OCR-2 (Baidu)
For document recognition: Baidu's open-source 3B-parameter OCR model that can be deployed locally
What is Unlimited-OCR-2 (Baidu)
Unlimited-OCR-2 is a 3B-parameter OCR model open-sourced by Baidu for document recognition, and it can be deployed locally. The weights are freely available under the MIT license on Hugging Face, where the model was created on 2026-10-26.
How to use
- Install dependencies, e.g. pip install torch torchvision pillow transformers==4.52.1 huggingface-hub tokenizers addict einops easydict (tested with Python 3.10 on an NVIDIA A800-80GB).
- Load the model with AutoModel.from_pretrained("baidu/Unlimited-OCR-2", trust_remote_code=True) and its tokenizer.
- For a multi-page document, pass all page images in order to model.infer_multi(...) so the model can use cross-page context.
- For a single page, call model.infer(tokenizer, image_file=...).
- For serving, use SGLang (recommended) or vLLM.
- Or try the online demo on Hugging Face Spaces (baidu/Unlimited-OCR-2), ModelScope or Baidu Cloud.
Use cases
- Parsing ultra-long documents of hundreds of pages in one pass Multi-page OCR that uses cross-page context Converting scanned documents and page images to text Self-hosted OCR serving with SGLang or vLLM Benchmarking long-document parsing (e.g. MarathonDocBench)
Price from official sources
Free
- Open-weight model released under the MIT license;
- free to download from Hugging Face.
Check the official site for current pricing · Price not yet checked by our editors
Source: huggingface.co · Info as of Nov 2, 2026
Company
- Name
- Baidu Inc.
Reviews
No reviews yet.
Alternatives
-
LFM3-Omni-2B (Liquid AI)
Free
For on-device multimodal apps: a 2B omni-modal model supporting speech, images, and video
- Added
- Nov 2, 2026
Same category: Productivity
-
nonce Not stated For securely granting AI access to your email: issues time-limited, least-privilege access per question
- Added
- Nov 2, 2026
Same category: Productivity
-
Pika H3 Flex
Freemium
For image-to-video creation: a 33B open-weight model you can use in the cloud or self-host
- Added
- Nov 2, 2026
Same category: Productivity
-
Usage for Claude + ChatGPT
Freemium
For checking AI subscription usage: tracks your Claude and ChatGPT limits
- Added
- Nov 2, 2026
Same category: Productivity
Social