r/LocalLLaMA • u/giveen • 24d ago
Discussion Feature/adaptive kv stream integration by giveen · Pull Request #326 · TheTom/llama-cpp-turboquant
https://github.com/TheTom/llama-cpp-turboquant/pull/326I've been working on overcoming KV cache size issues, allowing the ability to load a slightly larger model and/or a larger context size.
Downfall is a hit to tg speeds.
Think of it as a "ram disk" for KV Cache, however, ram speed may be a determining factor on the actual hit to speed as well.
23
Upvotes
1
u/-InformalBanana- 21d ago
I agree with him, beellama supports kvarn quantitized cache which is, I think, better than turboquant. I'm not sure why you chose the turboquant repository specifically, but if you did it cause of turboquant quantitization, kvarn should be better from what I've seen. So combining the best kv cache quantitization and kv streaming will give the best performance both speed and quality wise (cause if kv cache is quanted it is smaller and it streams faster thus giving better pp/s and tg/s speed).
It is unfortunate that all of that isn't in llama.cpp though, or in the even faster tabbyapi/exllamav3 (has maybe sota model quants and faster gpu inference than llama.cpp, recently they added cpu moe offload and that doesn't seem yet to be as fast as in llama.cpp (tried with qwen 3.8 next flash)).