Skip to content
AIBRAINWORX / OpenSourceCoder.comLOCAL-FIRST. BUILT IN THE OPEN.
Multimodal & Vision / Developer & Agent Tools

LlamaIndex Releases 8.1M-Parameter OCRia-nano-1 CPU Document Parsing Pipeline Under Restricted License

LlamaIndex distills its 4B OCRia-1 vision-language model into an 8.1M-parameter ONNX pipeline for LiteParse, bringing fast CPU and WebAssembly OCR and layout parsing with strict commercial licensing limits.

Listen to this articleBrowser Voice
Ready
Official company logo or product image for llamaindex-ocria-nano-1-cpu-document-parsing-pipeline
Official image or organization logo from huggingface.co; identification only, no endorsement.
Event / context: 2026-11-03. Source check: October 28, 2026.

CPU-First Document Parsing Distilled From a 4B Vision Model

LlamaIndex has published OCRia-nano-1 on Hugging Face, an 8.1-million-parameter document parsing pipeline designed to run directly on CPUs and browser WebAssembly runtimes without GPU acceleration. Released as the default OCR and layout backend for LiteParse, LlamaIndex's Apache 2.0-licensed local document parser, the pipeline is distilled from OCRia-1, the company's 4-billion-parameter document vision-language model, shrinking parameter count to roughly 1/500th of the teacher model.

Rather than functioning as a standalone model with an independent inference script, OCRia-nano-1 operates strictly as a modular set of weights executed by LiteParse across Linux, macOS, Windows, and edge or browser environments. According to the model card, the full download including ONNX Runtime totals 60 to 75 MB and is verified against pinned SHA-256 checksums during setup. For developers building local extraction workflows, the release targets a practical gap between heavy GPU vision-language models and older CPU engines like Tesseract that struggle with multi-column layouts and complex tables.

Modular ONNX Architecture and Reported Benchmark Performance

Under the hood, OCRia-nano-1 splits document parsing into a 3.9-million-parameter OCR stack and a 4.27-million-parameter layout model called LayoutNet. LiteParse renders input pages at 250 DPI by default, passes images through a depthwise-separable line detector (det.onnx, 0.08M parameters), and routes each cropped text line via router.onnx (0.04M parameters), which also detects upside-down text. The router dispatches lines to one of four CTC-based recognizers: an int8 Latin model (rec_latin.onnx, 0.80M, 791 characters), a world-script model (rec_world.onnx, 0.98M, roughly 17 scripts), a right-to-left Arabic and Hebrew model (rec_rtl.onnx, 0.71M), and a CJK recognizer for Chinese, Japanese, and Korean (rec_cjk.onnx, 1.27M).

Once OCR text is merged with any underlying PDF text layer, LayoutNet (tablenet.onnx / tablenet.bin) applies a CNN image branch paired with a six-layer transformer over text units to identify table rows, columns, spanning header cells, and 13 layout classes such as headings, lists, captions, and page headers or footers. In benchmarks reported in LlamaIndex's technical report by Logan Markewich—measured by the company on a 16-vCPU container across five hosts using 300 random ParseBench pages with one worker per core—LiteParse with OCRia-nano-1 achieved 59.2 overall on ParseBench-2 v2.07. That company-reported score outpaces CPU baselines Indra 1.1.2 (55.1), Marker 2.2.0 fast (52.5), and LiteParse with Tesseract (48.7), while delivering 27.8 pages per second on 16 vCPUs and a single-core mean of 426 ms per page (862 ms P90). LlamaIndex also reports 74.8 on OmniParseBench v1.7, 52.7 on ParseBench-1, 60.9 on olmOCR-bench, and a 0.048 character error rate on BHL IMPACT.

Developer Workflow and Cross-Runtime Integration

For engineering teams, the tight coupling with LiteParse lowers the barrier to deploying structured document extraction in Python, Node.js, Rust, and browser sandboxes. Developers can install LiteParse via pip, npm, or cargo, pull the models once with lit models pull ocria-nano, and convert PDFs, images, or Office documents into Markdown, plain text, or JSON containing word bounding boxes and OCR confidence scores. Page headers and footers are stripped from Markdown output by default unless --keep-headers-footers is passed, while --extract-blocks exposes structured JSON layout elements.

Client-side deployment is another notable addition. LiteParse runs the ONNX graphs natively via ONNX Runtime, while browser and edge workloads via @llamaindex/liteparse-wasm execute on the tract WebAssembly engine. Developers targeting size-constrained environments can selectively fetch subsets of the pipeline—such as Latin-only OCR without LayoutNet—cutting the model payload down to 1.5 MB, with single-threaded laptop WebAssembly execution taking roughly one to four seconds per scanned page.

Accuracy Tradeoffs and Non-Open-Source Licensing Caveats

Despite strong gains on text and tables, the primary documentation highlights sharp capability boundaries compared to full GPU vision models. On ParseBench-2's Charts dimension, LiteParse with OCRia-nano-1 scores just 3.1, matching Indra and Marker's 3.1 and trailing far behind the 4B OCRia-1 teacher model's 77.4 score on GPU. Even on tables (59.5 versus 89.9) and overall ParseBench-2 (59.2 versus 87.0), the 8.1M-parameter distillation trades substantial accuracy for CPU speed and memory efficiency.

More importantly for open-source adopters, OCRia-nano-1's model weights are not open source. While LiteParse carries an Apache 2.0 license and ONNX Runtime uses MIT, the weights ship under the custom OCRia-nano-1 Model License based on AI Pubs Open RAIL-M. Use is free for academic research, personal projects, and commercial entities under $2 million in both annual revenue and total funding, but organizations above those thresholds must purchase a commercial license. Furthermore, the license explicitly bars using the weights—regardless of company size—in any document parsing, OCR, or extraction product or service that competes with LlamaParse or LlamaCloud without a commercial agreement, requiring teams to separate permissive tooling from restricted weights before shipping to production.

Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-24.

Follow your curiosity.

Pass the signal.