Hugging Face OCR Models: Document Extraction in 2026
Teamday· 6 min read· 2026-10-31· Updated 2026-11-01
Hugging FaceOCRDocument ExtractionOpen-Weight Models2026

Hugging Face OCR Models: Document Extraction in 2026

Turn a scanned invoice into accounting fields, recover a table from a report, or make a document searchable. OCR models help with different parts of that work; choosing one starts with the output you need.

For invoices, the important result is a correct field—not just readable text. Reading “298.00” is useful only if your system knows it is the total, rather than a line-item price.

We tried Granite Docling and LightOnOCR-2 on the same simple invoice. Both preserved the identifier, amounts and due date, with the right associations on that page. Their output was quite different: Granite described the page's text and positions; LightOn produced a table.

Choose the output your next step needs

There are three jobs often grouped under “OCR”:

  • Recognize text: recover the words and numbers from an image.
  • Rebuild the document: preserve headings, reading order, rows and columns.
  • Extract fields: put the correct value into an invoice number, total or due-date field.

A clean-looking transcription can still fail at the third job. Before choosing a model, decide which of those outputs your application needs. Also check whether your PDF already contains usable text; it may not need image recognition at all.

Models worth comparing on your documents

ModelReason to try itOur test
Granite Docling 258MA compact model for converting document text and structureOur sample invoice on Linux CPU and Mac GPU
LightOnOCR-2-1BA smaller, previous-generation option with documented Mac supportThe same invoice on Mac GPU
LightOnOCR-3-4BA newer option that can also locate elements on the pageNot tested here
PaddleOCR-VL-1.6A document-parsing pipeline to evaluate across your layoutsNot tested here
DeepSeek-OCR-2Another document-to-text option to compareNot tested here

These exact releases declare Apache 2.0 licenses in the source cards checked for this guide. Check the version you download: a model family's name does not guarantee that every release has the same terms.

What our invoice test showed

We created this fictional invoice with two line items and a total of USD 298.00:

Sample invoice TD-2026-1031 with content review for USD 249.00, voiceover editing for USD 49.00 and a total of USD 298.00

Download the invoice image.

On an Apple M6 Mac mini with 32 GB memory, both models used the GPU:

ModelTime per pageWhat came back
Granite Docling30.43 sText elements with their positions on the page
LightOnOCR-26.02 sText with an HTML table for the line items and total

Times are medians of three runs after warming up each model, measured October 31, 2026. They cover model generation, excluding loading, image preparation and saving the result. The two models produce different formats, so the numbers describe this task rather than a general pages-per-second ranking.

We inspected the results against the image:

FieldExpected valueGraniteLightOn
Invoice numberTD-2026-1031CorrectCorrect
Content reviewUSD 249.00Correct row positionCorrect table row
Voiceover editingUSD 49.00Correct row positionCorrect table row
TotalUSD 298.00Correct row positionCorrect table row
Payment due14 November 2026CorrectCorrect

Neither result was cut off. LightOn's table kept each description beside its amount. Granite's positioned text also put the labels and amounts on matching rows, but it did not turn them into explicit table cells.

That is more informative than searching the output for five strings. For example, finding 49.00 alone would not establish that the second item was read correctly—it also appears inside 249.00.

Inspect the actual Granite output and LightOn output. Both need another step if your application expects a verified invoice record with named fields.

What about a CPU-only computer?

Granite also completed the same invoice on our Ryzen 9 3900 Linux CPU, but its first generation took about nine minutes. That makes it worth testing your whole processing time before assuming a small model will make a fast document service.

The original Linux output is identical to Granite's Mac output on this page. The hardware and software paths differ, and the Linux run timed the first inference rather than repeated warm runs. The Mac and Linux measurements remain separate in the test records.

Build a test that catches costly mistakes

Our invoice is clean, English and deliberately simple. It says little about a crooked phone photo, faint scan or table split across two pages. Before putting a model into an invoice workflow, collect examples of the documents you actually receive.

For each one, label the fields you need and check them against the original. Include missing values, different date formats, discounts and taxes. Record which documents need human correction and how long correction takes.

Then check the arithmetic. On our sample, USD 249.00 plus USD 49.00 equals the USD 298.00 total. For a real document, include its tax and rounding rules. If the amounts do not reconcile, flag the invoice for review instead of silently changing a number.

For tables, check that values stay in the right rows and columns. For long documents, inspect the final page too: an attractive first page is not evidence that the whole file was processed.

What to use as your first pilot

If you want to explore document structure, Granite's output gives you text with page positions to inspect. If you want to experiment with a table-shaped transcription on a Mac, the LightOnOCR-2 example above is a useful starting point. It is the older LightOn generation; we have not compared it with LightOnOCR-3.

Choose using a small set of your documents, then measure the time to a reviewed, usable record. Include PDF rendering, recognition, field extraction, validation and corrections. That total matters more than the time of one model call.

Test files and methods

The Granite results, LightOn results and field-by-field review retain every run and raw output. Exact software versions, model versions and reproduction steps are in the test notes.

These tests were run separately from Teamday and do not establish a product integration. For other document inputs, see speech-to-text models; for generated media, see voice models and video models.