Q4_K_M vs Q5_K_S on 24GB — is there a real quality gap?
I keep reading conflicting takes, so I decided to measure instead of argue. Setup:
- Model: Qwen2.5 72B, Q4_K_M (41.9GB) vs Q5_K_S (46.2GB)
- Hardware: 2× RTX 3090 (48GB total VRAM)
- Runtime: llama.cpp server, flash attention on, KV cache q8_0
- Test: 200 prompts — 100 creative writing, 50 code, 50 reasoning
Question for the hive mind: is the ~4GB price tag of Q5_K_S actually buying anything noticeable?
Blind-tested both outputs on your creative set — here's the preference tally from 5 of us in the quant-testing channel:
segment Q4_K_M wins Q5_K_S wins tie
creative (100) 31 35 34
code (50) 9 27 14
reasoning (50) 11 24 15
So for chat and prose: effectively a coin flip. For code and reasoning: Q5_K_S is clearly ahead. If you do both, the 4GB is worth it.
This matches what I've seen. The rule of thumb I give people:
Quantization damage shows up first in long-chain reasoning, rare languages and code — precisely the tasks where the attention heads are most sensitive. Casual conversation sits in the flat part of the curve.
If you're memory-constrained, an imatrix-quantized IQ4_XS closes most of the gap to Q5_K_S at a smaller footprint. If you have the headroom, Q6_K for coding work is the sweet spot before you hit diminishing returns.