ChengRang

OCRia-nano-1

AI Productivity Free

An 8.1M-parameter CPU document parsing pipeline from LlamaIndex, distilled from the 4B OCRia-1 document vision model at one five-hundredth the size. It combines a line detector, a script router, four recognizers for Latin, world scripts, right-to-left and CJK text, and a 4.27M LayoutNet covering 13 layout classes. Paired with LiteParse it reaches 27.8 pages per second on 16 vCPUs at 426 milliseconds per page, and scores 59.2 on ParseBench-2. Weights ship as ONNX and also build to WebAssembly.

Document ParsingOCRCPU InferenceLlamaIndexSmall Model
Visit OCRia-nano-1

Disclaimer: Review content represents our editorial team's views and experience, not commercial recommendation or investment advice. Product info and pricing may change; refer to official sources.

Overview

Document parsing teams share a familiar experience: the good options mostly run on GPUs. A document model with tens of billions of parameters reads a scanned page into structured content convincingly, but it wants a card sitting there, and cost gets hard to hold once volume climbs. To run on ordinary servers, edge boxes or even in a browser, teams fall back to classic OCR, which gives up ground on layout, tables and formatting.

OCRia-nano-1, released by LlamaIndex in November 2026, takes the distillation path. It uses the in-house 4B document vision-language model OCRia-1 as teacher, compresses the capability into an 8.1M-parameter pipeline at one five-hundredth of the teacher's size, and runs entirely on CPU. Weights ship as ONNX on Hugging Face, inference runs on ONNX Runtime, and the stack also builds to WebAssembly.

One point needs stating plainly: this is not a standalone model you install and run. The model card says these are the model files LiteParse calls, without an inference script of their own. Putting it to work means pairing it with the LiteParse parser. LiteParse itself is Apache 2.0 while the weights carry a separate license.

The 8.1M breaks down by component. Line detection is 0.08M. Deciding which script each line uses, and flagging upside-down lines, takes 0.04M. Recognizers split four ways by script: Latin at 0.80M supporting 791 characters, world scripts at 0.98M covering about 17 writing systems, right-to-left at 0.71M for Arabic and Hebrew, and CJK at 1.27M. LayoutNet adds 4.27M with a six-layer transformer over text units plus a CNN image branch, handling table, row, column, cell and layout-block relations across 13 layout classes. Without LayoutNet, the OCR stack alone is 3.9M.

Speed is the headline. On a 16 vCPU machine with one worker per core, averaged across five hosts, LiteParse with OCRia-nano-1 reaches 27.8 pages per second, or 426 milliseconds per page on a single core with a P90 of 862 milliseconds. Under the same conditions LiteParse with Tesseract gets 14.2 pages per second at 751 milliseconds per page, Marker 2.2.0 in fast mode reaches 24.7 and Indra 1.1.2 reaches 29.6. Running OCR without LayoutNet lifts throughput to 37.2 pages per second. Compiled to WebAssembly on a single thread, a scanned page takes roughly 1 to 4 seconds on a laptop.

Quality leads the CPU field. ParseBench-2 comes in at 59.2 against 48.7 for Tesseract, 52.5 for Marker and 55.1 for Indra. OmniParseBench is 74.8, ParseBench-1 is 52.7, olmOCR-bench is 60.9, and BHL character error rate is 0.048. On the ParseBench-2 breakdown, text scores 68.5, formatting 82.2, tables 59.5, layout 72.4 and forms 69.8, while charts land at 3.1. Set against the teacher OCRia-1 at 87.0 on GPU, the gap concentrates in tables and charts, the places that call for interpreting a figure.

Watch the license. OCRia-nano-1 Model License builds on AI Pubs Open RAIL-M. Academic and nonprofit research, teaching, evaluation and personal use are free. Commercial use is cleared below 2 million dollars in annual revenue and 2 million dollars in total funding. Above that line, or at any size when building a parsing product that competes with LlamaParse or LlamaCloud, a separate commercial license is required. LiteParse is Apache 2.0, ONNX Runtime is MIT, and users own their outputs.

Its place is clear: high volume, modest need for chart understanding, and no appetite for paying GPU cost on every parse. Invoices, contracts, scanned official documents and books, all text and table heavy, can take it as a first parsing pass at very low cost. A research report packed with charts still belongs to the GPU document model.

Key Features

Use Cases

Pros

Pricing

Weights download free from Hugging Face. The license is the OCRia-nano-1 Model License, built on AI Pubs Open RAIL-M: academic and nonprofit research, teaching, evaluation and personal use are free, and organizations under 2 million dollars in annual revenue and total funding may use it commercially. Above that line, or at any size when building a parsing product competing with LlamaParse or LlamaCloud, a commercial license is required. LiteParse is Apache 2.0 and ONNX Runtime is MIT.

Summary

LlamaIndex distilled the 4B document vision model OCRia-1 into an 8.1M-parameter CPU pipeline that reaches 27.8 pages per second on 16 vCPUs through LiteParse and scores 59.2 on ParseBench-2, close to double the Tesseract setup with a higher score. It is not a standalone model but ONNX weights for LiteParse, with commercial terms drawing the line at 2 million dollars in annual revenue.

Version History

Category
AI Productivity
Pricing
Free
Tags
Document Parsing · OCR · CPU Inference
Website

Related Tools