OCRia-nano-1
by llamaindex
LlamaIndex's 8.1M-parameter document parser that reads scanned PDFs, tables and layout on a CPU
llamaindex/OCRia-nano-1Deploy OCRia-nano-1
Single-tenantMixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.
Overview
OCRia-nano-1 is a document parsing pipeline from LlamaIndex, released on Hugging Face on November 3, 2026. It is 8.1 million parameters in total, distilled from OCRia-1, LlamaIndex's 4B document vision-language model, and it runs on a CPU inside LiteParse, the open-source local parser. It turns PDFs, images and Office files into Markdown or JSON with tables, headings, lists and bounding boxes.
The pipeline is a text-line detector, a router that sends each line to one of four recognizers (Latin, CJK, right-to-left, and a model for about 17 more scripts), and LayoutNet, a small transformer that finds table rows, columns and spanning header cells and classifies 13 kinds of layout block. LiteParse merges the OCR text with the PDF's own text layer, so digital pages keep their original characters. On ParseBench-2 it scores 59.2, ahead of the CPU parsers Indra (55.1) and Marker (52.5), at 27.8 pages per second on 16 vCPUs.
The weights are under the OCRia-nano-1 Model License, based on Open RAIL-M. They are free for research, personal use and commercial use by organizations under $2M in annual revenue and $2M in total funding. Larger companies need a commercial license, as does any document parsing or OCR product that competes with LlamaParse or LlamaCloud. LiteParse itself is Apache 2.0.
Architecture
Seven ONNX models run by LiteParse: a depthwise-separable line detector (0.08M), a script router that also catches upside-down lines (0.04M), four CTC recognizers for Latin (0.80M, int8, 791 characters), world scripts (0.98M), Arabic and Hebrew (0.71M) and CJK (1.27M), and LayoutNet (4.27M), a 6-layer transformer over text units with a CNN image branch that predicts table, row, column, cell and layout-block relations. The OCR stack is 3.9M parameters. Pages render at 250 DPI by default. ONNX Runtime runs it natively and tract runs it in WebAssembly.
Mixpeek SDK Integration
# OCRia-nano-1 runs inside LiteParse (pip install liteparse), not as a managed extractor.
# Parse each PDF on your own machine, then upsert the Markdown into a Mixpeek collection.
import requests
from liteparse import LiteParse, models
models.pull("ocria-nano") # once: the models and ONNX Runtime, 60 to 75 MB
parser = LiteParse(ocr_backend="ocria-nano", output_format="markdown")
result = parser.parse("contract-0193.pdf")
requests.post(
"https://api.mixpeek.com/v1/namespaces/ns_your_namespace/documents/upsert",
headers={"Authorization": "Bearer API_KEY"},
json={"collection_id": "col_contracts",
"documents": [{"document_id": "contract-0193",
"payload": {"source_file": "contract-0193.pdf",
"text": result.text,
"parser": "liteparse+ocria-nano-1"}}]},
)Capabilities
- Scanned and born-digital PDFs, images and Office files to Markdown, text or JSON
- Tables as Markdown, or HTML with colspan and rowspan for spanning cells
- Headings, lists, captions and page headers and footers from 13 layout classes
- Words and lines with bounding boxes and OCR confidence in the JSON output
- Runs on CPU from the CLI, Python, Node.js and the browser through WebAssembly
Use Cases on Mixpeek
Benchmarks
| Dataset | Metric | Score | Source |
|---|---|---|---|
| ParseBench-2 | Overall score | 59.2 | OCRia-nano-1 technical report; Indra 1.1.2 55.1, Marker 2.2.0 52.5, LiteParse with Tesseract 48.7 |
| ParseBench-2 | Tables | 59.5 | OCRia-nano-1 technical report; Indra 47.6, Marker 43.6 |
| OmniParseBench | Score | 74.8 | OCRia-nano-1 technical report; Indra 70.9, Marker 69.8 |
| olmOCR-bench | Score | 60.9 | OCRia-nano-1 technical report; Indra and Marker 60.8 |
| BHL IMPACT | Character error rate (lower is better) | 0.048 | OCRia-nano-1 technical report; Indra 0.062, Marker 0.067 |
Performance
LlamaIndex's numbers, measured on a 16-vCPU container with one worker per core over 300 random ParseBench pages. In WebAssembly it runs on one thread at about 1 to 4 seconds per scanned page on a laptop. We have not measured it ourselves.
Common Pipeline Companions
Frequently Asked Questions
What is OCRia-nano-1?
A document parsing pipeline from LlamaIndex, released November 3, 2026: 8.1M parameters of OCR and layout models distilled from OCRia-1, its 4B document VLM, at 1/500th the size. It runs on a CPU inside the open-source LiteParse parser and writes Markdown or JSON with tables, headings and bounding boxes.
How accurate is OCRia-nano-1?
LlamaIndex reports 59.2 on ParseBench-2, against 55.1 for Indra 1.1.2, 52.5 for Marker 2.2.0 and 48.7 for LiteParse with Tesseract, and 59.5 on its tables dimension against 47.6 for Indra. Its GPU teacher, OCRia-1 in LlamaParse, scores 87.0, so hard pages still benefit from a larger model.
Can I use OCRia-nano-1 commercially?
Free commercial use covers organizations under $2M in annual revenue and under $2M in total funding. Above either threshold you need a commercial license from LlamaIndex, and so does any document parsing, OCR or extraction product that competes with LlamaParse or LlamaCloud. LiteParse, the code that runs it, is Apache 2.0, and you own your outputs.
How fast is OCRia-nano-1 on a CPU?
27.8 pages per second on 16 vCPUs and 426 ms per page on one core, about twice as fast as LiteParse with Tesseract, by LlamaIndex's measurements. Without LayoutNet the OCR alone reaches 37.2 pages per second. In the browser it takes about 1 to 4 seconds per scanned page.
How do I use OCRia-nano-1 with Mixpeek?
Parse each file with LiteParse on your own machines, then upsert the Markdown into a Mixpeek collection through POST /v1/namespaces/{namespace_id}/documents/upsert, keeping the source file name in the payload. A retriever then searches the text by meaning next to the images, video and audio in the same namespace. See [best PDF extraction tools](/curated-lists/best-pdf-extraction-tools) for how it compares with hosted parsers.
Specification
Research Paper
OCRia-nano-1: distilling a 4B document VLM into an 8.1M-parameter CPU pipeline
arxiv.orgBuild a pipeline with OCRia-nano-1
Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.
Run it on your own data, free