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. Reference precision. No quality loss.
What MLX expects you to type to serve Llama 4 Maverick at FP16. Adjust the paths for your filesystem; the structure holds.
pip install mlx-lm mlx_lm.generate \ --model mlx-community/llama-4-maverick-fp16 \ --max-tokens 1024 \ --prompt "Hello"
FP16 — Reference precision. No quality loss.
Expect to need around 804 GB of VRAM to hold the weights at this precision. This is a mixture-of-experts model: all 400B params load into memory, but only about 17B are active per generated token. That means load VRAM is large but compute scales with the active count — tok/s on a serving stack like vLLM reflects the smaller number. Fits on Multi-node cluster — More than one 8-GPU server, pipeline-parallel.