FireRed-OCR on a Mac, tested on 10 scanned pages
1,948 of 1,955
words read on 10 pages, from 1.6 GB
The smallest file read just as well
FireRed-OCR is FireRedTeam's 2B document model. We ran three sizes of the community GGUF in llama.cpp.
| Run | Words | Time |
|---|---|---|
| FireRed-OCR f16, 4.3 GB | 1,947 | 146 s |
| FireRed-OCR Q8_0, 2.7 GB | 1,944 | 136 s |
| FireRed-OCR Q4_K_M, 1.6 GB | 1,948 | 131 s |
| Our Actor's code, on our Mac | 1,880 | 54 s |
| Tesseract 5.5.4 | 1,878 | 31 s |
Sizes include the vision file. Times include a model load on every page: llama.cpp's CLI loads it per call.
It wrote one word in Chinese
In every run but one (Q8_0 with the short prompt), the model wrote 拖着 or 拖, Chinese for "dragging" and "drag", in place of "drags":
the shallow marsh and拖着 it ashore’
This line prints every line of the output with a Chinese character:
perl -CSD -ne 'print "$.: $_" if /\p{Han}/' book.md
- Every run with FireRed's prompt wrote "ashore'" for the dialect "asho'".
- With FireRed's prompt, f16 and Q8_0 wrote "drewled" for "drawled", and Q4_K_M wrote "unloading'" for "unloadin'".
- No run added a sentence that was not on the page.
FireRed's prompt gives cleaner Markdown
| Prompt | Q4_K_M | Q8_0 |
|---|---|---|
| FireRed's prompt | 1,948 | 1,944 |
| Short prompt | 1,939 | 1,921 |
| FireRed's prompt, words only | 1,949 | 1,949 |
| Short prompt, words only | 1,950 | 1,955 |
The short prompt, "Convert this page to Markdown.", read the words as well. It kept the page numbers and added * for italics. With Q8_0, it also put single quote marks inside double quotes on 9 lines. FireRed's prompt did none of these.
Install with one Homebrew line
brew install llama.cpp poppler
Homebrew installs a ready build, with nothing to compile. We ran build 12359.
Which vision file -hf downloads
With :Q4_K_M, llama.cpp took the small mmproj-Q8_0 vision file (0.45 GB), not the f16 one (0.82 GB). On our pages, both gave the same text, byte for byte.
One script: scanned PDF in, Markdown out
Save firered.sh and prompt.txt in the folder with scan.pdf. prompt.txt is the prompt from FireRed-OCR's conv_for_infer.py (Apache-2.0), as is.
#!/bin/sh
# FireRed-OCR on every page-*.jpg in this folder, one page at a time. Markdown goes to book.md.
# Needs llama.cpp (brew install llama.cpp) and prompt.txt (FireRed-OCR's own prompt) in this folder.
for p in page-*.jpg; do
llama-mtmd-cli -hf mradermacher/FireRed-OCR-GGUF:Q4_K_M --temp 0 -n 8192 -t 2 \
--image "$p" -p "$(cat prompt.txt)" < /dev/null 2> /dev/null
done > book.md
Then run:
pdftoppm -r 300 -jpeg -jpegopt quality=95 scan.pdf page
sh firered.sh
On our scan it found 1,949 words in 129 s. The first run also downloads 1.6 GB.
Same 10 pages as our MLX test
The 10 pages are proofread Wikisource scans, 1,955 words in all, the same pages as our MLX OCR test. The score is true words found in order.
How we ran it
- llama.cpp build 12359 from Homebrew, on Metal, on macOS 26.6.
- GGUF files: mradermacher/FireRed-OCR-GGUF at a fixed commit, each file checked against its hash.
- One llama-mtmd-cli call per page, each page a JPEG 1920 px wide, at temperature 0, with 2 threads.
- Vision files: mmproj-f16 for the f16 and Q8_0 rows, mmproj-Q8_0 for Q4_K_M.
- The script reads pages that pdftoppm draws again from scan.pdf, so its count differs a little from the table.
- llama.cpp warns that Qwen-VL models need --image-min-tokens 1024 for grounding. We did not set it.
- Case and punctuation count. Curly and straight quotes count the same.
- One Apple Silicon Mac, one run at a time, at low priority, so times are rough.
- Tesseract (--psm 3) and our Actor (build 0.1.144): from our Qianfan-OCR test of the same pages, the same day.
- Not tested: FireRed's own weights in transformers or vLLM, Ollama, LM Studio, tables, formulas, handwriting and other languages.
- Scripts and results stay in our private repo, in research/bench/firered-ocr-2026-11-26/.
Our Actor: nothing to install
Our Apify Actor, PDF to Markdown OCR, reads PDF, PNG, JPEG, WEBP, TIFF, HEIC, AVIF, GIF, BMP and JP2 in the cloud.
- Its code found 68 fewer words than the Q4_K_M file.
- A page it reads with OCR costs $0.006.
- On a Mac with llama.cpp, use FireRed-OCR. To install nothing, use the Actor.
Questions people ask
Does FireRed-OCR run on a Mac?
Yes. The community GGUF files run in llama.cpp, which Homebrew installs. On our 10 pages, the Q4_K_M file read 1,948 of 1,955 words, from 1.6 GB with its vision file.
Which FireRed-OCR GGUF file should I use?
Q4_K_M with the mmproj-Q8_0 vision file, 1.6 GB in all. On our pages it found 1 word more than f16, from about a third of the disk space.
Can I run FireRed-OCR in Ollama?
We did not test Ollama. llama.cpp ran the GGUF files after one Homebrew install, with one command per page.
How does FireRed-OCR compare with Qianfan-OCR?
On the same 10 pages, Qianfan-OCR's 4-bit MLX copy read 1,951 words and FireRed-OCR's Q4_K_M file read 1,948. FireRed-OCR is the smaller download: 1.6 GB against 3.1 GB.
Is FireRed-OCR free for business use?
FireRedTeam publishes it under Apache-2.0, which allows business use. Its base model, Qwen3-VL-2B, is Apache-2.0 too. llama.cpp is MIT.