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

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
- Accuracy: the best setup read 98.3 % of all values correctly; on the 305 real documents 94.4 %.
- Whole documents: 88.4 % of documents came out without a single wrong field.
- Speed: about 34 seconds per document, roughly 100 an hour, on the cheapest Mac mini.
- Made-up values: the best model filled in a field that is not on the page in 1.4 % of cases. A model twice as fast did it in 44.9 %, almost always a receipt subtotal that is not printed.
- Electricity: the chip draws about 15 W while it works; 1,000 documents took about 131 Wh.
- Bigger is not always possible: a 27-billion-parameter model and an 8-bit version of the winner do not fit in 16 GB.
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:
| Model | Maker | Why it was in the test |
|---|---|---|
| Gemma 4 12B and Gemma 4 E4B | popular open models, the 12B is about the largest that fits | |
| Qwen 3.5 9B and 4B | Alibaba | strong small models, the 4B is very fast |
| Qwen3-VL 8B and 4B | Alibaba | models 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 12B | Qwen 3.5 4B | |
|---|---|---|
| Values read correctly, all documents | 98.3 % | 98.0 % |
| Values read correctly, real documents | 94.4 % | 92.7 % |
| Documents without a single mistake | 88.4 % | 57.8 % |
| Fields not on the page, but filled in anyway | 1.4 % | 44.9 % |
| Seconds per document | 34 | 17 |
| Memory used | 12.6 GB | 6.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
- A local model on a small Mac can do the typing: most fields of most invoices come out right, and the documents never leave your machine. That is data sovereignty in its simplest form: your clients' data stays with you, not with an AI company.
- It is a draft. On real documents roughly 1 value in 18 was wrong for the best model, so someone still checks every document.
- Accuracy over speed: Gemma 4 12B is the safer choice, because it rarely invents values. The faster Qwen 3.5 4B needs a rule against invented fields such as the subtotal.
- The computer can be a Mac mini in your office or a Mac you rent in a data centre for yourself. Which models fit which Mac is in our guide to local AI models on a Mac mini.
Who can use AI for bookkeeping like this
- Accountants and bookkeeping firms who want to automate data entry without uploading client documents to an AI service.
- Makers of accounting software looking for a model that runs on the customer's own computer.
- IT people in small companies choosing a model and a machine.
- Journalists and editors covering AI in accounting: these are independent measurements, not a vendor's claims.
What else is in the reports
This article shows the main numbers. The repository also has:
- results for every model and every setup, by document type, by language, and real versus generated documents;
- the second round in detail: instructions, output format, compression, with the statistical tests;
- the full comparison with the specialised extractors;
- electricity per document for each model;
- where the made-up values come from, field by field;
- the test rules written before the runs, the instructions given to the models, the scoring code;
- the list of documents and the public collections they come from, with their licences.
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
- Only 305 of the 1,572 documents are real; results on real documents are lower, as shown above.
- Each setup ran once; we did not measure how much results vary between runs.
- We measured the chip's power, not the whole computer's.
- One machine and one software stack (a 16 GB Mac mini M4, mlx-vlm 0.7.10); other computers will differ in speed and memory.
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.