LocalLLM Forum — Run it locally. Own your models.

KV cache quantisation in llama.cpp — the quality loss is smaller than I expected

Y posted by YvetteNovak 2 posts 467 views
Y

I'd been avoiding --cache-type-k q8_0 --cache-type-v q8_0 out of vague quality anxiety, so I finally tested it properly: 20 long-document Q&A tasks, 32k context, Qwen3 14B, scoring answers against the fp16-cache baseline.

Result: q8_0 KV cache scored within noise of the baseline (19/20 identical or trivially different answers) and cut cache memory by 45%, which bought me 32k → 56k context on the same card.

q4_0 was a different story — retrieval questions over long documents started missing details around the 40k mark. Fine for chat, risky for needle-in-haystack work.

M2 Ultra 192GB — everything runs at home.
I

This matches the RULER-style evals people ran during Benchmark Day: q8_0 KV is effectively free, q4_0 shows up in retrieval first. Adding your thread to the context-length wiki page — the 45% figure is exactly what people ask for there.

"Pushing 24GB to its limits since 2023." — Ingrid Marchetti, Bergen
Want to join the discussion? Register or log in to reply. Register Log in
Reply
Ctrl+Enter to submit
post 1 of 2