Mac mini Local LLM for Invoice OCR: 1,572 Documents Tested

Cloud Mac · By FideNubi Team ·

Comic-style accountant with eight arms stamping, typing and sorting piles of invoices and receipts at a cluttered office desk

Short answer. Yes, a small office computer can read invoices for you, without sending them to an AI company. We ran free AI models on a Mac mini with 16 GB of memory and gave them 1,572 invoices, receipts and bank statements in 10 languages. The best one, Gemma 4 12B, read 98.3 % of the values correctly and took about 34 seconds per document. On real business documents it was lower, 94.4 %, so it is a fast first draft for a bookkeeper, not a replacement. Every document stayed on the Mac. All reports, the test rules and the code are public on GitHub, free to reuse.

What we found

Why we ran this test

Many accounting firms would like an AI to type invoice data for them, but do not want to upload clients' invoices to an AI service on the internet. The alternative is a model that runs on your own computer, inside your own network. We wanted plain numbers: how accurate is that on a modest machine, how often does it invent things, and how long does it take?

We chose the smallest Mac mini that is a sensible choice for this: an M4 with 16 GB of memory. It is a cheap computer to buy or to rent (see cloud Mac mini prices), and it is also the size where it gets tight: macOS lets the AI use only about 12 GB of the 16.

How the test worked

The documents. 1,572 documents: 865 invoices, 699 receipts and 8 bank statements, in English, German, French, Italian, Spanish, Portuguese, Dutch, Polish, Indonesian and Korean. 305 are real documents from businesses and accounting software, taken from public research collections; the other 1,267 were generated for research. For each document we knew the right answer for every field: 13,273 values in total.

The task. The model got a picture of the document and had to return its fields: seller and buyer, invoice number, dates, amounts, VAT, tax numbers, IBAN, line items. Some fields are not on the page (1,199 of them). There the right answer is "nothing", and we counted how often the model wrote something anyway.

The models. We used free, openly downloadable models that read images and fit on a 16 GB Mac:

ModelMakerWhy it was in the test
Gemma 4 12B and Gemma 4 E4BGooglepopular open models, the 12B is about the largest that fits
Qwen 3.5 9B and 4BAlibabastrong small models, the 4B is very fast
Qwen3-VL 8B and 4BAlibabamodels made for reading images and documents

Three more models were planned (MiniCPM-V 4.5, InternVL 3.5, GLM-4.1V) but had no ready Mac version or could not switch off their long "thinking" mode, so they were left out. Later we also tried two models built only for pulling data out of documents (NuExtract3 4B and lift 9B) and a much larger Qwen 3.8 27B.

The rounds. First all six models read all documents. The three best went into a second round where we changed one thing at a time: the instructions, a stricter output format, and how much the model is compressed (4, 6 or 8 bits per weight; less compression means a bigger, more precise model). The rules of the second round were written down before it started, so we could not adjust them to the results. Finally the best setup and the fastest one read all 1,572 documents again.

Results: AI invoice processing on a 16 GB Mac

Gemma 4 12BQwen 3.5 4B
Values read correctly, all documents98.3 %98.0 %
Values read correctly, real documents94.4 %92.7 %
Documents without a single mistake88.4 %57.8 %
Fields not on the page, but filled in anyway1.4 %44.9 %
Seconds per document3417
Memory used12.6 GB6.2 GB

Both are the 6-bit versions, which were better than the usual 4-bit ones: Gemma went from 70.4 % to 88.4 % of documents without a mistake.

The made-up subtotal. The fast Qwen model reads the printed values almost as well as Gemma. Its problem is fields that are not there. 92 % of its invented values are one field: the subtotal on a receipt that only prints the total. The model calculates or copies a number, even though the instructions said to leave the field empty if it is not printed. In practice this can be fixed by a rule in the software, but you need to know about it.

What did not help. Asking the model to quote the document for every value made it slower (1.5 to 2 times) and not more accurate. Forcing a strict output format did not change accuracy, but guaranteed that every answer could be read by software.

Specialised tools were not better. NuExtract3 4B was as good as the small Qwen model and worse than Gemma. lift 9B made up almost nothing, but read fewer values correctly, especially on real documents.

Too big for 16 GB. The 8-bit Gemma and Qwen 3.8 27B did not fit in memory: every document failed. The first attempt even crashed the Mac, so we added a guard that stops a run before memory runs out.

Private AI for accounting: documents stay on your Mac

Who can use AI for bookkeeping like this

What else is in the reports

This article shows the main numbers. The repository also has:

Start with the summary: reports/SUMMARY.md. The documents themselves are not published: some collections do not allow it, and some contain real company data.

Use our data

You are welcome to use the results in your own articles, reports and talks, also commercially. Reports and protocols are under CC BY 4.0, the code under MIT. When you use them, please credit FideNubi with a link to fidenubi.com (a normal followed link, not "nofollow").

For editors and journalists. We would be glad to see this study covered in accounting, finance and technology media, in any language. Write your own story from the data; you do not need to ask first. If you need a figure that is not in the summary, or have questions about how we tested, write to info@fidenubi.com.

Keep in mind

Frequently asked questions

Can a local AI model read invoices and receipts without the cloud?

Yes. In our test, the free Gemma 4 12B model ran on a 16 GB Mac mini M4 with no internet service involved. It read 98.3 % of the values on 1,572 invoices, receipts and bank statements correctly. On the 305 real business documents in the set the figure was 94.4 %, so a person still has to check the result.

How long does a Mac mini take per invoice?

The most accurate setup took about 34 seconds per document, roughly 100 documents an hour. A smaller model, Qwen 3.5 4B, took about 17 seconds but filled in values that were not on the page much more often.

Does the AI make up numbers?

Sometimes. We counted how often a model filled in a field that is not on the document. Gemma 4 12B did it for 1.4 % of such fields. The Qwen models did it for about half of them, almost always by writing a receipt subtotal that is not printed on the receipt.

Can I use your data in my own article?

Yes. The reports and protocols are under CC BY 4.0 and the code under MIT, free to use, also commercially. We ask for credit to FideNubi with a link to fidenubi.com.

← All articles