I’ve set up a Hugging Face Space to try out OCRia-nano-1, LlamaIndex’s small (8.1M-parameter) document-parsing model:

ajzack/ocria-nano-demo

The interesting part is that everything runs client-side. The Space is a static HTML/JS page that uses @llamaindex/liteparse-wasm, so the OCR happens in your browser through WebAssembly. Documents never leave your device. That matters for work like ours, where scanned clinical or administrative documents can’t be uploaded to a third-party server.

What it does Link to heading

  • Input: a PDF or an image (PNG, JPG, TIFF, WebP)
  • Output: Markdown (with tables, headings and lists), plain text, or JSON with per-line bounding boxes and confidence scores
  • Visual overlays: detected text lines on each page, colour-coded by OCR confidence, plus layout blocks (headings, paragraphs, tables, lists)

Footprint Link to heading

The models are tiny by current standards. They download from the model repo on first use and are checked against SHA-256 hashes:

  • Latin OCR: ~1.5 MB
  • LayoutNet (layout detection): ~17 MB
  • Additional scripts: ~11 MB

OCR runs single-threaded, at roughly 1–4 seconds per scanned page on a laptop.

Licensing Link to heading

OCRia-nano-1 uses the OCRia-nano-1 Model License (based on Open RAIL-M). It is free for research, personal use and small organizations, but a commercial license is needed above the thresholds on the model card. LiteParse itself is Apache-2.0.

It’s still early testing. Give it a try with your own documents and let me know how it does.