Every active sequence keeps keys and values from earlier tokens so decode can attend to them without recomputing the whole prompt. This KV cache grows with the retained sequence length. A serving engine must place it, share it when safe, and reclaim it promptly. Attention Variants and Memory Efficiency calculated the cache required by different […]








