Whenever you're ready, walk me through how you'd approach this.
What is the KV-cache, why is it critical for optimizing LLM generation speed, and how does PagedAttention solve KV-cache fragmentation on AMD GPUs?
Explain the cache lifecycle during prefill and autoregressive decoding, its memory layout and scaling pressure, and how PagedAttention enables efficient continuous batching. Include the practical trade-offs and distinguish GPU memory fragmentation from attention-computation cost.
Scope: transformer inference using ROCm-compatible systems such as vLLM on AMD GPUs.