Nemotron OCR v2 on a Mac, tested on a scanned book
1,840 of 1,955
words on 10 pages, with the multilingual model
Use the multilingual model, not the port's default
NVIDIA's package needs Linux, CUDA and an NVIDIA GPU. On a Mac, the community port SwiftNemotronOCR runs Core ML copies on the Neural Engine.
| Run | Words | Time |
|---|---|---|
| Multilingual, word | 1,840 | 101 s |
| Multilingual, paragraph | 1,401 | 109 s |
| English, word | 452 | 39 s |
| English, paragraph (the port's default) | 53 | 42 s |
| FireRed-OCR Q4_K_M | 1,948 | 131 s |
| Our Actor's code, on our Mac | 1,880 | 54 s |
| Tesseract 5.5.4 | 1,878 | 31 s |
The port's default read 53 words: less a book than a ransom note. Tesseract read 38 more than the top row, in about a third of the time.
The English files add dots and shuffle words
The English files return many of the right words, with stray dots, misspellings and a mixed order. The top of page 1, at full size:
86.
Therr
Boy...
Scouth
- Not the shrink: this full-size crop did the same.
- Not the Neural Engine: CPU only read 76 words.
-
The fix:
--variant multi. We do not know if the English files or the port's code is at fault.
What the multilingual model gets wrong
-
Paragraph level mixes the line order. Use
--level word, which gives lines, in order. -
A few lines come back with doubled letters:
eem YYou'rea frriedfor "'em. You're a friend". -
A closing double quote after a comma often turns single:
Hatton,'. - It adds running heads and page numbers.
- The port pads every page to a square and shrinks it to 1024 px for the detector.
Neural Engine, GPU, CPU: nearly the same words
- GPU (with CPU): 1,842 words in 104 s.
- CPU only: 1,841 words in 166 s.
On the Neural Engine, a page took about 9 s at background priority. We did not time a normal run.
The port's README says about 350 ms on the Neural Engine, for the English model at paragraph level. Our English paragraph run took about 3.5 s a page.
Build the port with Xcode
git clone https://github.com/mweinbach/SwiftNemotronOCR.git
(cd SwiftNemotronOCR && git checkout 509f39a && swift build -c release --build-system native)
cp SwiftNemotronOCR/.build/release/apple-ocr-runner .
./apple-ocr-runner --download --runtime coreml --variant multi --model-dir model/coreml
With Swift 6.4, a plain swift build fails on
mlx-swift's Metal files ("CompileMetalFile ...
failed"). Run alone, xcrun metal says why:
"missing Metal Toolchain".
--build-system native skips those files. The flag is
deprecated, but Core ML does not need them.
- The build took 405 s here, at low priority.
- The download is 11 files, 259 MB.
- pdftoppm comes with
brew install poppler.
What about the MLX files?
Our MLX run stopped at once with "Failed to load the default
metallib", even with --device CPU. The native
build skips the Metal files, and building them needs the Metal
Toolchain.
Its config also shrinks pages to 512 px on the GPU and
256 px on the CPU. We did not test
xcodebuild -downloadComponent MetalToolchain.
One script: scanned PDF in, text out
Save nemotron.sh next to scan.pdf, apple-ocr-runner and model.
What is in nemotron.sh
#!/bin/sh
# Nemotron OCR v2 (Core ML port, multilingual model) on every page-*.jpg in this folder. Text goes to book.txt.
# Needs ./apple-ocr-runner (built from SwiftNemotronOCR) and model/coreml from its --download step. jq ships with macOS 15+.
set --
for p in page-*.jpg; do set -- "$@" --image "$p"; done
./apple-ocr-runner --runtime coreml --device ANE --model-dir model/coreml \
--variant multi --level word "$@" 2> /dev/null | jq -r '.images[].text' > book.txt
Then run:
pdftoppm -r 300 -jpeg -jpegopt quality=95 scan.pdf page
sh nemotron.sh
On our scan it found 1,853 words in 93 s.
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
- SwiftNemotronOCR at commit 509f39a (GitHub's tarball), built with Xcode's Swift 6.4.2, 4 jobs, at low priority.
- Core ML files: mweinbach/nemotron-ocr-v2-coreml at a fixed commit, every file checked by size and every large file by its hash.
- One apple-ocr-runner call per run with all 10 pages, each page a JPEG 1920 px wide. Times include one model load.
- Case and punctuation count. With quote marks and apostrophes removed, the multilingual word run found 1,856.
- One Apple Silicon Mac, one run at a time, at low priority, so times are rough.
- The script reads pages that pdftoppm draws again from scan.pdf, so its count differs a little from the table.
- Tesseract, our Actor (build 0.1.144) and FireRed-OCR: from our tests of the same pages, the same day.
- The port has no license file, so we only link to it and copy nothing from it. nemotron.sh is our own.
- Not tested: NVIDIA's own code, the demo on build.nvidia.com, MLX (it would not run without the Metal Toolchain), Ollama, vLLM, GGUF, tables, handwriting, other languages and the bounding boxes.
- Scripts and results stay in our private repo, in research/bench/nemotron-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 40 more words than the multilingual model.
- A page it reads with OCR costs $0.006.
- To try NVIDIA's model on a Mac, use the port. To install nothing, use the Actor.
Questions people ask
Does Nemotron OCR v2 run on a Mac?
Not with NVIDIA's own package, which needs Linux, CUDA and an NVIDIA GPU. A community Swift port runs converted Core ML files. Its multilingual model read 1,840 of 1,955 words on our 10 pages.
Is there a Nemotron OCR v2 GGUF for Ollama or llama.cpp?
Not that we found. A Hugging Face search for nemotron-ocr on Nov 26 showed no GGUF copy, and the model card lists PyTorch as its only runtime engine. We did not test Ollama or vLLM.
How big is Nemotron OCR v2?
The model card gives 83,853,044 parameters for the multilingual model and 53,831,335 for the English one. The multilingual Core ML files are 259 MB.
Is there a Nemotron OCR v2 demo?
The model card lists it on build.nvidia.com. We did not test it.
Where are the Nemotron OCR v2 weights?
NVIDIA's weights and code are on Hugging Face as nvidia/nemotron-ocr-v2. The Mac port is mweinbach/SwiftNemotronOCR on GitHub, and its Core ML files are mweinbach/nemotron-ocr-v2-coreml on Hugging Face.
Is Nemotron OCR v2 free for business use?
The weights use the NVIDIA Open Model License: "no-charge, royalty-free", and "Models are commercially usable." Its terms apply. NVIDIA "claims no ownership rights in outputs". Its code is Apache-2.0, and the Swift port has no license file. This is not legal advice.