Inference core: KV cache, metrics, batching, scheduling and decoding
31 lessons in 6 modules, from “Prefill vs decode” to “An LLM request's lifecycle, end to end”. 3 lessons are in the free sampler.
Log in to track your progress as you finish lessons.
KV-cache management end to end
3 free · rest Pro10 lessons- 29.01Prefill vs decodeOpen ▸
- 29.02Why the KV cache existsOpen ▸
- 29.03KV-cache memory mathOpen ▸
- 29.04KV-cache allocation and fragmentationPro
- 29.05Paged attention and block tablesPro
- 29.06Prefix sharing and copy-on-writePro
- 29.07Prefix cachingPro
- 29.08KV-cache offloadingPro
- 29.09KV-cache compression and evictionPro
- 29.C1KV-cache management end to end · capstonePro
The other 7 lessons are Pro. The first 3 are in the free sampler. Every Pro lesson has a stage 1 preview.
Start freeSee Pro
Batching compared on one arrival trace
Pro6 lessonsM02 is a Pro module. 6 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 29.10TTFT, TPOT and ITLPro
- 29.11Throughput vs latencyPro
- 29.12Percentiles and tail latencyPro
- 29.13Static vs dynamic batchingPro
- 29.14Continuous batchingPro
- 29.C2Batching compared on one arrival trace · capstonePro
A scheduler under load
Pro5 lessonsM03 is a Pro module. 5 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 29.15FCFS, priority and fairnessPro
- 29.16Token budgets and admission controlPro
- 29.17Preemption: swap vs recomputePro
- 29.18Chunked prefillPro
- 29.C3A scheduler under load · capstonePro
Decoding strategies on one prompt
Pro7 lessonsM04 is a Pro module. 7 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 29.19Greedy decoding and temperaturePro
- 29.20Top-k, top-p and min-pPro
- 29.21Repetition, frequency and presence penaltiesPro
- 29.22Beam searchPro
- 29.23Stop sequences, EOS and log probabilitiesPro
- 29.24Sampling on the GPUPro
- 29.C4Decoding strategies on one prompt · capstonePro
Serving a 128K-token prompt
Pro2 lessonsM05 is a Pro module. 2 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 29.25Lost in the middlePro
- 29.C5Serving a 128K-token prompt · capstonePro
An LLM request's lifecycle, end to end
Pro1 lessonsM06 is a Pro module. 1 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 29.C6An LLM request's lifecycle, end to end · capstonePro