LlamaIndex Releases OCRia-nano-1: 8.1M-Parameter OCR Model for CPUs

In one sentence

LlamaIndex has released OCRia-nano-1, an 8.1M-parameter open-weights OCR model that parses documents, tables, and layouts directly on CPUs and browsers without requiring a GPU.

Key points

  • OCRia-nano-1 consists of 7 specialized models totaling 8.1M parameters, distilled from the 4B-parameter OCRia-1 VLM.
  • It requires no GPU and runs on CPUs across Linux, macOS, and Windows, as well as in browsers via WebAssembly.
  • In self-reported ParseBench-2 benchmarks, it scores 59.2 overall and leads competing CPU parsers significantly in table reconstruction.
  • It averages 426 ms per page on a single core and reaches 27.8 pages per second on 16 vCPUs, running inside the open-source LiteParse tool.
  • The weights use a modified Open RAIL-M license, offering free commercial use for organizations under $2M in annual revenue and funding.

In depth

An AI-written overview of the original article, not the article itself.

LlamaIndex has released OCRia-nano-1, an 8.1M-parameter OCR model designed to run on CPUs without a GPU, with open weights on Hugging Face. According to the article, it runs inside the open-source local parser LiteParse to provide a low-cost first pass over large document backlogs, reading text, rebuilding tables, and recovering page layouts.

Architecture and Pipeline

According to the article, OCRia-nano-1 is distilled from LlamaIndex's 4B OCRia-1 VLM, retaining about 1/500th of the teacher's parameters. Rather than a single network, it is a pipeline of 7 specialist models.

Each page passes through 6 stages: checking native PDF text, detecting text lines, routing scripts, running 4 recognizers (Latin, world-script, right-to-left, and CJK), merging text, and predicting table and layout relations via LayoutNet (4.27M). It outputs Markdown, JSON with bounding boxes, or plain text.

Performance and Benchmarks

On LlamaIndex's self-reported ParseBench-2 benchmark (300 random pages on a 16-vCPU machine), OCRia-nano-1 scores 59.2 overall, ahead of Indra 1.1.2 (55.1), Marker 2.2.0 fast (52.5), and Tesseract (48.7). Its largest lead is in tables, scoring 59.5 compared to Indra's 47.6.

For speed, the model averages 426 ms per page on 1 core and processes 27.8 pages per second on 16 vCPUs. This is roughly twice as fast as LiteParse's default Tesseract setup (14.2 pages/s), though slightly slower than Indra (29.6 pages/s).

Deployment and Licensing

OCRia-nano-1 runs on Linux, macOS, and Windows CPUs, as well as in browsers via WebAssembly. It requires a 60 to 75 MB download (or about 1.5 MB for browser subsets), installs via pip, npm, or cargo, and can only run inside LiteParse.

While LiteParse is licensed under Apache 2.0, OCRia-nano-1's weights use a modified Open RAIL-M license. Research, personal use, and organizations under $2M in annual revenue and total funding are free, while products competing with LlamaParse or LlamaCloud require a commercial license.

Read originalOpens marktechpost.com

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source