PARAS MADAN
All writing

Latest in AI

Run Nemotron 3.5 Parse locally on a Mac with Docling and MLX

Set up the native MLX backend in Docling 2.152.0, avoid an accidental Transformers fallback, and compare your PDF's tables and layout.

Docling 2.152.0 adds a native Apple Silicon route for NVIDIA's Nemotron 3.5 Parse. Install the right MLX version and Docling can read a local PDF using the model without starting a separate server or enabling remote model code. If MLX is too old, the same preset can select a different backend, so it's worth checking which one actually ran.

The November 23 Docling release ships the integration. This is a new Docling path for the existing NVIDIA model, not a new model release. Start with a small document before swapping out a parser that's already in production.

Install the two matching releases

In a clean Python environment on an Apple Silicon Mac, install the Docling VLM extra and MLX-VLM 0.7.11. The latter is the first version Docling's preset accepts for this native port.

python3 -m venv .venv
source .venv/bin/activate
python -m pip install 'docling[vlm]==2.152.0' 'mlx-vlm==0.7.11'
python -m pip show docling mlx-vlm

The Docling model catalog says the preset uses a pinned BF16 MLX checkpoint. Smaller community checkpoints are available separately, but this command is for the default preset. Keep those variations out of the first test so you know which change affected the output.

Convert one local PDF

Save a synthetic or public sample as sample.pdf. Choose a page with at least one table, so success means more than getting recognizable prose back. The CLI reference for this release documents the convert subcommand and the export flags:

docling convert sample.pdf -v --vlm-model nemotron_parse_v3_5 \
  --to md --to json --output ./parse-check

The first run may need to download model weights. Keep first-run time separate from repeat conversion time. Read the Markdown against the PDF, then use the JSON when you need to inspect structure and layout without assuming that Markdown preserved every relationship.

Don't mistake a fallback for a working MLX setup

Docling's automatic selector chooses MLX on Apple Silicon when the compatible port is available. With an older MLX-VLM package it can choose Transformers instead. The resulting conversion isn't evidence that MLX ran; check the installed version and the engine in your logs.

The default native route doesn't need --trust-remote-code. If a conversion stops with a model-code trust error, don't add the flag just to make this experiment run. Check that the command is using the virtual environment and the intended preset. In a Python integration where silent fallback is undesirable, select MlxVlmEngineOptions explicitly. The implementation PR says that explicit selection rejects an older MLX-VLM version before downloading the weights.

Compare the output you'd ship

The implementation PR reports a small BF16 comparison against Transformers. Some pages matched more closely than others, and class or box differences remained. Treat that as a reason to compare layouts, not as a general accuracy estimate.

Pick three pages from the kinds of documents you actually parse: one with simple text, one with a dense table and one with a difficult layout. On the table page, check whether the headers still line up with the right numbers. On the layout page, check reading order and whether headings and captions stay attached to their content. Compare accepted pages and correction time, then look at warm conversion time and memory. A faster run doesn't help if it sends more pages to manual review.


I'm Paras. I work at the intersection of AI, engineering and distribution.

I help AI teams write technical guides that show developers how to try a deployment and judge whether it fits their workload.

Book a 30-minute call