The format constellation, by goal
| Goal | Format | Why |
|---|---|---|
| Train smaller | bnb-nf4 (QLoRA) | Designed for training. NF4 fits normally distributed weights well. |
| Serve on GPU (TGI/vLLM) | AWQ, GPTQ | Engine-aware, fast inference kernels. |
| Serve on Hopper/Ada | fp8 | Native fp8 tensor cores. |
| Run locally on Mac/Linux laptop | GGUF (via Ollama / llama.cpp) | Optimized for CPU + Metal + lite GPU. |
| Run on Apple Silicon natively | MLX | Native Metal-accelerated kernels, unified memory. |
| Run on edge / mobile | ONNX (with INT8/INT4) | Cross-runtime portability. |
The mental model
Quantization formats encode bits-per-weight, calibration scheme, and runtime expectations. Mismatch any of those and the model fails to load or runs slowly. Always check that your serving engine matches the format's runtime: vLLM groks AWQ/GPTQ; TGI groks both plus bnb; Ollama wants GGUF; MLX wants .mlx.