Learn how to serve AI models
How large language models answer requests, and how to make that fast and cheap: tokens, prefill and decode, the KV cache, batching, PagedAttention, quantization, FlashAttention, speculative decoding, multi-GPU serving and running it in production. For developers moving from calling an AI API to serving models themselves.
Free, about three minutes a lesson, 28 units. On Android (Google Play) and the web.
Download the app and have a better experience.
What you will learn
Foundations
Know what happens between a prompt and an answer, and get a model running.
Generation
Follow one request through prefill and decode, and count its memory.
Measuring speed
Measure latency and throughput the right way, and find the breaking point.
Serving engines
Know how an engine serves many users at once on one GPU.
Making one GPU fast
Know what limits a GPU, and trade precision for speed safely.
Runtime and kernels
Find where time goes, and know the tricks fast engines use.
Many GPUs
Split a model across GPUs and pick the split that fits the traffic.
Production
Run inference for real users, reliably and at a known cost.
Putting it together
Plan a whole deployment, from model choice to monitoring.
How it works
- A short idea first, then quick questions: tap an answer, order lines, sort, match or find the bug.
- Wrong answers come back at the end until they stick.
- Streaks, XP, leagues and races with friends keep the habit going.
- Spaced review brings back what you are about to forget.