# OCRia-nano-1

> Source: https://aiwiki.ai/wiki/ocria_nano_1
> Updated: 2026-11-25
> Categories: AI Models, Computer Vision, Developer Tools
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "OCRia-nano-1." aiwiki.ai, 25 Nov 2026. https://aiwiki.ai/wiki/ocria_nano_1
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

OCRia-nano-1 is a document-parsing pipeline from [LlamaIndex](https://aiwiki.ai/wiki/llamaindex), released on November 23, 2026. Its seven learned components total approximately 8.1 million parameters and run on a CPU through LiteParse. It combines [optical character recognition](https://aiwiki.ai/wiki/ocr_models) with table and page-layout recovery, producing structured document content for applications such as [retrieval-augmented generation](https://aiwiki.ai/wiki/retrieval_augmented_generation).[1] The downloadable weights have a restricted model license; LiteParse's separate software license is Apache 2.0.[6][7]

## Architecture and document processing

OCRia-nano-1 is a collection of cooperating models rather than a single conversational language model. The released package identifies a detector, a script router, four text recognizers, and LayoutNet. Its configuration names the individual ONNX files and supplies LayoutNet in ONNX and binary forms.[4]

| Component | Published approximate parameters | Function |
| --- | --- | --- |
| Line detector | 0.08M | Locate text lines |
| Script router | 0.04M | Select a recognizer and identify upside-down lines |
| Latin recognizer | 0.80M | Recognize Latin-script text |
| CJK recognizer | 1.27M | Recognize Chinese, Japanese and Korean text |
| Right-to-left recognizer | 0.71M | Recognize Arabic and Hebrew text |
| World-script recognizer | 0.98M | Recognize approximately 17 additional scripts |
| LayoutNet | 4.27M | Recover tables and layout blocks |

These rounded counts follow the model card. LayoutNet uses six transformer layers with an image-processing branch; its outputs cover table relationships and 13 layout classes.[2]

LiteParse first extracts usable native PDF text and positions. OCR supplies text missing from that layer, after which the pipeline combines recognized and native text with learned structure recovery.[1] The recognizers use connectionist temporal classification, or CTC.[2] CTC learns label sequences without requiring a separate training alignment for each character position; it was introduced for unsegmented sequence labelling, rather than free-form language generation.[12]

The models were distilled using OCRia-1 to generate training transcriptions, table annotations and layout labels.[1]

## Local use and deployment

LiteParse provides a Rust engine with Python, Node.js/TypeScript and browser bindings. Its native packages support Linux, macOS and Windows. It can extract document text and bounding boxes without calling a hosted language model.[5]

The OCR configuration guide documents installation and explicit backend selection:[8]

```bash
pip install liteparse
lit models pull ocria-nano
lit parse document.pdf --format markdown
```

Pulling the package downloads the models and ONNX Runtime and checks their hashes. Once installed, `ocria-nano` becomes the default OCR backend. A single run can select Tesseract with `--ocr-backend tesseract`. The documentation estimates a 60-75 MB installation including the runtime, rather than describing that number as model parameters or RAM usage.[8]

With Nano selected, pages render at 250 DPI unless overridden. Script selection is automatic, so `--ocr-language` does not choose its recognizer. LayoutNet still runs when OCR is disabled with `--no-ocr`, allowing learned structure recovery from native text. An offline installation can use `lit models pull ocria-nano --from <dir>` with previously downloaded package files.[8]

### File formats and output

The native LiteParse pipeline handles PDF and image input. Office documents, including DOCX, XLSX and PPTX, are converted to PDF through LibreOffice before parsing. Images are converted using Rust libraries. Office-file support therefore depends on the surrounding converter, rather than being a separate native input modality of each Nano model.[9]

The output can be Markdown, plain text or JSON. Markdown reconstructs headings, lists and tables; JSON retains text locations. Running page headers and footers are omitted from Markdown by default, with a setting to retain them.[2][10] Image handling is configurable: placeholders are the default, while other modes remove image references or extract image files. Markdown output aims to recover document structure, rather than reproduce a page's exact appearance.[10]

### Browser use

The WebAssembly package can run Nano locally in a browser without a server or native ONNX Runtime. Applications load the models once and can reuse them across parsers. Downloads can be restricted to selected script recognizers, and LayoutNet can be omitted when table and layout reconstruction is unnecessary.[11]

Browser support has different boundaries from native LiteParse: input is a byte array rather than a filesystem path, Office conversion through LibreOffice is unavailable, and the WASM build does not generate screenshots. Built-in Tesseract and the native HTTP OCR backend are also unavailable there; Nano or a JavaScript OCR callback supplies recognition.[11]

## Reported evaluation results

LlamaIndex's November 2026 technical report evaluates the complete parsing pipeline. The following CPU results were produced by its authors, using each benchmark's designated scoring setup:[3]

| CPU pipeline | ParseBench-2 | OmniParseBench | olmOCR-bench |
| --- | --- | --- | --- |
| LiteParse with Tesseract | 48.7 | 42.3 | 45.7 |
| Indra 1.1.2 | 55.1 | 70.9 | 60.8 |
| Marker 2.2.0, fast mode | 52.5 | 69.8 | 60.8 |
| LiteParse with OCRia-nano-1 | 59.2 | 74.8 | 60.9 |

The report uses ParseBench-2 v2.07 with the official scorer.[3]

The benchmark's academic description covers text, formatting, tables, charts, visual grounding and forms across 4,317 pages. The scoring combines content recovery with an error-severity cap, so retaining most words cannot conceal a serious changed fact or broken table relationship. Its overall score is a benchmark aggregate, not a claim that the parser reads that percentage of all documents correctly.[13]

### Speed measurements

Speed tests used 300 ParseBench-1 pages, 16 single-core workers in a 16-vCPU container, and five cloud hosts. Mean throughput was 27.8 pages per second; warm single-core latency averaged 426 ms, with a 90th percentile of 862 ms.[3]

These figures measure the complete pipeline on a defined workload. Indra's throughput was higher, at 29.6 pages per second.[3]

## Limitations and model choice

Nano has no chart-understanding model and retains charts as images instead of reconstructing their data. LlamaIndex recommends its larger OCRia models for difficult tables, handwriting, heavily degraded scans and scanned mathematical notation.[1] Local execution and a small download do not establish that a document has been transcribed accurately.

The report identifies handwriting and scripts with limited training data as weaknesses, and reports no equation recovery in its scanned-mathematics test category.[3] Recognition errors can affect later search, analysis or model use even when an output file has usable structure.

## Model and software licensing

The OCRia-nano-1 Model License is based on a modified AI Pubs Open RAIL-M license. It covers the weights and specified accompanying configuration, metadata and code. LiteParse is explicitly excluded from those licensed materials and retains its Apache 2.0 license.[6][7]

The model license provides for personal use and defined research purposes. It restricts other use when the user, employer or affiliated entity had more than US$2 million in gross revenue in the previous year, or raised more than US$2 million in total equity or debt funding. A competing document-parsing, OCR or extraction product or service is restricted regardless of those thresholds, except for research purposes. LlamaIndex offers separate licensing for restricted uses.[6]

Redistribution carries attribution and notice requirements, and model derivatives must use the same license. The licensor claims no rights in generated outputs, subject to the agreement's use restrictions; using outputs to create model derivatives is restricted to research purposes. The software and runtime dependencies retain their own licenses.[6] Describing the weights as open for download therefore does not make them unrestricted open-source software.

## References

1. Markewich, Logan, and Gauthami Polasani. [Introducing OCRia-nano-1](https://www.llamaindex.ai/blog/introducing-ocria-nano-1). LlamaIndex, November 23, 2026.
2. LlamaIndex. [OCRia-nano-1 model card](https://huggingface.co/llamaindex/OCRia-nano-1). Revision 53d45fe6803a568deedb081550c2fdb97cc99f97; accessed November 25, 2026.
3. Markewich, Logan, and Simon Suo. [OCRia-nano-1: Fast, Accurate CPU Parsing with 8.1M Parameters](https://www.llamaindex.ai/ocria/ocria-nano-1-report.pdf). Technical report, November 2026, especially Tables 3-5 and 9 and Appendix C.
4. LlamaIndex. [OCRia-nano-1 package configuration](https://huggingface.co/llamaindex/OCRia-nano-1/blob/53d45fe6803a568deedb081550c2fdb97cc99f97/config.json). Accessed November 25, 2026.
5. LlamaIndex. [LiteParse repository and README](https://github.com/run-llama/liteparse). Accessed November 25, 2026.
6. LlamaIndex. [OCRia-nano-1 Model License](https://huggingface.co/llamaindex/OCRia-nano-1/blob/53d45fe6803a568deedb081550c2fdb97cc99f97/LICENSE). Accessed November 25, 2026.
7. LlamaIndex. [LiteParse Apache License 2.0](https://github.com/run-llama/liteparse/blob/main/LICENSE). Accessed November 25, 2026.
8. LlamaIndex. [OCR Configuration](https://developers.llamaindex.ai/liteparse/guides/ocr/). Developer documentation, accessed November 25, 2026.
9. LlamaIndex. [Multi-Format Support](https://developers.llamaindex.ai/liteparse/guides/multi-format/). Developer documentation, accessed November 25, 2026.
10. LlamaIndex. [Markdown Output](https://developers.llamaindex.ai/liteparse/guides/markdown/). Developer documentation, accessed November 25, 2026.
11. LlamaIndex. [Browser Usage (WASM)](https://developers.llamaindex.ai/liteparse/guides/browser-usage/). Developer documentation, accessed November 25, 2026.
12. Graves, Alex, Santiago Fernandez, Faustino Gomez, and Jurgen Schmidhuber. [Connectionist Temporal Classification: Labelling Unsegmented Sequence Data with Recurrent Neural Networks](https://www.cs.toronto.edu/~graves/icml_2006.pdf). Proceedings of ICML, 2006, pp. 369-376.
13. Doulcet, Pierre-Loic, et al. [ParseBench-2: Severity-Aware Evaluation of Document Parsing](https://arxiv.org/abs/2611.17400). arXiv:2611.17400, November 12, 2026.

