Episode 7 of 22 · AI, end to end
Attention in production: KV cache, MQA, GQA and MLA
Included with a plan
This video is included with a plan. The first three lessons of every track are free, with their boards and videos. A plan unlocks every lesson, board, video, lab and paper for one price.
Chapters
Attention in production: KV cache, MQA, GQA and MLA. Here is the thing that decides every design in this video. Training a language model and serving one are not the same problem. Training is bound by arithmetic. Serving is bound by
Based on the board Inference at Scale.
Related papers: The Bitter Lesson, Attention Is All You Need and Efficient Memory Management for Large Language Model Serving with PagedAttention.
Covered in Inference at Scale (why an LLM is fast, and cheap).
Saved in this browser only.