Quantization explained: Q4_K_M vs Q5 vs Q8 for local models
Updated December 2, 2026. Tables on this page are calculated with the same formulas as the Will it run? tool.
Open models are published in 16-bit precision. Quantization stores the weights with fewer bits, so the file is smaller and needs less memory. A Q4 model is roughly a quarter the size of the 16-bit original. Generation also gets faster, because the GPU reads fewer bytes for every token it produces.
The catch is quality. Down to about 4 bits the loss is small for most chat and coding use. Below that it becomes noticeable, especially on smaller models.
What the names mean
The names come from llama.cpp's GGUF format, which LM Studio, Ollama and most local apps use. If you're choosing a runtime, see Ollama vs LM Studio vs llama.cpp.
- The number is the rough bits per weight: Q8 ≈ 8 bits, Q4 ≈ 4 bits.
- _K means a "k-quant": weights are grouped in blocks with their own scales, which keeps more quality per bit than the older formats.
- _S / _M / _L (small, medium, large) say how many of the sensitive tensors are kept at higher precision. _M is the usual choice.
- Q8_0 is a simple 8-bit format that is very close to the original.
Because some tensors stay at higher precision, the real average is a bit above the name. We use these effective bits per weight:
| Quant | Effective bits/weight | Quality |
|---|---|---|
| FP16 | 16 | unquantized |
| Q8_0 | 8.5 | near-lossless |
| Q6_K | 6.56 | very close to full quality |
| Q5_K_M | 5.69 | small quality loss |
| Q4_K_M | 4.85 | the usual sweet spot |
| Q3_K_M | 3.91 | noticeable quality loss |
Weight file size by quant
Weights only. Add the KV cache and about 1 GB of runtime buffers to get the memory needed.
| Quant | Llama 3.1 8B | Qwen3 14B | Qwen3 32B | Llama 3.3 70B |
|---|---|---|---|---|
| FP16 | 15.0 GB | 27.5 GB | 61.0 GB | 131 GB |
| Q8_0 | 7.9 GB | 14.6 GB | 32.4 GB | 69.8 GB |
| Q6_K | 6.1 GB | 11.3 GB | 25.0 GB | 53.9 GB |
| Q5_K_M | 5.3 GB | 9.8 GB | 21.7 GB | 46.7 GB |
| Q4_K_M | 4.5 GB | 8.3 GB | 18.5 GB | 39.8 GB |
| Q3_K_M | 3.7 GB | 6.7 GB | 14.9 GB | 32.1 GB |
- FP16unquantized15.0 GB
- Q8_0near-lossless7.9 GB
- Q6_Kvery close to full quality6.1 GB
- Q5_K_Msmall quality loss5.3 GB
- Q4_K_Mthe usual sweet spot4.5 GB
- Q3_K_Mnoticeable quality loss3.7 GB
Q4_K_M, the usual default, is highlighted.
Which one should you download?
- Q4_K_M is the default for a reason: the biggest memory saving before quality falls off. Start here.
- Q5_K_M or Q6_K if the model fits with room to spare. You get a little more quality, at a little less speed.
- Q8_0 for small models (under ~8B) when you have the memory. Small models lose more from heavy quantization.
- Q3_K_M only when it's the difference between fitting on the GPU and not. Expect weaker answers.

Our tool follows this order: Q8_0 down to Q4_K_M if it fits on the GPU, then Q4_K_M with partial offload, then Q3_K_M.
Official low-bit formats
Some models are released already quantized. OpenAI's gpt-oss-20b and gpt-oss-120b ship their expert weights in MXFP4, a 4-bit format, so the official download is the one to run. DeepSeek R1 is published in FP8. For those we use the official file size instead of a formula. Our DeepSeek local guide covers which of those files actually fit a home GPU.
We don't publish quality scores per quant. Perplexity and benchmark results depend on the model and the test, and we'd rather not invent them. Once our own test rig is running, measured results will appear on model pages.