Attaching an external NVIDIA GPU to oMLX: moving Mac prefill to another machine

A PC beside the Mac shares the prefill one Mac cannot carry; the conditions are driver and card generation.

The Prefill1 Accelerator in oMLX 0.8.0rc1 lets an NVIDIA PC or DGX Spark beside the Mac run the first layers of each prompt2 while the Mac keeps the rest, the decode3 and the KV cache4. Qwen3.8 27B at a 64K prompt rises from 352 to 1,879 tok/s with two RTX A6000s.

Requirements and key details
  • It needs driver 580 or newer and an Ampere-or-newer GPU or a GB10.
  • The helper runs only in Docker, with no SSH or oMLX install.
  • Qwen3.8 27B at 64K rises from 352 to 1,879 tok/s.

How the work splits

The helper runs the first layers of each prompt chunk while the Mac handles the rest, the decode and the KV cache, so a large model stays in Mac memory with only the opening computation moved.

With Auto on, it measures both machines and the link to pick the layer count, and keeps the prompt on the Mac when a split would be slower.

Colour-coded blocks leave a compartmented crate wired to an Apple compact desktop and split into document, image and audio work
The helper takes the prompt's front and the Mac keeps the rest.

Requirements and setup order

The helper needs driver 580 or newer and an Ampere-or-newer GPU5, or a GB10. The release notes say Windows is not yet tested.

On the Mac, turn on distributed inference6 under Settings > Advanced, pair the helper on the Cluster tab and select it under Prefill Accelerator in the model's settings.

Running the helper
docker run -d --name omlx-helper --restart unless-stopped \
  --gpus all --network host -v omlx-helper:/data \
  jundot/omlx-cuda-helper
The pairing code appears in docker logs omlx-helper.

The gain depends on the model

Qwen3.8 27B gains 434% with two RTX A6000s while DeepSeek V4.1 Flash gains 76% on the same pair, so the best pairing differs by model.

For DeepSeek V4.1 Flash the DGX Spark is faster than two A6000s, so read the row for the model you run.

Scroll sideways to compare all columns.

Prefill on a 64K prompt (M3 Ultra 512GB)
ModelMac alone+ DGX Spark+ 2× A6000
Qwen3.8 27B3521,0621,879
Qwen3.8 Flash-Next1,3702,7153,928
DeepSeek V4.1 Flash1,0852,4121,914
GLM-5.3 Flash5551,076978
An RTX 3090 in a case, colored blocks moving along a conveyor to shelves, and cards printed with network diagrams on the work surface
Driver 580 or newer and an Ampere-class card are required.

The link decides the result

Those figures were measured over 2.5GbE. A slower link shrinks the gain, and Auto avoids splitting in that case.

Decode speed barely changes: short chats feel little, while frequent long documents show the gap.

What changed in 0.8.4

0.8.4 sped up Inkling 2 Mini sharply: on an M5 Ultra 4K prefill rose from 3,733 to 5,620 tok/s and 128K prefill from 1,895 to 4,239.

Decode at 128K doubled from 56.2 to 112.1 tok/s, and two concurrent requests rise from 84.4 to 220.3 tok/s in total, with the gain largest under concurrency.

The Prefill Accelerator for an external NVIDIA card arrived in 0.8.0rc1, so 0.8.4 keeps the same settings described below.

Two metal devices sit on a desk and shelf beside a laptop, with cables connected to a switch box in front
On a slow link Auto avoids splitting.

Terminology notes

  1. Prefill — The stage where an LLM reads the input prompt and computes representations for its tokens. Longer prompts contain more tokens to process.

    Back to the text
  2. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  3. Token decoding — The stage that generates successive output tokens using the input and the response produced so far.

    Back to the text
  4. KV cache — Memory that stores attention keys and values from earlier tokens for reuse during later token generation. Its size depends on context length and batch size.

    Back to the text
  5. GPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.

    Back to the text
  6. Inference — The process of using a trained model to compute an output for an input. Here, local inference means running the model on the user’s device.

    Back to the text

Frequently asked questions

What should you check first in this article?
The Prefill Accelerator in oMLX 0.8.0rc1 lets an NVIDIA PC or DGX Spark beside the Mac run the first layers of each prompt while the Mac keeps the rest, the decode and the KV cache. Qwen3.8 27B at a 64K prompt rises from 352 to 1,879 tok/s with two RTX A6000s.