LlamaIndex has released OCRia-nano-1, an 8.1-million-parameter model pipeline built for CPU document parsing. It combines an OCR stack with a table and layout model and plugs into LiteParse, the company’s open-source parser for local use. The models were distilled from OCRia-1, a document vision-language model with 4 billion parameters, and are about 500 times smaller.
Accuracy and speed
On ParseBench-2, OCRia-nano-1 scores 59.2. That beats the CPU parsers Indra at 55.1 and Marker at 52.5, and it lifts LiteParse from 48.7 when it uses Tesseract.
It’s also fast. On a 16-vCPU machine the pipeline gets through 27.8 pages a second, and a single core needs 426 ms per page. That’s double the pace of LiteParse running Tesseract. Compiled to WebAssembly it runs on a single thread and takes roughly 1 to 4 seconds for a scanned page on a laptop. All local systems were tested on the same 16-vCPU machine, with throughput measured on 300 random ParseBench pages and one worker per core.

What’s inside
The OCR stack is a detector and recognizer with 3.9 million parameters. Alongside it sits LayoutNet, a joint table and layout model. LayoutNet finds tables, including rows, columns and spanning header cells, and classifies blocks such as headings, lists, captions and page headers and footers. It works on scanned and born-digital pages.
A router assigns every line of text to one of four recognizers:
- Latin script
- CJK
- Right-to-left scripts such as Arabic and Hebrew
- A world-script model covering about 17 more scripts
The release is a set of model files for LiteParse, with no inference script of its own. LiteParse draws each page at 250 DPI by default and passes it through detection, routing and recognition. It then combines the OCR output with the text already in the PDF, applies LayoutNet and emits Markdown or JSON with bounding boxes. PDFs, images and Office files are accepted after conversion, and the language is detected automatically.

How to try it
Start by installing LiteParse through pip, npm or cargo. A one-time command, lit models pull ocria-nano, then fetches the models and ONNX Runtime, 60 to 75 MB in all, and verifies every file against a pinned sha256 hash. After that, OCRia-nano-1 is LiteParse’s default OCR backend, and lit parse scan.pdf –format markdown produces the output. Tesseract is still available with –ocr-backend tesseract.
Supported environments include the CLI, Python and Node.js on Windows, macOS and Linux. Browsers and edge platforms use WebAssembly, where developers can trim downloads, for instance Latin script only with no layout model, which needs just 1.5 MB. Natively the ONNX models run on ONNX Runtime, and in WebAssembly they run on tract.

Why distillation matters here
Distillation trains a small model to imitate a large one. Here the teacher is OCRia-1, a 4-billion-parameter document vision-language model, and the student keeps only a fraction of its size. The trade is clear in the scores: the small pipeline gives up the flexibility of a large model but gains speed and the ability to run where no GPU exists.
Because LayoutNet can classify layout blocks from the PDF text layer alone, it can handle multi-column pages without running OCR on every one. LiteParse merges OCR text with the existing text layer, so clean digital PDFs don’t pay the full cost of scanning.
License terms to check
The weights ship under the OCRia-nano-1 Model License, derived from the AI Pubs Open RAIL-M terms. Its terms:
- No charge for academic or non-profit research, teaching, evaluation, benchmarking and internal R&D that stays out of products and production.
- No charge for personal use, or for companies with under $2 million in yearly revenue and under $2 million in total funding.
- A commercial license is needed above those thresholds, and for any document parsing, OCR or extraction product that competes with LlamaParse or LlamaCloud, whatever the size.
Users own their outputs. LiteParse stays open source under Apache 2.0, and ONNX Runtime keeps its MIT license.
What it means for developers
Many document pipelines depend on GPU servers or hosted APIs for OCR. A model this small makes local parsing practical on ordinary CPUs, in a browser or at the edge. The commercial thresholds matter for startups that plan to sell parsing as a service. Anyone planning production use should read the license and run the ParseBench-2 command the authors give to reproduce their results before relying on the scores.
Source: huggingface.co