What is the KV cache, and why does it eat GPU memory?
The KV cache stores keys and values for every token an LLM has read. Per-token math for real models, what happens when it fills, and how to shrink it.
The KV cache stores keys and values for every token an LLM has read. Per-token math for real models, what happens when it fills, and how to shrink it.