Trung Quốcbaidu/Unlimited-OCR
Unlimited OCR Works: Welcome the Era of One-shot Long-horizon Parsing.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#9 Repository Của Tháng
#8 Repository Của Tháng
#9 Repository Của Tuần
🚀 Unlimited-OCR: One-Shot Long-Horizon Document Parsing
Baidu's Unlimited-OCR takes document parsing to the next level — process entire multi-page PDFs or single images in a single forward pass.
Unlimited-OCR is an open-source OCR model from Baidu that extends Deepseek-OCR to handle long-horizon document parsing in a single shot. It accurately parses documents of any length — from single images to multi-page PDFs — without the chunking overhead that plagues traditional OCR pipelines. The model is available on Hugging Face, ModelScope, and Baidu Cloud, with support for transformers, vLLM, and SGLang inference frameworks.
✨ Highlights
- One-shot long-horizon parsing: Process entire multi-page documents in a single forward pass instead of chunked pipelines.
- Dual single-image configs: Choose between
gundam(base_size=1024, image_size=640, crop_mode=True) orbase(image_size=1024, crop_mode=False) for different accuracy/speed tradeoffs. - Multi-page & PDF support: Handle multi-page documents and full PDFs via PyMuPDF conversion with
infer_multi. - Multi-framework inference: Works with Hugging Face transformers, vLLM, and SGLang for flexible deployment.
- Training support: Compatible with ms-swift for fine-tuning and custom training workflows.
- Cross-platform availability: Ready to use on Hugging Face, ModelScope, Baidu Cloud, and Hugging Face Spaces demo.
💡 Why it matters
Traditional OCR pipelines chop documents into fragments, then stitch results back together — losing context and introducing errors at boundaries. Unlimited-OCR's one-shot approach processes the entire document as a single sequence, preserving layout and semantic continuity across pages. This makes it particularly valuable for legal, academic, and enterprise documents where structure and cross-references matter.
For teams building document AI pipelines, the multi-framework support (transformers, vLLM, SGLang) means you can prototype on a single GPU and scale to production without rewriting code. The open-source release also makes it a strong foundation for domain-specific fine-tuning.
#OCR #DocumentParsing #AI #TiniX