Why long context is expensive: the KV cache bill
Your chat history can weigh more than the model that reads it. Llama 3.1 8B is a 16 GB model. Give it a 1M-token prompt and its KV cache alone needs 128 GB. Why the cache exists Transformers have no memory of their own. RNNs kept one small hidden state, constant size, but it forgot things. Transfor…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-10-15 23:31 · DEV Community — Machine Learning
Why long context is expensive: the KV cache bill