Model reference · open weights
OCRia-nano-1 is an open-weight language model from llamaindex. OCRia-nano-1 (BF16) weighs 17 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the llamaindex/OCRia-nano-1 model card, 2026-11-28
What it is
| Released by | llamaindex |
|---|---|
| Released | 2026-11-03 |
| VRAM | 17 MB for the weights |
What it runs on
How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.
| Card | Weights alone |
|---|---|
| RTX 3060 12 GB | fits |
| RTX 4060 Ti 16 GB | fits |
| RTX 3090 24 GB | fits |
| RTX 4090 24 GB | fits |
| RTX 5090 32 GB | fits |
| L40S 48 GB | fits |
| A100 80 GB | fits |
| H100 80 GB | fits |
| RTX PRO 6000 Blackwell 96 GB | fits |
| DGX Spark (GB10) 128 GB unified | fits |
| H200 141 GB | fits |
| B200 180 GB | fits |
From the model card
OCRia-nano-1 is an 8.1M-parameter model pipeline for document parsing on CPU from LlamaIndex. It pairs a detector–recognizer OCR stack with LayoutNet, a joint table and layout model, and it runs inside LiteParse, the open-source local document parser. Its models are distilled from OCRia-1, our 4B document VLM, with 1/500th of its parameters.
[!NOTE] 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 (see Quickstart).
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:
Install LiteParse (pip install liteparse, npm i -g @llamaindex/liteparse or cargo install liteparse), then pull
the models once. lit models pull downloads 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
from liteparse import LiteParse, models
models.pull("ocria-nano")
result = LiteParse(ocr_backend="ocria-nano", output_format="markdown").parse("scan.pdf")
print(result.text)
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);
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);
--dpi changes it).LiteParse's Markdown, text or JSON. With OCRia-nano-1:
| Content | How it is written |
|---|---|
| Tables | Markdown tables, or HTML with colspan / rowspan for spanning cells |
| Headings and lists | Markdown headings and list items, from LayoutNet's layout classes |
| Page headers and footers | removed from the Markdown by default, kept with --keep-headers-footers |
| Layout blocks | with --extract-blocks, JSON blocks (heading, paragraph, table, figure, ...) with boxes and links to their text items |
| Words and lines | JSON text items with bounding boxes and OCR confidence |
| Model | File | Role | Parameters |
|---|---|---|---|
| Line detector | det.onnx | segmentation map of text lines, depthwise-separable | 0.08M |
| Script router | router.onnx | picks a recognizer per line crop, and detects upside-down lines | 0.04M |
| Latin recognizer | rec_latin.onnx | CTC, int8, supports 791 characters | 0.80M |
| World-script recognizer | rec_world.onnx | CTC, about 17 scripts | 0.98M |
| RTL recognizer | rec_rtl.onnx | CTC, Arabic and Hebrew | 0.71M |
| CJK recognizer | rec_cjk.onnx | CTC, Chinese, Japanese and Korean | 1.27M |
| LayoutNet | tablenet.bin / tablenet.onnx | 6-layer transformer over text units with a CNN image branch: table, row, column, cell and layout-block relations, 13 layout classes | 4.27M |
| Total | 8.1M |
The OCR stack is 3.9M parameters. LiteParse runs the ONNX models on ONNX Runtime natively and on tract in WebAssembly.
Results from the technical 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-2 | OmniParseBench | ParseBench-1 | olmOCR-bench | BHL CER ↓ | pages/s |
|---|---|---|---|---|---|---|
| LiteParse (Tesseract) | 48.7 | 42.3 | 40.5 | 45.7 | 0.275 | 14.2 |
| Indra 1.1.2 | 55.1 | 70.9 | 42.6 | 60.8 | 0.062 | 29.6 |
| Marker 2.2.0 (fast) | 52.5 | 69.8 | 40.4 | 60.8 | 0.067 | 24.7 |
| LiteParse + OCRia-nano-1 | 59.2 | 74.8 | 52.7 | 60.9 | 0.048 | 27.8 |
ParseBench-2 v2.07 with the official parse-bench sc
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
How it works