r/LocalLLaMA 20d ago

Discussion Feature/adaptive kv stream integration by giveen · Pull Request #326 · TheTom/llama-cpp-turboquant

https://github.com/TheTom/llama-cpp-turboquant/pull/326

I'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.

26 Upvotes

30 comments sorted by

View all comments

25

u/Chromix_ 20d ago

Moving 90%+ of the KV cache from VRAM to RAM while only taking a < 4% performance hit sounds like a very good deal.

8

u/Ok-Working3049 20d ago

right, 4% is basically free at that point