Episode 7 of 22 · AI, end to end
Attention in production: KV cache, MQA, GQA and MLA

Included with a plan
This video is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
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), Batching: A Slot That Frees Early, Paged Attention: The Cache in Blocks, Speculative Decoding: The Bigram Drafts, the GPT Checks.
Saved in this browser, and to your account when you sign in.