Google, IBM & Meta Certificates – 40% Off a Year
One Coursera Plus subscription covers most Professional Certificates on Coursera. 40% off a full year through Dec 2.
Unlock All Certificates
In LLM inference, moving data often takes longer than computing on it. This course covers how memory capacity, bandwidth, placement and data movement affect inference on different accelerator architectures.
You will use arithmetic intensity and the ridge point to explain why low-batch decode is often bandwidth-bound and how the KV cache changes that balance as context grows. You will compare prefill and decode across multiple accelerator designs and study how data placement differs between hardware-managed caches and compiler-managed local memories.
The course covers tiling, layout, alignment, software-managed scratchpads, and FlashAttention from a memory-systems perspective. The second half focuses on the KV cache: how to size it, how MHA and GQA change its footprint, and how serving systems manage it with continuous batching, PagedAttention, prefix caching, chunked prefill, speculative decoding, and tiered storage. You will also examine how these techniques change on a compiled-schedule architecture such as Spyre.
In the lab, you will measure decode time and memory use on a Colab GPU across batch sizes and context lengths, compare the results with analytical predictions, and explain the gap between the model and the measurement. A 22-question graded quiz at the end covers every module of the course.