← Back to Labs
KV Cache & FlashAttention Optimization
Step through memory bandwidth bottlenecks, KV cache VRAM footprint, vLLM PagedAttention virtual paging, and FlashAttention SRAM tiling
STEP 1 OF 6
Autoregressive Token Generation Bottleneck
LLM token generation is strictly memory-bandwidth bound. For every single token generated, the model must stream all weight tensors (e.g. 16 GB for an 8B FP16 model) from GPU HBM into fast SRAM.
Arrow keys to navigate · R to reset
Tap dots to jump to any step