- Documents and OCR
- No longer trending
Unlimited OCR 2
by Baidubaidu/Unlimited-OCR-2
Parses ultra-long multilingual documents from images into text for researchers and developers.
Released on 26 October 2026 · first spotted here on 31 October 2026
Open on Hugging Face (external site, opens in a new tab)huggingface.co
- #53 in Hugging Face trends today
- 2 checks passed
At a glance
- Use
- Documents and OCR
- Level
- No code
- Access
- Try online, On my computer
- Commercial use
- Commercial use allowedLicence: MIT
- Hardware (estimate)
- Light: a laptop is enoughEstimate from the model size (3.3B parameters).
- Type
- Model
Why it's getting attention
It uses Sparse Reference Sliding Window Attention to achieve unbounded document parsing without memory bottlenecks.
What it can do
- Reads documents (OCR)
What it's for
- Perform OCR on single pages using dynamic tiling.
- Parse multi-page documents in one request to utilize cross-page context.
- Analyze ultra-long documents with hundreds of pages.
Who it's for
Users needing to extract text from extremely long or multi-page documents across multiple languages.
How to try it
- Install the transformers library and required dependencies.
- Load the model and tokenizer from the baidu/Unlimited-OCR-2 repository.
- Use the infer or infer_multi methods to process images.
pip install torch==2.13.0 torchvision pillow transformers==4.52.1 huggingface-hub==0.36.0 \
tokenizers==0.21.4 addict==2.4.0 einops==0.8.2 easydict==1.13Strengths
- Handles unbounded document parsing with constant memory footprint.
- Avoids quadratic attention scaling via SR-SWA technology.
- State-of-the-art performance on extreme long-document benchmarks.
Limits and requirements
- Requires custom_code execution during model loading.
