179 questions
No questions match those filters.
← All questions
Inference & ServingHard· KV Cache· Memory Management· Paged Attention
How does KV cache size constrain maximum batch size at...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe KV cache for B sequences of length T occupies significant VRAM, often exhausting capacity before the GPU’s compute capability is fully utilized. Paged attention addresses this by storing KV blocks in non-contiguous VRAM pages, similar to virtual memory. This approach enables fine-grained memory sharing, such as prefix caching, and eliminates memory fragmentation caused by variable-length sequences.