What quantization does
Models are trained with 16-bit (or higher) weights. Quantizing rounds them to fewer bits, usually in small groups that each keep their own scale, so most of the information survives. Roughly, a model needs:
| Model size | 16-bit | 8-bit | 4-bit |
|---|---|---|---|
| 8B | ~16 GB | ~9 GB | ~5 GB |
| 32B | ~64 GB | ~34 GB | ~18 GB |
| 70B | ~140 GB | ~74 GB | ~39 GB |
What Q4_K_M, Q8_0 and friends mean
- Q4, Q5, Q6, Q8: the number of bits per weight in GGUF files (used by llama.cpp, Ollama and LM Studio).
- _K: the “k-quant” method, which mixes precisions across layers. _M (medium) and _S (small) are size variants of it.
- Q8_0: a simple 8-bit format, close to the original quality and twice the size of 4-bit.
- MXFP4: a 4-bit floating-point format; gpt-oss ships with its expert weights in it.
- MLX 4-bit / 8-bit: MLX's own quantization;
mlx_lm.convertdefaults to 4 bits in groups of 64 (source).
4-bit vs 8-bit on a Mac: size and speed
| Model | Size | Mac mini M6 32GB | Mac mini M5 Pro 48GB |
|---|---|---|---|
| Llama 3.1 8B (Q4_K_M) | 4.9 GB | ~26.0 tok/s | ~47.0 tok/s |
| Llama 3.1 8B (Q8_0) | 8.5 GB | ~15.0 tok/s | ~27.1 tok/s |
| Qwen3 32B (Q4_K_M) | 20 GB | ~6.4 tok/s | ~11.5 tok/s |
| Qwen3 32B (Q8_0) | 35 GB | doesn't fit | ~6.6 tok/s |
On a Mac, the 8-bit version is roughly half as fast because each token reads twice the data, and it may not fit at all: Qwen3 32B at Q8_0 (35 GB) needs more than the ~28 GB a 32 GB Mac can give a model.
How to choose
- Start with 4-bit (Q4_K_M or MLX 4-bit). It's the common default and fits the most model per GB.
- A bigger model at 4-bit usually beats a smaller model at 8-bit in the same memory.
- Try 8-bit when you have spare memory and the 4-bit answers fall short on precise tasks.
- Avoid going below 4-bit unless a model won't fit otherwise; quality drops faster there.
For GGUF vs MLX formats, see GGUF vs MLX vs Ollama; to size a model with context, use the memory calculator.
FAQ
What is LLM quantization?
Q4_K_M or Q8_0: which should I use?
Does quantization make a model faster on a Mac?
See any model on the exact Mac you're considering.
Speeds come from published measurements (with source links) or labeled estimates. How we measure