Built by Apple for M-series hardware. Uses the unified memory pool, so RAM is VRAM. mlx-community mirrors most open models with 4-bit quants ready. Apple-native 4-bit. Best price/performance on M-series.
What MLX expects you to type to serve Llama 3.1 405B at MLX 4-bit. Adjust the paths for your filesystem; the structure holds.
pip install mlx-lm mlx_lm.generate \ --model mlx-community/llama-3-1-405b-4bit \ --max-tokens 1024 \ --prompt "Hello"
MLX 4-bit — Apple-native 4-bit. Best price/performance on M-series.
Expect to need around 227 GB of VRAM to hold the weights at this precision. This is a dense model: every parameter runs for every token. VRAM and compute both scale with the full 405B. Fits on 4× H100 — 320 GB — Half an 8-way HGX node.