Skip to main content
AI

OCRia-nano-1: 8.1M-Parameter Parsing on CPU

LlamaIndex's OCRia-nano-1: an 8.1M-parameter OCR + table + layout pipeline on one CPU core. 426 ms/page, 59.2 on ParseBench-2, distilled from a 4B VLM.

Luca Berton

· The Production AI Expert

Published ·7 min read

Document ingestion is the unglamorous half of every AI project. The model is the headline; the parser is the part that quietly decides whether your RAG pipeline reads a contract or chokes on it. And for a Production AI operator, that part has an economics problem: there are an estimated 100 trillion document pages in circulation, from invoices and reports to dense tables and degraded scans, and you cannot afford a GPU for every one of them.

That is the exact gap LlamaIndex just closed with OCRia-nano-1. Released on 23 November 2026 with open weights on Hugging Face, it is an 8.1M-parameter document parsing pipeline built to run on a single CPU core — and it is, in my view, the most interesting CPU parser to land this year. Not because it beats a 4B vision-language model, but because it tells you when not to use one.

What OCRia-nano-1 actually is

The framing that matters: OCRia-nano-1 is not a single model. It is a pipeline of seven specialized ONNX models that runs inside LiteParse, LlamaIndex’s open-source local document parser. For a digital PDF, LiteParse reads the text layer directly and only invokes OCR where text is missing — a scan or an embedded image. That hybrid design is the whole trick: you get the speed of native text extraction with the accuracy of learned structure recovery, in one local process.

The seven models total 8.1M parameters:

ModelRoleParameters
Line detector (det.onnx)segmentation map of text lines, depthwise-separable0.08M
Script router (router.onnx)picks a recognizer per line crop; detects upside-down lines0.04M
Latin recognizer (rec_latin.onnx)CTC, int8, 791 characters0.80M
World-script recognizer (rec_world.onnx)CTC, ~17 additional scripts0.98M
RTL recognizer (rec_rtl.onnx)CTC, Arabic and Hebrew0.71M
CJK recognizer (rec_cjk.onnx)CTC, Chinese, Japanese, Korean1.27M
LayoutNet (tablenet)6-layer transformer over text units + CNN image branch: table/row/column/cell relations, 13 layout classes4.27M

The OCR stack is about 3.9M parameters; LayoutNet alone is 4.27M. That split is the signal. The recognizer work is cheap and well-understood; the hard, valuable part — reconstructing table structure and page layout — is where the parameters and the accuracy live. And LlamaIndex distilled the whole thing from OCRia-1, a 4B document VLM, keeping only the training lines a second reader (the PDF text layer or PP-OCRv6) agreed with. The result is a student that carries roughly two-thirds of its 87.0 teacher’s accuracy at 1/500th of its parameters.

Accuracy and speed at 8.1M

Here is the benchmark table that should make every ingestion team sit up. Every system runs on the same 16-vCPU machine, one worker per core:

System (CPU)ParseBench-2pages/sms/page, 1 core (mean / P90)
LiteParse (Tesseract, default)48.714.2751 / 2,420
Marker 2.2.0 (fast)52.524.7578 / 1,111
Indra 1.1.255.129.6440 / 871
LiteParse + OCRia-nano-159.227.8426 / 862

Three takeaways:

  • It wins on accuracy, not throughput. OCRia-nano-1 tops ParseBench-2 at 59.2 but is a hair behind Indra on raw pages/second. What it does is hold both — 59.2 at 27.8 pages/s puts it on the accuracy–speed Pareto frontier the LlamaIndex team claims, and that is the honest read.
  • The P90 is the number that matters in production. 426 ms mean is nice; 862 ms at P90 tells you the tail, and 862 ms is still far better than Tesseract’s 2,420 ms P90. When you are queueing thousands of pages, the tail is your throughput.
  • Table recovery is the real win. On the ParseBench-2 sub-dimensions, tables jump to 59.5 and layout to 72.4 — the two dimensions free CPU parsers have historically failed at. Tesseract sits at 36.2 on tables. If your pipeline is mostly tabular (invoices, reports, financials), this is not marginal; it is the difference between a usable feed and a rejected one.

Multilingual routing

The recognizer story is where multilingual ingestion stops being a special case. A tiny script router picks each page’s majority script, lets individual lines override it when confident, and even detects upside-down lines before recognition. It routes to four recognizers — Latin, CJK (Chinese/Japanese/Korean), right-to-left (Arabic, Hebrew), and a world-script model covering about 17 additional scripts — which means a single pipeline handles a dozen-plus scripts, including pages that mix scripts. For a global organization ingesting multilingual documents, that removes a class of “which OCR engine do I spin up” decisions entirely.

The production angle: a cheap first pass

Here is why I am enthusiastic, and it is the part LlamaIndex states plainly in their own post: OCRia-nano-1 should be the default first pass for every document collection in an organization, even when the hardest documents still need a bigger VLM. That is the right instinct. In production you do not run a 4B VLM on every page — you route the 90% of everyday documents (reports, straightforward contracts, invoices, routine scans) through a cheap, fast CPU parser, and escalate the complex ones (handwriting, dense multi-column tables, degraded scans, math notation, chart-to-table extraction) to OCRia-1.

That is a cost-tiered parsing strategy, and it is exactly how you keep a document pipeline economically viable at 100-trillion-page scale. Nano is the low-cost tier; the VLMs are the expensive tier you avoid paying for on simple input.

Two honesty checks before you wire it in:

  • No chart model. OCRia-nano-1 keeps charts as images. If your pipeline needs chart-to-table extraction, that is the teacher’s job — route those pages to OCRia-1.
  • The license is not “free.” The weights ship under a modified OpenRAIL-M license: free for research, teaching, and personal use, and free for commercial use by organizations under $2M in annual revenue and under $2M in total funding. Above those thresholds, and for any product or service that competes with LlamaParse or LlamaCloud, a commercial license is required. For most early-stage teams this is a non-issue; for an established ingestion business it is the first thing to check. Note that LiteParse itself is Apache-2.0 and you own your outputs — only the weights carry the restriction.

Quickstart

OCRia-nano-1 is an opt-in OCR backend in LiteParse. Install, pull the models once (60–75 MB, including ONNX Runtime), and parse:

pip install liteparse
lit models pull ocria-nano        # models + ONNX Runtime, checked by sha256
lit parse scan.pdf --format markdown   # OCR, tables, and layout via OCRia-nano-1
lit parse scan.pdf --ocr-backend tesseract   # force Tesseract for one run

In Python:

from liteparse import LiteParse, models

models.pull("ocria-nano")
result = LiteParse(ocr_backend="ocria-nano", output_format="markdown").parse("scan.pdf")
print(result.text)

And — the detail I did not expect to like — it runs in the browser and edge via WebAssembly (@llamaindex/liteparse-wasm), with models you can scope down to ~1.5 MB for a Latin-only, layout-off path. A document parser that runs in the browser is a genuine unlock for client-side ingestion and privacy-sensitive workflows where pages never leave the machine.

My assessment

OCRia-nano-1 is the strongest signal yet that the document-ingestion problem is splitting into tiers, and that the smart move in 2026 is routing, not brute force. It is the most credible “cheap, fast, good-enough-for-90%-of-pages” CPU parser I have seen — and it is deliberately not trying to be the answer for the hardest documents.

What is impressive:

  • 8.1M parameters that hold the Pareto frontier — 59.2 on ParseBench-2 at 27.8 pages/s, ahead of Indra and Marker on accuracy
  • Distillation done right — a 4B teacher, second-reader filtering, 1/500th the size, roughly two-thirds the accuracy
  • Table and layout as the headline win — the dimensions free parsers have failed at
  • Multilingual by default — one pipeline, a dozen-plus scripts, mixed-script pages
  • Runs where your pipeline already runs — CPU on Linux/macOS/Windows, plus browser and edge via WASM

What gives me pause:

  • The benchmark numbers are self-reported — they are LlamaIndex’s own, on their own benchmark; reproduce parse-bench run liteparse_ocria_nano on your own hardware before you commit
  • No chart-to-table — escalate those pages to OCRia-1 or you will drop that signal
  • The OpenRAIL-M thresholds — fine for most teams, a real constraint for established ingestion vendors
  • It is a pipeline, not a standalone model — you cannot run these weights in isolation; you need LiteParse, which is a healthy dependency but a dependency nonetheless

For anyone running — or planning — a high-volume ingestion pipeline, OCRia-nano-1 is the tier-1 parser I would put in front of the expensive models. For everyone else: start with a single-page trial, read the license, and let it tell you when to escalate.


Related Resources:

Frequently Asked Questions

What is OCRia-nano-1?

OCRia-nano-1 is LlamaIndex's 8.1M-parameter document parsing pipeline, released 23 November 2026. It combines seven small ONNX models — a detector, a script router, four text recognizers, and LayoutNet — and runs locally on CPU inside LiteParse, their open-source parser.

How fast is OCRia-nano-1?

On a single CPU core it averages 426 ms per page (P90 862 ms), and 27.8 pages per second with 16 single-core workers — about twice the throughput of LiteParse with its default Tesseract backend. All timings include the full pipeline.

How accurate is it?

On ParseBench-2 it scores 59.2 overall, ahead of the CPU parsers Indra (55.1) and Marker (52.5), and up from 48.7 with Tesseract. It is distilled from OCRia-1, a 4B document VLM that scores 87.0, so it keeps roughly two-thirds of the teacher's accuracy at 1/500th the size.

Does it run on GPU?

No. OCRia-nano-1 is CPU-only. It runs on Linux, macOS, and Windows through the LiteParse CLI, Python, and Node.js, and in the browser and edge runtimes via WebAssembly. It has no GPU path.

What languages does it support?

A script router sends each text line to one of four recognizers: Latin (791 characters), CJK (Chinese, Japanese, Korean), right-to-left (Arabic, Hebrew), and a world-script model covering about 17 additional scripts — a dozen-plus scripts per page, including pages that mix scripts.

What is the license?

The weights use a modified OpenRAIL-M license: free for research, teaching, and personal use, and free for commercial use by organizations under $2M in annual revenue and under $2M in total funding. Above those thresholds — or for any product or service that competes with LlamaParse or LlamaCloud — a commercial license is required. LiteParse itself is Apache-2.0.