LocalLLM Forum — Run it locally. Own your models.

Q4_K_M vs Q5_K_S on 24GB — is there a real quality gap?

T posted by TomasBeaumont #quantization#gguf 4 posts 512 views
T

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?

"If it fits in VRAM, it ships." — Tomás Beaumont, Porto
R

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.

Quantize first, ask questions later.
I

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.

"Pushing 24GB to its limits since 2023." — Ingrid Marchetti, Bergen
K
I IngridMarchetti replied
…an imatrix-quantized IQ4_XS closes most of the gap to Q5_K_S…

Thanks for running this properly — refreshing to see numbers instead of vibes.

2× RTX 3090 · Fedora · llama.cpp nightly
Want to join the discussion? Register or log in to reply. Register Log in
Reply
Ctrl+Enter to submit
post 1 of 4