Platforms
What runs on macOS, and the state of the CUDA preview.
Support at a glance
| Platform | Backend | Status | What you get |
|---|---|---|---|
| macOS 26.2 or newer on Apple Silicon | Metal | Supported | Inference, training, images and audio. npm binary and the Portato app |
| Linux arm64 (glibc) on NVIDIA DGX Spark | CUDA 13 | Preview | Inference only. npm binary and a Portato preview build |
| Windows ARM64 on NVIDIA RTX Spark | CUDA 13.4 | Preview | Inference only. npm binary and a Portato preview build |
macOS
You need an Apple Silicon Mac with macOS 26.2 or newer. The prebuilt binary does not load on older versions. Everything on this site works here: inference, training, images, audio, the server and Portato.
GPUs from M1 to M5 are detected. Some kernels are built for M5-class GPUs.
CUDA preview
Preview
CUDA support is for inference only and is tested on two kinds of machine. Expect rough edges.
- Linux arm64 (glibc) on NVIDIA DGX Spark. npm installs a prebuilt binary. It needs the CUDA 13 runtime and toolkit headers, cuDNN 9, and BLAS and LAPACK on the machine.
- Windows ARM64 on NVIDIA RTX Spark. npm installs a prebuilt binary. It needs the CUDA 13.4 runtime DLLs on
PATH, the CUDA toolkit headers, and cuDNN 9.
Portato has preview builds for both machines. The Portato guide has the install steps.
What works: inference with custom CUDA kernels. On Windows, the paged KV cache, batching of many chats and the disk prefix cache are enabled for Qwen3, LFM2, Nemotron, Gemma 4, Muse-Glimmer, Qwen3.5 and Inkling-2-Mini. The recorded device run is Inkling-2-Mini on an RTX Spark.
What does not work yet: training, the DFlash2 draft for Qwen3.5 MoE (Metal only), and the paged cache for Qwen3.8-Flash-Next and Hy4-flash on CUDA. On Linux the paged cache is compiled in but has not been verified on a device.
The full list and the build steps are in the CUDA notes.
Not supported
- x86_64 on any system, including Intel Macs.
- macOS older than 26.2.
Build from source
You need Node.js 22.19 or newer, Rust 1.89 or newer and, on a Mac, the macOS 26.2 SDK.
git clone --recurse-submodules https://github.com/mlx-node/mlx-node.git
cd mlx-node
yarn install --immutable
yarn build
yarn build:native builds the Node addon. A plain cargo build does not.