llamaindex/OCRia-nano-1
Summary
LlamaIndex released OCRia-nano-1, an 8.1M-parameter document parsing model pipeline for CPU use, distilled from its 4B OCRia-1 VLM and running inside the open-source LiteParse parser. It achieves 59.2 on ParseBench-2 and 27.8 pages/second, outperforming CPU parsers like Indra and Marker while supporting tables, layout detection, and multi-script OCR.
View Cached Full Text
Cached at: 11/24/26, 03:49 PM
llamaindex/OCRia-nano-1 · Hugging Face
Source: https://huggingface.co/llamaindex/OCRia-nano-1

Technical report·Blog post·LiteParse·OCRia-1·ParseBench
OCRia-nano-1 is an 8.1M-parameter model pipeline for document parsing on CPU fromLlamaIndex. It pairs a detector–recognizer OCR stack with LayoutNet, a joint table and layout model, and it runs insideLiteParse, the open-source local document parser. Its models are distilled fromOCRia-1, our 4B document VLM, with 1/500th of its parameters.
- **Accuracy:**59.2 onParseBench-2, ahead of the CPU parsers Indra (55.1) and Marker (52.5). It lifts LiteParse from 48.7 with Tesseract. SeeBenchmarks.
- **Speed:**27.8 pages per second on 16 vCPUs, 426 ms per page on one core, twice as fast as LiteParse with Tesseract.
- **Tables and layout:**LayoutNet finds tables (rows, columns, spanning header cells) and classifies layout blocks (headings, lists, captions, page headers and footers) on scanned and born-digital pages.
- **Scripts:**a router sends each text line to one of four recognizers: Latin, CJK, right-to-left (Arabic, Hebrew), and a world-script model for about 17 more scripts.
- **CPU runtime, everywhere LiteParse runs:**the CLI, Python and Node.js on Linux, macOS and Windows, and the browser and edge runtimes through WebAssembly.
These are the model files LiteParse runs; they are not a standalone model with its own inference script. LiteParse renders the page, runs the detector, router and recognizers, merges the OCR text with the PDF text layer, runs LayoutNet, and writes Markdown or JSON with bounding boxes. Use them through LiteParse (seeQuickstart).

https://huggingface.co/llamaindex/OCRia-nano-1#examplesExamples
Text lines detected on scanned pages, colored by the recognizer the router picked for each line:

LayoutNet’s layout blocks on two multi-column pages, from the PDF text layer alone:

https://huggingface.co/llamaindex/OCRia-nano-1#quickstartQuickstart
Install LiteParse (pip install liteparse,npm i \-g @llamaindex/liteparseorcargo install liteparse), then pull the models once.lit models pulldownloads this repository’s files and ONNX Runtime and checks every file against its pinned sha256; after that, OCRia-nano-1 is LiteParse’s OCR backend by default.
lit models pull ocria-nano # once: models + ONNX Runtime (60-75 MB)
lit parse scan.pdf --format markdown # OCR, tables and layout with OCRia-nano-1
lit parse scan.pdf --ocr-backend tesseract # force Tesseract for one run
https://huggingface.co/llamaindex/OCRia-nano-1#pythonPython
from liteparse import LiteParse, models
models.pull("ocria-nano")
result = LiteParse(ocr_backend="ocria-nano", output_format="markdown").parse("scan.pdf")
print(result.text)
https://huggingface.co/llamaindex/OCRia-nano-1#nodejsNode.js
import { LiteParse, models } from "@llamaindex/liteparse";
models.pull("ocria-nano");
const result = await new LiteParse({ ocrBackend: "ocria-nano", outputFormat: "markdown" }).parse("scan.pdf");
console.log(result.text);
https://huggingface.co/llamaindex/OCRia-nano-1#browser-and-edge-webassemblyBrowser and edge (WebAssembly)
WASM and edge runtimes fully support OCRia-nano. You can also control which models download to minimize download sizes.
import init, { LiteParse, OcriaNano } from "@llamaindex/liteparse-wasm";
await init();
const ocria = await OcriaNano.fromUrl(); // or { scripts: ["latin"], layout: false } for 1.5 MB of models
const parser = LiteParse.withOcriaNano({ ocrEnabled: true, outputFormat: "markdown" }, ocria);
const result = await parser.parse(pdfBytes);
https://huggingface.co/llamaindex/OCRia-nano-1#inputInput
- PDFs, images and Office documents (through LiteParse’s conversion)
- Pages render at 250 DPI for OCR by default (
\-\-dpichanges it). - Language detection is automatic, the router in OCRia-nano picks a recognizer per line.
https://huggingface.co/llamaindex/OCRia-nano-1#outputOutput
LiteParse’s Markdown, text or JSON. With OCRia-nano-1:
ContentHow it is writtenTablesMarkdown tables, or HTML withcolspan/rowspanfor spanning cellsHeadings and listsMarkdown headings and list items, from LayoutNet’s layout classesPage headers and footersremoved from the Markdown by default, kept with\-\-keep\-headers\-footersLayout blockswith\-\-extract\-blocks, JSON blocks (heading, paragraph, table, figure, ...) with boxes and links to their text itemsWords and linesJSON text items with bounding boxes and OCR confidence
https://huggingface.co/llamaindex/OCRia-nano-1#how-it-worksHow it works
ModelFileRoleParametersLine detectordet\.onnxsegmentation map of text lines, depthwise-separable0.08MScript routerrouter\.onnxpicks a recognizer per line crop, and detects upside-down lines0.04MLatin recognizerrec\_latin\.onnxCTC, int8, supports 791 characters0.80MWorld-script recognizerrec\_world\.onnxCTC, about 17 scripts0.98MRTL recognizerrec\_rtl\.onnxCTC, Arabic and Hebrew0.71MCJK recognizerrec\_cjk\.onnxCTC, Chinese, Japanese and Korean1.27MLayoutNettablenet\.bin/tablenet\.onnx6-layer transformer over text units with a CNN image branch: table, row, column, cell and layout-block relations, 13 layout classes4.27MTotal****8.1M
The OCR stack is 3.9M parameters. LiteParse runs the ONNX models on ONNX Runtime natively and ontractin WebAssembly.
https://huggingface.co/llamaindex/OCRia-nano-1#benchmarksBenchmarks
Results from thetechnical report. Every local system runs on the same 16-vCPU machine and throughput is measured on 300 random ParseBench pages, with one worker per core.
System (CPU)ParseBench-2OmniParseBenchParseBench-1olmOCR-benchBHL CER ↓pages/sLiteParse (Tesseract)48.742.340.545.70.27514.2Indra 1.1.255.170.942.660.80.06229.6Marker 2.2.0 (fast)52.569.840.460.80.06724.7LiteParse + OCRia-nano-159.274.852.760.9****0.04827.8
ParseBench-2 v2.07 with the officialparse\-benchscorer (parse\-bench run liteparse\_ocria\_nanoreproduces our row); OmniParseBench v1.7, ParseBench-1 and olmOCR-bench with their own harnesses; BHL IMPACT character error rate.
https://huggingface.co/llamaindex/OCRia-nano-1#parsebench-2-by-dimensionParseBench-2 by dimension
SystemOverallTextFormattingTablesChartsLayoutFormsLiteParse (Tesseract)48.758.878.036.21.249.468.5Marker 2.2.0 (fast)52.562.575.543.63.161.069.2Indra 1.1.255.168.476.147.63.165.270.2LiteParse + OCRia-nano-159.268.582.2****59.53.172.469.8OCRia-1 in LlamaParse (teacher, GPU)87.087.092.789.977.489.2**85.6
https://huggingface.co/llamaindex/OCRia-nano-1#speedSpeed
On a 16-vCPU container (mean over five hosts, one worker per core):
ConfigurationParseBench-2pages/sms per page, 1 core (mean / P90)LiteParse (Tesseract)48.714.2751 / 2,420LiteParse + PP-OCRv6 tiny58.914.7773 / 1,568LiteParse + PP-OCRv6 small59.95.71,963 / 4,988Indra 1.1.255.129.6440 / 871Marker 2.2.0 (fast)52.524.7578 / 1,111LiteParse + OCRia-nano-1****59.227.8426 / 862OCRia-nano-1 OCR only (no LayoutNet)51.237.2325 / 751 In WebAssembly the models run on one thread: about 1–4 s per scanned page on a laptop.
https://huggingface.co/llamaindex/OCRia-nano-1#licenseLicense
The weights are released under theOCRia-nano-1 Model License, based on the AI Pubs Open RAIL-M license:
- **Free for research:**academic and non-profit research, teaching, evaluation and benchmarking by anyone (including publishing the results), and internal R&D that does not reach a product or production workflow.
- Free for personal use, and for commercial useby organizations under $2M in annual revenue and under $2M in total funding.
- Commercial license neededabove those thresholds, and for any use in a document parsing, OCR or extraction product or service that competes with LlamaParse or LlamaCloud, whatever your size.
**Licensing:**anyone interested in licensing OCRia-nano-1 may contact LlamaIndex athttps://www.llamaindex.ai/contact.
You own your outputs.LiteParse, which runs the models, is open source under the Apache License 2.0 and is not covered by this license; ONNX Runtime (MIT), which LiteParse downloads to run them, keeps its own license. See Attachment B of the license.
https://huggingface.co/llamaindex/OCRia-nano-1#citationCitation
@techreport{markewich2026ocrianano1,
title = {{OCRia-nano-1}: distilling a 4B document {VLM} into an 8.1M-parameter {CPU} pipeline},
author = {Markewich, Logan},
institution = {LlamaIndex},
year = {2026},
url = {https://www.llamaindex.ai/ocria/ocria-nano-1-report.pdf},
}
Similar Articles
LlamaIndex squeezes PDF reading into 8.1 million parameters with OCRia-nano-1
LlamaIndex released OCRia-nano-1, a set of seven distilled models totaling 8.1 million parameters that performs OCR and layout parsing of PDFs on ordinary CPUs without a GPU, integrated into LiteParse 2.21.0.
@taziku_co: Document parsing is possible using only the CPU, without a GPU, at about 426 milliseconds per page. LlamaIndex has rele…
LlamaIndex released OCRia-nano-1, an ultra-lightweight OCR model with only 8.1 million parameters that can parse documents on CPU at about 426 ms per page, with support for Japanese and complex table structure recognition.
@jerryjliu0: In celebration of Jensen Huang's return and his commitment to open-source AI: Today we’re releasing OCRia-nano-1, an ex…
LlamaIndex released OCRia-nano-1, an open-weight 8.1M-parameter OCR model that parses pages in 426ms on CPU, outperforming Marker, PP-OCRv6 and Tesseract while running 2-5x faster, designed as a first-pass parser for petabyte-scale document ingestion.
@jerryjliu0: OCRia-1.5 is one of the most accurate models for parsing your most complex tables within your PDFs - dense, long tables…
LlamaIndex introduces OCRia-1.5, a document parsing model (4B and 2B sizes) that improves complex table, chart, and form parsing and visual grounding, setting a new Pareto frontier in cost and accuracy on ParseBench-2 within LlamaParse.
@jerryjliu0: ocria-nano-1 is #1 on @huggingface trending for image-to-text models come give it a spin this Thanksgiving weekend! htt…
LlamaIndex's OCRia-nano-1, an 8.1M-parameter document parsing pipeline, hit #1 on Hugging Face trending for image-to-text models. Distilled from the 4B OCRia-1 VLM, it runs on CPU via LiteParse with state-of-the-art accuracy and speed on ParseBench-2.