r/LocalLLaMA • u/PM_ME_YOUR_ROSY_LIPS • 7h ago
Question | Help Llama.cpp compute buffer allocation issue
I recently updated llama.cpp for using qwen4. This is on an M3 Pro mac with 36GB memory, earlier I was able to run qwen3.5 0.8B Q8 at full context with q8_0 K and V cache.
However, now when using q8_0 or q4_0 KV Cache, the memory usage has ballooned, f16 cache uses lesser memory than the quantized ones. I tested qwen3.5 9B, gemma4 12B and they too had this weird issue, so it's not the models but some change in llama.cpp itself.
I have created an issue for this, are any of you experiencing this bug?
5
Upvotes
2
u/Mithrandir_First_Age 5h ago
I can try to repro this later today on an M4 Mac mini 16 GB and an M5 Max 128 GB. What build are you on, and does it still happen with -fa on and -ub 512? My guess is the compute buffer sizing changed, since a q8_0 cache shouldn't need more than f16. Worth adding your full command to the GitHub issue too. Tell me :)
1
u/PM_ME_YOUR_ROSY_LIPS 7h ago edited 7h ago
The logs.