LlamaIndex launches OCRia-nano-1, an 8.1 million parameter OCR model for CPU

LlamaIndex launches OCRia-nano-1, an 8.1 million parameter OCR model for CPU
2 min read

LlamaIndex has announced OCRia-nano-1, the smallest model in its OCRia family, dedicated to text recognition in documents. With 8.1 million parameters, it reads text, reconstructs tables, and restores layout on a processor (CPU), without a graphics card (GPU). Its weights are open and available on Hugging Face.

The model is intended for a low-cost first pass on large volumes of documents. It operates inside LiteParse, the company’s local and open-source parsing tool. Parameters refer to a model’s internal settings, and their number gives an idea of its size.

A chain of seven small models

OCRia-nano-1 is not a single network but a chain of seven specialized models. It is derived, via distillation, from OCRia-1, a 4-billion parameter vision-language model (VLM), which generated the training labels. According to the model card, each page goes through six stages: reading the native text layer of PDFs, line detection at 250 DPI by default, routing to the majority script, recognition by four modules (Latin, multi-script, right-to-left, and CJK), merging with native text, and then a layout model, LayoutNet, with 4.27 million parameters. Results are output in Markdown format, in JSON with coordinates, or in plain text.

Results announced by the publisher

All figures are provided by LlamaIndex, which measured them on 300 pages randomly selected from ParseBench, on a machine with 16 vCPUs. ParseBench-2 is the company’s own benchmark. On this test, OCRia-nano-1 achieves an overall score of 59.2, compared to 55.1 for Indra 1.1.2, 52.5 for Marker 2.2.0 (fast), and 48.7 for LiteParse with Tesseract. The gap is most pronounced on tables, with 59.5 versus 47.6 for Indra. On charts, the score is 3.1, as the model lacks a dedicated module. On forms, it remains slightly behind, with 69.8 versus 70.2 for Indra.

According to LlamaIndex, the model processes a page in 426 milliseconds on average on a single core. With 16 single-core processes, it reaches 27.8 pages per second, roughly twice the default configuration of LiteParse with Tesseract, at 14.2. Indra remains slightly faster, at 29.6 pages per second. LlamaIndex does not specify the processor model used.

License and installation

The weights are distributed under a custom license, based on Open RAIL-M. Research and personal use are free. Commercial use is free for organizations with annual revenue under $2M and which have raised less than $2M in total. Any product competing with LlamaParse or LlamaCloud requires a commercial license, regardless of company size. LiteParse itself is distributed under the Apache 2.0 license. OCRia-nano-1 cannot operate outside of LiteParse.

S’abonner
Notification pour
guest

0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
0
Nous aimerions avoir votre avis, veuillez laisser un commentaire.x