Tools/baidu/Unlimited-OCR

Unlimited-OCR

Unlimited OCR Works: Welcome the Era of One-shot Long-horizon Parsing.

31.0k ★+654/wkgrowthPythonMIT License →new this week

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Oct 2026

Unlimited-OCR is Baidu's open model for reading documents. Point it at a scan, a screenshot or a long PDF and it returns the text with layout tags in one pass instead of stitching pages together. It builds on DeepSeek-OCR, and code and weights are both MIT, so commercial use is free.

Running it yourself means an NVIDIA GPU. It's a 3.3-billion-parameter model (about 6.7GB of weights), served through Hugging Face transformers, vLLM's prebuilt Docker image, or a custom SGLang wheel the repo ships. There's no app or UI: you write the script that feeds it pages.

Baidu Cloud now hosts it as an API, free for a limited time (200 test pages for verified individuals, 1,000 for companies), but signup means real-name verification on a Chinese cloud. Solo: free on a rented GPU, or the Hugging Face demo. Small teams: one GPU box behind vLLM. Larger teams: add a queue, or stay on AWS Textract if you need forms and tables pre-extracted.

The catch: loading it runs Baidu's own model code (trust_remote_code=True), and the hosted API sends your files to Baidu. Self-host sensitive documents, pin a model revision, and test on your own messy scans, since the benchmarks are Baidu's.

Free vs Self-Hosted vs Paid

fully free

Free: The code on GitHub and the model weights on Hugging Face are both MIT licensed (each repo carries its own MIT LICENSE file, copyright Baidu 2026). Free to download, modify and use commercially. A free demo runs on Hugging Face Spaces, and the model is also mirrored on ModelScope.

Self-hosted: The real way to run it. You supply an NVIDIA GPU; the README's transformers path is tested on Python 3.12.3 and CUDA 12.9. The model is about 3.3B parameters, roughly 6.7GB of BF16 weights. Three serving options: plain transformers (model.infer for a single image, model.infer_multi for multi-page and PDF), vLLM with official images (vllm/vllm-openai:unlimited-ocr on CUDA 13.0, unlimited-ocr-cu129 for Hopper GPUs), or SGLang via a pre-release SGLang wheel bundled in the repo, which exposes an OpenAI-compatible streaming API. infer.py batch-processes an image folder or a PDF with concurrent requests. No license fee; you pay for the GPU.

Paid: Baidu Cloud sells a hosted Document Parsing (Unlimited-OCR) API that returns JSON or Markdown. It is currently free for a limited time: 200 free test pages for real-name-verified individuals, 1,000 for verified companies. It is asynchronous (submit, then poll), PDFs up to 500 pages, and Baidu has not published a per-page price yet. Your files go to Baidu's servers.

Free and MIT for both code and weights; your only cost is the GPU. Baidu Cloud's hosted API is free for now (200 test pages for individuals, 1,000 for companies) but has no published price and needs real-name verification.

What to do by team size

Solo
free; try the Hugging Face demo, then a rented GPU for real jobs
Small team
free on one GPU box served with vLLM
Medium team
free self-hosted behind a job queue; budget GPU time, not licenses
Large team
free self-hosted at scale, or stay on a managed OCR service if you need extracted forms and an SLA
Self-hosting ops:significant

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
88/100 · A
Adoption27/30
Maintenance25/25
Community11/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Organization account (125 public repos)Notable author: 2,610 followersAuthor also built: baidu/nettools (157 stars)

License: MIT License

Code and model weights are both MIT.

Commercial use: ✓ Yes

About

Owner
Baidu (Organization)
Stars
30,984
Forks
3,315

Also by Baidu

Explore Further

More tools in the directory

Featured in The Open Source Drop #16