talira

OCRia-nano-1

An 8.1M-parameter OCR, table and layout model pipeline that runs on CPU

source availableOCRia-nano-1 Model Licenseself-hostablefree

OCRia-nano-1 is a set of small open-weight models from LlamaIndex for parsing documents on a CPU, without a GPU. It pairs a text-line detector and four script recognizers (Latin, CJK, right-to-left and about 17 other scripts) with LayoutNet, a model that finds tables, rows, columns and spanning cells and classifies headings, lists, captions and page headers. The models total 8.1M parameters, distilled from LlamaIndex's 4B document model OCRia-1, and ship as ONNX files for LiteParse, LlamaIndex's open source local parser, which turns PDFs, images and Office files into Markdown or JSON with bounding boxes, on Linux, macOS, Windows and in WebAssembly. The model card reports 59.2 on ParseBench-2 at about 28 pages a second on 16 vCPUs.

Problems it solves

  • a tiny open-weight OCR model that parses pages with tables on a CPU, without a GPU
  • turn scanned PDFs into Markdown with tables locally without sending them to an API
  • OCR documents in the browser with WebAssembly

Features

  • OCR on CPU, 426 ms per page on one core
  • table detection with rows, columns and spanning header cells
  • layout classes: headings, lists, captions, page headers and footers
  • per-line routing to Latin, CJK, right-to-left and world-script recognizers
  • ONNX models that also run in WebAssembly
  • Markdown or JSON output with bounding boxes through LiteParse

Limitations

  • Needs a commercial licence from LlamaIndex for organizations with over $2M in annual revenue or funding, and for any document parsing or OCR product that competes with LlamaParse12
  • Runs only inside LiteParse: the files aren't a standalone model with their own inference script1

Alternatives

The same job

These do what OCRia-nano-1 does.

  1. Mistral OCR Mistral AI's document OCR model and API: PDFs and images to structured Markdown, priced per page
  2. PP-OCRv6 PaddleOCR's sixth-generation text detection and recognition models, from 1.5M to 34.5M parameters
  3. PP-OCRv5 PaddleOCR's fifth-generation text detection and recognition models, server and mobile sizes

Compare OCRia-nano-1 with the top 3