LLM Studio · how to run every open model, correctly Vol 01 · No 01 · 2026
Index/LLM Studio/Meta/Llama 4 Maverick/MLX · MLX 4-bit
MLX · MLX 4-bit · Apple Silicon only · M1 and later

Llama 4 Maverick on MLX at MLX 4-bit

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.

At a glance The numbers

Model
Meta Llama 4 Maverick
Family
Llama
Params
400B / 17B
License
Llama 4 Community
Engine
MLX
Quantization
MLX 4-bit
Bytes per param
0.55
Platform
Apple Silicon only · M1 and later

The command Copy and run

What MLX expects you to type to serve Llama 4 Maverick at MLX 4-bit. Adjust the paths for your filesystem; the structure holds.

pip install mlx-lm

mlx_lm.generate \
  --model mlx-community/llama-4-maverick-4bit \
  --max-tokens 1024 \
  --prompt "Hello"

Why this quant The trade-off

MLX 4-bit — Apple-native 4-bit. Best price/performance on M-series.

Expect to need around 225 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 4× H100 — 320 GB — Half an 8-way HGX node.

Common failures What breaks, and the fix

Model not in mlx-community
Convert yourself with `mlx_lm.convert --hf-path ... --quantize`.
Swap thrashing
Model exceeds unified memory; try a smaller quant or a smaller model.
Slow first run
First invocation compiles Metal kernels; subsequent runs are fast.

Alternatives Other ways to run this model

About the model

First Llama MoE; 128 experts, native multimodal.

Open the full model page →