LlamaIndex has released OCRia-nano-1, the smallest model in its OCRia family. The OCRia-nano-1 OCR model has 8.1M parameters and open weights on Hugging Face. It reads text, rebuilds tables and recovers page layout on a CPU. No GPU is needed. It runs inside LiteParse, the company’s open-source local parser. The target is the cheap first pass over large document backlogs. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
TL;DR
- Size: 8.1M parameters across 7 small models (3.9M OCR stack, 4.27M LayoutNet). No context length; it works page by page.
- Runs on: Any CPU on Linux, macOS or Windows, plus browsers via WebAssembly. About 60 to 75 MB download. No GPU.
- Performance: Top ParseBench-2 score (59.2) in its 4-system table, at 426 ms per page on 1 core.
- Best: Formatting, 82.2 on ParseBench-2.
What is OCRia-nano-1?
OCRia-nano-1 is a CPU document parsing pipeline from LlamaIndex, distilled from its 4B OCRia-1 VLM. It has about 1/500th of the teacher’s parameters. It is not a single network. It is 7 specialist models chained inside LiteParse. OCRia-1 generated the training labels: text transcriptions, table annotations and layout labels.
How does the OCRia-nano-1 pipeline work?
Each page passes through 6 stages, per the model card:
- Text layer check: PDFium reads native text from digital PDFs. Pages without usable text go to OCR.
- Line detector (0.08M): Finds text lines on the rendered page (250 DPI by default).
- Script router (0.04M): Picks the page’s majority script. Confident lines can override it. It also flags upside-down pages.
- 4 recognizers: Latin (0.80M), world-script (0.98M), right-to-left (0.71M) and CJK (1.27M).
- Merge: OCR lines are combined with any native PDF text.
- LayoutNet (4.27M): A 6-layer transformer over text units with a CNN image branch. It predicts table, row, column, cell and block relations across 13 layout classes.
Output is Markdown, JSON with bounding boxes, or plain text. Tables come out as Markdown, or HTML when cells span.
How does OCRia-nano-1 score on benchmarks?
All numbers below are self-reported by LlamaIndex. Systems ran on the same 16-vCPU machine over 300 random ParseBench pages. ParseBench-2 is LlamaIndex’s own benchmark.
On ParseBench-2, Nano scores 59.2 overall. Indra 1.1.2 scores 55.1, Marker 2.2.0 (fast) 52.5 and LiteParse with Tesseract 48.7. Nano’s largest lead is tables: 59.5 versus 47.6 for Indra. It also leads on layout (72.4) and formatting (82.2).
On the other 4 quality benchmarks, Nano posts OmniParseBench 74.8, ParseBench-1 52.7 and olmOCR-bench 60.9. Its BHL character error rate is 0.048, where lower is better.
The margins are not uniform. Nano leads olmOCR-bench by 0.1 point over Indra and Marker. It trails Indra on forms (69.8 vs 70.2). LiteParse with PP-OCRv6 small scores 59.9, above Nano, but runs at 5.7 pages per second. PP-OCRv6 tiny reaches 58.9 at 14.7 pages per second.
How fast is OCRia-nano-1 on a CPU?
On 1 core, Nano averages 426 ms per page, and 90% of pages finish within 862 ms. Timings include the full LiteParse pipeline. With 16 single-core workers, it processes 27.8 pages per second. That is about 2x LiteParse’s default Tesseract setup at 14.2.
Indra is slightly faster at 29.6 pages per second. Running Nano’s OCR stack without LayoutNet gives 37.2 pages per second, but quality drops to 51.2. In WebAssembly, a scanned page takes about 1 to 4 seconds on a single-threaded laptop. LlamaIndex does not name the CPU model used.
How do you run OCRia-nano-1?
pip install liteparse
lit models pull ocria-nano
lit parse doc.pdf --format markdown
LiteParse also installs through npm and cargo. Python and Node.js expose an ocria-nano OCR backend. A browser build ships as @llamaindex/liteparse-wasm, where model subsets can drop to about 1.5 MB. Inputs include digital PDFs, scans, images and Office files. Nano cannot run outside LiteParse.
Comparison: OCRia-nano-1 vs other CPU parsers
| Metrics | OCRia-nano-1 | Indra 1.1.2 | Marker 2.2.0 (fast) | PP-OCRv6 tiny | Tesseract |
|---|---|---|---|---|---|
| Developer | LlamaIndex | Datalab | Datalab | Baidu PaddlePaddle | Tesseract OSS |
| Parameters | 8.1M total | ~1M main recognizer, ~7.3M default models | Not disclosed | 1.5M tiny tier (paper) | Not disclosed |
| Runtime | ONNX Runtime, CPU, WebAssembly | ONNX Runtime, CPU only | PyTorch, CPU/GPU/MPS | PaddlePaddle or ONNX, CPU/GPU | CPU, LSTM engine |
| Weights license | Modified Open RAIL-M, free under $2M revenue and funding | Modified OpenRAIL-M, free under $20M | Modified Open RAIL-M, free under $5M | Apache 2.0 | Apache 2.0 |
| Scripts / languages | Latin, CJK, Arabic, Hebrew, ~17 more scripts | 95 measured, 83 at char F1 ≥ 0.90 | Claims all languages | 49 (tiny recognizer) | 100+ |
| ParseBench-2 overall* | 59.2 | 55.1 | 52.5 | 58.9 (in LiteParse) | 48.7 (in LiteParse) |
| ParseBench-2 tables* | 59.5 | 47.6 | 43.6 | Not disclosed | 36.2 |
| ParseBench-2 forms* | 69.8 | 70.2 | 69.2 | Not disclosed | 68.5 |
| Pages/s, 16 vCPU* | 27.8 | 29.6 | 24.7 | 14.7 | 14.2 |
| Mean ms/page, 1 core* | 426 | 440 | 578 | 773 | 751 |
*Measured by LlamaIndex on the OCRia-nano-1 model card. Vendor specs in the other rows come from each project’s own page.
What license does OCRia-nano-1 use?
The weights use a custom license based on Open RAIL-M. Research and personal use are free. Commercial use is free for organizations under $2M annual revenue and $2M total funding. Any product competing with LlamaParse or LlamaCloud needs a commercial license, regardless of size. LiteParse itself is Apache 2.0.
Key Takeaways
- 8.1M parameters, CPU only, 426 ms per page on 1 core.
- 59.2 on ParseBench-2, ahead of Indra (55.1) and Marker fast (52.5).
- Tables are the big win: 59.5 vs 47.6 for the next CPU parser.
- Charts score 3.1; send hard pages to OCRia-1.
- Commercial use is free only under $2M revenue and funding.
Check out the model weights, LiteParse repo and technical blog. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
Asif Razzaq is the CEO of Marktechpost AI Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.
