KV Cache: Hidden Memory Tax of Long Context

Beyond computational cost, the Key-Value (KV) cache, which stores attention states, grows linearly with context length. This can consume massive GPU VRAM—for example, a 100,000-token context in a 70B parameter model can require 50 GB of VRAM per user—often necessitating expensive multi-GPU setups.

Sources

Open the full topic