I ran it against Tesseract on five scanned pages on my own machine: 499 ms a page on one CPU core, 2.4x faster, and the only one of the two that kept every invoice line item and table cell in place.

Every team I've worked with has the same pile: scanned invoices, receipts from expense claims, PDFs exported from someone's spreadsheet, and the odd photocopy of a photocopy. Most of it is boring, and none of it needs a vision model running on a GPU to read. What it needs is something fast, cheap and right about the numbers.

That's exactly the pitch of OCRia-nano-1, which LlamaIndex released on 23 November. It's an 8.1M-parameter document parsing pipeline that runs on a plain CPU inside LiteParse, their open-source local parser. LlamaIndex says it's twice as fast as LiteParse with Tesseract and a lot better at tables and layout.

I wanted to see that on my own pages, so I built a small test set of scanned-looking documents, ran both backends on every one, timed them on a single pinned core, and checked every invoice field and table cell by script. Here's what I found.

What OCRia-nano-1 actually is

It isn't one model. It's seven small ONNX models that LiteParse runs one after another:

  • A line detector (0.08M parameters) that finds text lines on the page.
  • A script router (0.04M) that sends each line to the right recognizer and spots upside-down lines.
  • Four recognizers: Latin, CJK, right-to-left (Arabic and Hebrew), and a "world" model for about 17 more scripts. The OCR stack is 3.9M parameters in total.
  • LayoutNet (4.27M), a small transformer with an image branch that rebuilds tables (rows, columns, spanning header cells) and labels layout blocks like headings, lists, captions, page headers and footers.

According to the model card, the models were distilled from OCRia-1, LlamaIndex's 4B-parameter document VLM, at about 1/500th of its size. LiteParse renders each page, uses the PDF's own text layer where it exists, runs OCR only where it doesn't, and writes Markdown, text or JSON with bounding boxes.

LlamaIndex's technical report puts it at 59.2 on ParseBench-2, against 48.7 for LiteParse with Tesseract, 55.1 for Indra and 52.5 for Marker. It also claims 426 ms per page on one core and 27.8 pages per second on a 16-vCPU machine. Those are LlamaIndex's numbers from their own benchmark. I didn't rerun ParseBench; what follows is my own test on my own documents.

Setting it up

The setup in the launch post is three commands, and they're exactly what worked for me. I used Python 3.13 on an 8-core Intel Xeon Linux machine with 16 GB of RAM. LiteParse installed as version 2.21.3 in under a second, and pulling the models took about 28 seconds.

python3 -m venv .venv && source .venv/bin/activate pip install liteparse lit --version # lit 2.21.3 lit models pull ocria-nano # Installing ocria-nano@1.0.0 into ~/.cache/liteparse/models/ocria-nano # det.onnx, router.onnx, rec_latin/cjk/rtl/world.onnx, tablenet.onnx # ONNX Runtime 1.31.1 # Done. OCR now uses ocria-nano by default (`--ocr-backend tesseract` to override) lit models list # ocria-nano@1.0.0 59.9 MB 

No API key, no account, no GPU. Once the models are pulled, OCRia-nano becomes the default OCR backend, and Tesseract is one flag away:

lit parse scan.pdf --format markdown -o scan.md # OCRia-nano-1 lit parse scan.pdf --format markdown --ocr-backend tesseract -o scan.md # Tesseract 

Two things are worth knowing before you compare them. First, LiteParse ships its own Tesseract build inside the Python wheel. You don't need a system Tesseract for the comparison; it fetches the English language data on first use. Second, the backends render pages at different resolutions by default: 250 DPI for OCRia-nano and 150 DPI for Tesseract. I kept the defaults, because that's what you get without changing anything, and I also timed Tesseract at 250 DPI to be fair to it.

The Python API from the model card works as written:

from liteparse import LiteParse, models models.pull("ocria-nano") result = LiteParse(ocr_backend="ocria-nano", output_format="markdown").parse("table_scan.pdf") print(result.text) 

The test set

I wanted pages where I knew the right answer for every field, so I built them myself in Python with ReportLab and made them look scanned. There's no real personal data anywhere in them: every company, address and number is made up.

  • A tax invoice with an invoice number, dates, a PO number, a GSTIN, five line items, subtotal, GST and total.
  • A café receipt in a narrow monospace layout, with five items, CGST, SGST and a total.
  • A table page: quarterly throughput for six sites, with a header row and a totals column (42 cells).
  • A two-column memo, where reading straight across the page mixes the two columns.
  • A real public-domain scan: page 28 of the 1851 US edition of Moby-Dick from Wikimedia Commons, checked against the proofread Wikisource text of the same page.

To make the generated pages look like scans, I rendered each one at 200 DPI, rotated it slightly, blurred it, added a grey paper tone and sensor noise, then saved it as a low-quality JPEG inside a PDF. That means there is no text layer, so every word has to come from OCR.

def degrade(pdf_in, out_pdf, dpi=200, angle=0.6, noise=10, quality=55, blur=0.6): page = pymupdf.open(pdf_in)[0].get_pixmap(dpi=dpi) im = Image.frombytes("RGB", (page.width, page.height), page.samples).convert("L") im = im.rotate(angle, resample=Image.BICUBIC, expand=True, fillcolor=255) im = im.filter(ImageFilter.GaussianBlur(blur)) a = np.asarray(im).astype(np.float32) * 0.92 + 12 # grey paper a += np.random.normal(0, noise, a.shape) # sensor noise buf = io.BytesIO() Image.fromarray(np.clip(a, 0, 255).astype(np.uint8)).save(buf, "JPEG", quality=quality) Image.open(buf).convert("RGB").save(out_pdf, "PDF", resolution=dpi) 

Speed: one core, then eight

I pinned every run to a single core with taskset, did one warm-up run, and took the median of five timed runs. Each lit parse call includes starting the process and loading the models, so I also parsed all five pages four times over as one 20-page PDF. That run shows the steady per-page cost.

# one page, one core (warm-up + 5 timed runs, median) taskset -c 0 lit parse invoice_scan.pdf --format markdown --ocr-backend ocria-nano taskset -c 0 lit parse invoice_scan.pdf --format markdown --ocr-backend tesseract # 20 scanned pages, one core vs eight workers on eight cores taskset -c 0 lit parse batch20.pdf --format markdown --ocr-backend ocria-nano --num-workers 1 taskset -c 0-7 lit parse batch20.pdf --format markdown --ocr-backend ocria-nano --num-workers 8 

On the 20-page run, the median of three runs was:

  • OCRia-nano-1, 1 core: 9.98 s, or 499 ms per page.
  • Tesseract, 1 core: 23.51 s, or 1,176 ms per page. That makes OCRia-nano 2.4x faster on one core.
  • OCRia-nano-1, 8 workers: 2.66 s, about 7.5 pages per second.
  • Tesseract, 8 workers: 4.58 s, about 4.4 pages per second, so 1.7x in OCRia-nano's favour.

LlamaIndex quotes 426 ms per page on one core on their machine. I got 499 ms on mine, which is the same ballpark, and their "twice as fast as Tesseract" held up on my pages.

Single-page calls on one core, including start-up, came out like this (OCRia-nano vs Tesseract):

  • Invoice: 725 ms vs 878 ms.
  • Receipt: 503 ms vs 557 ms.
  • Table page: 910 ms vs 660 ms. This was the one page where Tesseract was faster, because there's very little text on it and OCRia-nano also runs its table model.
  • Two-column memo: 837 ms vs 1,902 ms.
  • Moby-Dick page: 913 ms vs 2,209 ms.

Giving Tesseract the same 250 DPI as OCRia-nano only made it slower, at 1,110 ms on the invoice and 2,501 ms on the Moby-Dick page.

Invoices and receipts: the fields that matter

I checked eight key fields on the invoice: invoice number, invoice date, due date, PO number, GSTIN, subtotal, GST and total. I also checked whether each of the five line items came out as one intact row, with the description, quantity, unit price and amount together.

OCRia-nano-1 got all 8 fields and all 5 line items as clean table rows, with the totals attached to their labels:

| Description | Qty | Unit Price | Amount | | |---|---|---|---|---| | Laser-cut steel bracket (M8) | 120 | 42.50 | 5,100.00 | | | Powder coating, matte black | 120 | 11.75 | 1,410.00 | | | Aluminium enclosure 200x120 | 15 | 1,385.00 | 20,775.00 | | | Stainless hinge set | 30 | 96.40 | 2,892.00 | | | Assembly labour (hours) | 18 | 650.00 | 11,700.00 | | | | | Subtotal | | 41,877.00 | | | | GST 18% | | 7,537.86 | | | | Total Due (INR) | | 49,414.86 | 

Tesseract got 7 of 8 fields and 0 of 5 line items as intact rows. It read the GSTIN 32ABCDE1234F1Z5 as 32ABCDE1234F125, and the line items came apart:

| Description | Qty | Unit Price | Amount | |---|---|---|---| | (M8) Laser-cut steel bracket | 120 120 | 42.50 11.75 | 5,100.00 1,410.00 | Powder coating, matte black 1,385.00 20,775.00 Aluminium enclosure 200x120 96.40 2,892.00 Stainless hinge set 

If you feed that to an extraction step, you're asking it to guess which price belongs to which item.

OCRia-nano's invoice output had one catch: it dropped the "Payment terms … IFSC" line at the bottom of the page, because LiteParse strips page headers and footers from Markdown by default. On invoices, the bottom line is often where the bank details are, so I'd turn that off:

lit parse invoice_scan.pdf --format markdown --keep-headers-footers # ... # Payment terms: Net 30. Bank: Example Bank, A/C 001122334455, IFSC EXMP0001234 

On the receipt, both backends got all six fields: bill number, date, time, subtotal, CGST and total. The difference was in the shape of the output. OCRia-nano produced a clean two-column table with each item next to its price and TOTAL | 729.76 on one row. Tesseract wrote the labels on one line (Subtotal CGST 2.5% SGST 2.5% TOTAL) and the amounts on the next, so you have to line them up yourself.

Tables and layout

The table page has 42 cells, counting the header. OCRia-nano-1 rebuilt all 42 correctly in a proper Markdown table. Tesseract kept only 23 of 42 in table rows. The header, the first row and the last row fell out of the table as plain text, and two numbers were misread: 47.1 became 471 and 24.7 became 247.

Site Qt Q2 Q3 Qa Total Pune 41.2 44.8 471 52.3 185.4 | Chennai | 38.6 | 36.9 | 40.2 | 43.5 | 159.2 | |---|---|---|---|---|---| | Jaipur | 22.4 | 25.1 | 247 | 28.0 | 100.2 | 

On the two-column memo, both backends recognised every word. The difference was reading order. I compared the words in order against the original text (307 words). OCRia-nano kept 100% of them in the right order, column one and then column two. Tesseract got 95.8%, with short words pulled out of their lines, as in "documents boring. Invoices, delivery / are notes". One quirk on OCRia-nano's side: it merged each section heading with the first line of its paragraph, giving ##### 1. Throughput Small parsing models matter because most.

A real scan: Moby-Dick, 1851

The generated pages are clean underneath the noise, so I wanted at least one real old scan. Page 28 of the 1851 US edition has uneven ink, small caps, hyphenated line breaks and a running header. I compared both outputs against Wikisource's proofread text of the page (319 words).

  • OCRia-nano-1: 317 of 319 words in order (99.4%). It split "keep- ing" across the line break and dropped a single "I" at the end of a line. It also removed the running header "28 THE COUNTERPANE." as page furniture.
  • Tesseract: 274 of 319 in order (85.9%), even though it recognised 98.8% of the words somewhere on the page. It read "Queequeg's" as "Queeyueg's" and moved short words out of their lines:
OCRia-nano-1: UPON waking next morning about daylight, I found Queequeg's arm thrown over me in the most loving and affectionate manner. You had almost thought I had been his wife. Tesseract: Upon waking next morning about daylight, I found Queeyueg’s thrown in the most loving and affectionate arm over me You had almost thought I had been his wife. The manner. 

That shuffling isn't Tesseract's engine being bad at reading. I ran the plain tesseract 5.5 command line on the same image, and it got 99.1% of the words in order, but it took 2.65 s on one core. The problem is how LiteParse's Tesseract path puts words back into lines on justified text. If you're choosing between LiteParse's two backends, though, that's the output you get, and it's the one that would confuse a retrieval system the most.

The license: open weights, not open source

LiteParse itself is Apache-2.0. The OCRia-nano-1 weights are not. They ship under the OCRia-nano-1 Model License, which is a modified AI Pubs Open RAIL-M license, and lit models pull tells you that you're agreeing to it before it downloads anything. In short:

  • Free for research, teaching, benchmarking and personal use.
  • Free for commercial use if your organisation had under $2M in revenue last year and has raised under $2M in total funding.
  • A commercial license is needed above either of those thresholds, and for any use inside a document parsing, OCR or extraction product that competes with LlamaParse or LlamaCloud, whatever your size.

The license also covers the code distributed with the model and calls it "not open-source software". ONNX Runtime, which comes down with the models, keeps its MIT license, and you own your outputs. If you're at a company past those thresholds, read the LICENSE file under ~/.cache/liteparse/models/ocria-nano before you put this in a pipeline.

Where I'd use it

After this run, OCRia-nano-1 is my default first pass for everyday documents on CPU:

  • Ingestion pipelines for invoices, receipts and reports, where line items and totals need to stay attached to their labels. On my invoice, that was the whole difference between the two backends.
  • RAG over scanned PDFs, where reading order matters more than raw character accuracy. Shuffled words make chunks that look plausible and retrieve badly.
  • Agents that read uploaded files on a laptop or a small CPU instance. About half a second a page on one core, a 60 MB download and no GPU is an easy thing to ship.

I'd still keep three things in mind. Pass --keep-headers-footers on invoices and statements. Check that the license fits your company. And for heavy tables, handwriting or charts, LlamaIndex itself points you to the bigger OCRia-1.

To try it yourself:

pip install liteparse lit models pull ocria-nano lit parse your-scan.pdf --format markdown -o out.md lit parse your-scan.pdf --format markdown --ocr-backend tesseract -o out-tesseract.md 

The model card is at huggingface.co/llamaindex/OCRia-nano-1, LiteParse is at github.com/run-llama/liteparse, and the launch post is on the LlamaIndex blog.

Originally published on Medium.