Q4 vs Q5 vs Q8 Quantization: Which GGUF Should You Use?
Compare GGUF quantisation levels: file size, VRAM, speed and quality loss for Q4_K_M, Q5_K_M, Q6_K and Q8_0, and when a bigger model at Q4 wins.
| Quant | Approx. bits per weight | Quality vs FP16 | Use when |
|---|---|---|---|
| Q8_0 | ~8.5 | Near-lossless | Plenty of memory |
| Q6_K | ~6.6 | Very close | Quality matters, memory allows |
| Q5_K_M | ~5.7 | Close | Balanced choice |
| Q4_K_M | ~4.85 | Small loss | Default for most users |
| Q3_K_M / IQ3 | ~3.5-3.9 | Noticeable loss | Squeezing a bigger model in |
| Q2_K / IQ2 | ~2.5-3.4 | Large loss | Last resort |
Every GGUF repository offers a menu of quants. Here is how to choose.
Bits and size
A model’s file size is roughly parameters x bits per weight / 8. An 8B model at Q4_K_M is about 4.9 GB; at Q8_0 about 8.5 GB. See quantization.
Quality
Loss is small down to about 5 bits, still modest at 4, and grows quickly below. Imatrix quants help at low bit widths.
The bigger-model rule
A larger model at Q4 usually beats a smaller one at Q8 at similar memory. Check with the LLM VRAM calculator.
Leave room for context
Weights plus the KV cache must fit. Long contexts may push you down a quant level.
Sensitive tasks
Code and maths are more sensitive; prefer Q5 and above.
Full guidance in which GGUF quant to download.
Common questions
Is Q4 good enough?
For most chat and writing, Q4_K_M is very close to full quality. Coding and maths can be more sensitive.
Should I run 14B at Q4 or 8B at Q8?
Usually 14B at Q4. Larger models degrade gracefully under quantisation.
What are IQ quants?
llama.cpp quant types designed for low bit widths, often combined with an importance matrix for better quality at small sizes.
Keep comparing
GGUF vs Safetensors: Model File Formats Explained
ComparisonAbliterated vs Fine-Tuned Uncensored Models: Which Is Better?
GuideWhich GGUF Quant Should I Download? A Decision Guide
GuideWhat Is a Token in AI? Tokens, Words and Context Explained
Terms on this page: Imatrix, Parameter count, Quantization