inference performance
KV Cache Size: Why 32k Context Runs Out of Memory
KV cache size grows linearly with context: 5 GiB at 32k tokens for Mistral NeMo 12B, measured. The n² attention matrix is not what fills a 12 GB card.
8 min read · Flavius Moldovan
