Interfaze

logo

we're hiring

pricing

help

docs

blog

sign in

All models

OCRia Nano 1

OCRia Nano 1 by llamaindex, a image-to-text model with OCR, multimodal capabilities. Understand and compare OCR, multimodal features, benchmarks, and capabilities.

Comparison

FeatureOCRia Nano 1Interfaze
Input Modalities

image, document

image, text, audio, video, document

Native OCRYesYes
Long Document ProcessingNoYes
Language Support

47 partial

162+

Native Speech-to-TextNoYes
Native Object DetectionNoYes
Guardrail ControlsNoYes
Context Input Size

unknown

1M

Tool CallingNo

Tool calling supported + built in browser, code execution and web search

OCR Capabilities

FeatureOCRia Nano 1Interfaze
Text Bounding BoxesYesYes
Confidence ScoresYesYes
Dense Image ProcessingNoYes
Low Quality ImagesYesYes
Handwritten TextYesYes
Charts, Tables & EquationsYesYes

Scaling

FeatureOCRia Nano 1Interfaze
Scaling

Self-hosted/Provider-hosted with quantization

Unlimited

Try InterfazeRead the Docs

View model card on Hugging Face

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 scorer (parse-bench run liteparse_ocria_nano reproduces our row); OmniParseBench v1.7, ParseBench-1 and olmOCR-bench with their own harnesses; BHL IMPACT character error rate.

ParseBench-2 by dimension

SystemOverallTextFormattingTablesChartsLayoutForms
LiteParse (Tesseract)48.758.878.036.21.249.468.5
Marker 2.2.0 (fast)52.562.575.543.63.161.069.2
Indra 1.1.255.168.476.147.63.165.270.2
LiteParse + OCRia-nano-159.268.582.259.53.172.469.8
OCRia-1 in LlamaParse (teacher, GPU)87.087.092.789.977.489.285.6

Speed

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,420
LiteParse + PP-OCRv6 tiny58.914.7773 / 1,568
LiteParse + PP-OCRv6 small59.95.71,963 / 4,988
Indra 1.1.255.129.6440 / 871
Marker 2.2.0 (fast)52.524.7578 / 1,111
LiteParse + OCRia-nano-159.227.8426 / 862
OCRia-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.

License

The weights are released under the OCRia-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 use by organizations under $2M in annual revenue and under $2M in total funding.
  • Commercial license needed above 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 at https://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.

Citation

@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},
}

Want more deterministic results?

Interfaze

logo

Product

Playground

OCR

Models

Leaderboards

Pricing

OpenWebSearch

DefaultModel