Q4_K_M vs Q5_K_M vs Q8: which quantization should you use?
Short answer: use Q4_K_M by default, move up to Q5_K_M/Q6_K if the model still fits with room to spare, and use Q8_0 only when you have lots of memory. Each step up costs roughly 15–75% more memory.
What the names mean
| Format | Bits per weight (approx.) | In practice |
|---|---|---|
| BF16 / FP16 | 16 | Full precision, as published. Best quality, biggest. |
| Q8_0 | 8.5 | 8-bit. Practically the same quality as full precision. |
| Q6_K | 6.6 | 6-bit. Very close to full quality. |
| Q5_K_M | 5.7 | 5-bit. Small quality loss, good balance. |
| Q4_K_M | 4.85 | 4-bit. The usual default for running at home; noticeable but small loss. |
These are GGUF formats used by llama.cpp, Ollama and LM Studio. "K" formats (like Q4_K_M) are the modern variants; the letter at the end (S, M, L) means small, medium or large and trades a little size for quality.
How much memory each format needs
| Model | Q4_K_M | Q5_K_M | Q6_K | Q8_0 | BF16 |
|---|---|---|---|---|---|
| Qwen3.5 9B | ≈6.9 GB | ≈8.1 GB | ≈9.3 GB | ≈12 GB | ≈22 GB |
| Gemma 4 12B | ≈9.0 GB | ≈10 GB | ≈12 GB | ≈15 GB | ≈27 GB |
| Ministral 3 14B | ≈10 GB | ≈12 GB | ≈14 GB | ≈17 GB | ≈32 GB |
| Qwen3.8 27B | ≈20 GB | ≈23 GB | ≈26 GB | ≈33 GB | ≈62 GB |
| Qwen3.6 35B-A3B | ≈25 GB | ≈29 GB | ≈34 GB | ≈43 GB | ≈80 GB |
How to choose
- Start with Q4_K_M. It is the default most apps download and the usual balance of size and quality.
- Q5_K_M or Q6_K if the model still fits with room left for your conversation: a bit closer to the original.
- Q8_0 when you have plenty of memory: practically the same quality as full precision at about half the size.
- BF16/FP16 mainly for fine-tuning or reference tests; it needs about twice the memory of Q8.
- A bigger model at Q4 is usually a better choice than a smaller model at Q8, if both fit.
Some models are released directly in 4-bit form (for example gpt-oss uses MXFP4); then the official 4-bit file is the one to use.
Questions
Is Q4_K_M good enough?
For chat, writing and most coding it is the common default; the quality loss compared with the original is small. If the model fits at Q5_K_M or Q6_K, those are a little closer to the original.
How much bigger is Q8 than Q4?
About 1.75 times: Q8_0 stores roughly 8.5 bits per weight and Q4_K_M about 4.85.
Bigger model at Q4 or smaller model at Q8?
If both fit, the bigger model at Q4 usually gives better answers than the smaller one at Q8.
Memory figures are our estimates (parameters × bits ÷ 8, plus overhead and an 8K-token cache; method). Facts about apps come from their official documentation, checked November 30, 2026.
More local-AI guides
- Ollama vs LM Studio vs llama.cpp
- How much VRAM do I need to run an LLM?
- How to run local LLMs on an AMD GPU (Windows and Linux)
- Best local LLM for coding, by how much memory you have
- How to run an LLM on a laptop without a graphics card
- Mac or NVIDIA graphics card for local AI?
Which LLM runs on my GPU, Mac or laptop? · All open-source models