Key facts
- OCRia-nano-1 is LlamaIndex’s 8.1M-parameter OCR, table and layout pipeline. It was released November 23, 2026, and runs on a plain CPU inside the open-source LiteParse parser.
- Setup takes two commands:
pip install liteparse, thenlit models pull ocria-nano(about 60 MB, which took 4 seconds for us). - On our 8-vCPU test box, a scanned page with a table parsed perfectly in 0.65 s. The bundled Tesseract backend scrambled the same page.
- A 20-page scan took 5.6 s on one worker and 2.5 s with 8 workers, peaking at about 1.2 GB of RAM.
- License: free for research, personal use and small companies (under $2M revenue and funding). Larger commercial use needs a license from LlamaIndex.
Tested on 8 vCPU Intel Xeon, 15 GB RAM, Debian 13, Python 3.13.5, LiteParse 2.21.4
Turning scanned PDFs into clean Markdown usually means a GPU-hungry vision model or Tesseract’s messy output. OCRia-nano-1 sits in between: it’s small enough for a laptop CPU, and it rebuilds tables and headings. This guide shows how to install it on Windows, macOS or Linux, parse your first document, and avoid the mistakes we hit. Every command below was run on our test machine.
What you need
- OS: Linux (x86-64 and ARM64), macOS (Intel and Apple silicon) or Windows (x64 and ARM64). These are the platforms LiteParse 2.21.4 publishes wheels for.
- Python 3.10 or newer for the Python package (we used 3.13.5). Or Node.js 18+ for
@llamaindex/liteparse. - RAM: about 0.5 GB with one worker, and about 1.2 GB with 8 workers in our tests.
- Disk: about 60 MB for the models and ONNX Runtime, stored in
~/.cache/liteparse/models. - No GPU, and no system Tesseract. LiteParse bundles its own Tesseract fallback.

Step 1: Install LiteParse
python -m venv liteparse-env
# Windows: liteparse-env\Scripts\activate
source liteparse-env/bin/activate
pip install liteparse
lit --version # we tested lit 2.21.4
The package installs a lit command. If you prefer Node, npm i -g @llamaindex/liteparse gives you the same CLI.
Step 2: Download the OCRia-nano-1 models
lit models pull ocria-nano
lit models list
The pull downloads the detector, script router, four recognizers, the table model and ONNX Runtime 1.31.1, and checks each file against a pinned SHA-256. lit models list should then show:
ocria-nano@1.0.0 59.9 MB /home/you/.cache/liteparse/models/ocria-nano
From now on, OCRia-nano-1 is LiteParse’s default OCR backend. The CLI prints a license notice when you pull. The weights are under the OCRia-nano-1 Model License, not LiteParse’s Apache 2.0, so read it before using the models in a product.
Step 3: Parse your first document
lit parse scan.pdf --format markdown -o scan.md
Our test file was a one-page report with headings, two paragraphs and a ruled 5×5 price table. We rendered it to an image, rotated it 0.6°, added blur and noise, and saved it as an image-only PDF, so there was no text layer to cheat with. OCRia-nano-1 returned this table, with every cell correct:
| Region | GPU | Q2 price | Q3 price | Change |
|---|---|---|---|---|
| US West | H100 80GB | 2.10 | 2.35 | +11.9% |
| EU Central | H100 80GB | 2.40 | 2.52 | +5.0% |
| Asia East | L40S 48GB | 0.95 | 0.91 | -4.2% |
| US East | RTX 5090 | 0.62 | 0.70 | +12.9% |
The headings came back as # and ##, and the paragraphs were in the right order. Total time was 618 ms by LiteParse’s own timer. Images work too (lit parse scan.jpg), and so do DOCX, XLSX and PPTX files.
Verify OCR actually ran
If a page has no text layer, --no-ocr returns nothing. That’s a quick way to confirm the output really came from the model:
lit parse scan.pdf --no-ocr --format markdown # empty for a true scan
lit is-complex scan.pdf # reports "needs_ocr": true, reason "scanned"
Step 4: Compare it with Tesseract
LiteParse can switch backends for a single run:
lit parse scan.pdf --ocr-backend tesseract --format markdown
On the same page, Tesseract mixed up the reading order of the first paragraph (“…rose observed by three regions…our team across”). It also put stray | characters inside table cells and merged two columns. OCRia-nano-1 got both right. That matches LlamaIndex’s reported ParseBench-2 gap: 59.2 for OCRia-nano-1 vs 48.7 for Tesseract (vendor-reported).
Step 5: Batch jobs and speed
For multi-page files, set the worker count:
lit parse big-scan.pdf --format markdown --num-workers 8 -o big-scan.md
Our 20-page scan (the same page repeated):
| Backend | Workers | Wall time | Peak RAM |
|---|---|---|---|
| OCRia-nano-1 | 1 | 5.64 s | 492 MB |
| OCRia-nano-1 | 8 | 2.53 s | 1,229 MB |
| Tesseract | 1 | 12.91 s | 115 MB |
| Tesseract | 8 | 2.09 s | 520 MB |
With one worker, OCRia-nano-1 was more than twice as fast as Tesseract, at about 0.28 s per page. With 8 workers, Tesseract finished slightly sooner, but its output had the same errors. LlamaIndex reports 27.8 pages per second on 16 vCPUs. Our smaller box got about 8.
Use it from Python
from liteparse import LiteParse, models
models.pull("ocria-nano") # run once; it re-downloads every time you call it
parser = LiteParse(ocr_backend="ocria-nano", output_format="markdown")
result = parser.parse("scan.pdf")
print(result.text)
For bounding boxes, use --format json on the CLI. Each text item comes with x, y, width, height and an OCR confidence score.
Troubleshooting
- Output is empty. The file is probably a scan and OCR is off. Remove
--no-ocr, and check thatlit models listshowsocria-nano. - It’s using Tesseract. Until the models are pulled, LiteParse falls back to Tesseract. Run
lit models pull ocria-nanoagain, or pass--ocr-backend ocria-nanoexplicitly. --ocr-languagedoes nothing. That’s expected. OCRia-nano-1 picks a recognizer per line by script, so the flag is ignored.- Signs and decimals go missing on bad scans. When we doubled the blur and added more noise, OCRia-nano-1 read “-4.2%” as “4.2%”, and it did that on all four repeat runs. For financial or medical documents, check numeric fields or rescan at a higher DPI (
--dpi 300). - Charts stay as images. OCRia-nano-1 has no chart model. LlamaIndex points to the larger OCRia-1 for charts, handwriting and math.
- Offline machines. Copy the package files over and use
lit models pull ocria-nano --from <dir>.LITEPARSE_MODEL_DIRchanges where models are stored.
Bottom line
OCRia-nano-1 is one of the easiest upgrades to local document parsing we’ve tested. It’s two commands, needs no GPU, and does much better than Tesseract on tables. Use it as the first pass for document collections or RAG ingestion, and send the hard pages (charts, handwriting, bad scans) to a bigger model. If you’re also transcribing audio locally, our GigaAM install guide covers that.
Sources: OCRia-nano-1 model card, LlamaIndex announcement, LiteParse OCRia-nano-1 docs, LiteParse on GitHub, liteparse on PyPI. Tests run November 29, 2026. Facts checked November 29, 2026.
Cover image: LlamaIndex (official image)
