llama.cpp bug: quantized KV cache allocates more memory than f16 on Metal

PM_ME_YOUR_ROSY_LIPS · reddit · 2026-12-05

A user upgrading llama.cpp for Qwen4 found that on an M3 Pro (36GB), q80/q40 quantized KV cache now balloons memory usage — using more than f16 cache, the opposite of the intent. The issue reproduces across Qwen3.5-9B and Gemma4-12B, pointing to a change in llama.cpp itself rather than any model. Filed as GitHub issue #33801, apparently involving Metal compute buffer allocation with quantized KV cache.

Original post →

More from Infra

Infra channel →