Model reference · open weights

OCRia-nano-1

LLMs llamaindex Image→text 1 build Its own licence terms 626 dl/mo

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.

  • OCRia-nano-1 is an 8.1M-parameter model pipeline for document parsing on CPU, developed by LlamaIndex.
  • It pairs a detector-recognizer OCR stack with LayoutNet to handle tables and layout blocks, and it runs inside the LiteParse parser.
  • The model supports multilingual scripts including Latin, CJK, and right-to-left languages, and it is released under a custom license that allows free use for research and small commercial entities.

Summary of the llamaindex/OCRia-nano-1 model card, 2026-11-28

What it is

Released byllamaindex
Released2026-11-03
VRAM17 MB for the weights

What it runs on

Memory and cards for OCRia-nano-1 (BF16)

17 MBweights, file size
762 MBruntime overhead, at least

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.

CardWeights alone
RTX 3060 12 GBfits
RTX 4060 Ti 16 GBfits
RTX 3090 24 GBfits
RTX 4090 24 GBfits
RTX 5090 32 GBfits
L40S 48 GBfits
A100 80 GBfits
H100 80 GBfits
RTX PRO 6000 Blackwell 96 GBfits
DGX Spark (GB10) 128 GB unifiedfits
H200 141 GBfits
B200 180 GBfits

From the model card

What llamaindex says about OCRia-nano-1

Read 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.

  • Accuracy: 59.2 on ParseBench-2, ahead of the CPU parsers Indra (55.1) and Marker (52.5). It lifts LiteParse from 48.7 with Tesseract. See Benchmarks.
  • 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.

[!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).

Examples

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:

Quickstart

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

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)

Node.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);

Browser 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);

Input

  • PDFs, images and Office documents (through LiteParse's conversion)
  • Pages render at 250 DPI for OCR by default (--dpi changes it).
  • Language detection is automatic, the router in OCRia-nano picks a recognizer per line.

Output

LiteParse's Markdown, text or JSON. With OCRia-nano-1:

ContentHow it is written
TablesMarkdown tables, or HTML with colspan / rowspan for spanning cells
Headings and listsMarkdown headings and list items, from LayoutNet's layout classes
Page headers and footersremoved from the Markdown by default, kept with --keep-headers-footers
Layout blockswith --extract-blocks, JSON blocks (heading, paragraph, table, figure, ...) with boxes and links to their text items
Words and linesJSON text items with bounding boxes and OCR confidence

How it works

ModelFileRoleParameters
Line detectordet.onnxsegmentation map of text lines, depthwise-separable0.08M
Script routerrouter.onnxpicks a recognizer per line crop, and detects upside-down lines0.04M
Latin recognizerrec_latin.onnxCTC, int8, supports 791 characters0.80M
World-script recognizerrec_world.onnxCTC, about 17 scripts0.98M
RTL recognizerrec_rtl.onnxCTC, Arabic and Hebrew0.71M
CJK recognizerrec_cjk.onnxCTC, Chinese, Japanese and Korean1.27M
LayoutNettablenet.bin / tablenet.onnx6-layer transformer over text units with a CNN image branch: table, row, column, cell and layout-block relations, 13 layout classes4.27M
Total8.1M

The OCR stack is 3.9M parameters. LiteParse runs the ONNX models on ONNX Runtime natively and on tract in WebAssembly.

Benchmarks

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-2OmniParseBenchParseBench-1olmOCR-benchBHL CER ↓pages/s
LiteParse (Tesseract)48.742.340.545.70.27514.2
Indra 1.1.255.170.942.660.80.06229.6
Marker 2.2.0 (fast)52.569.840.460.80.06724.7
LiteParse + OCRia-nano-159.274.852.760.90.04827.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

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms