L3 Advanced · Module 11: Decoding and sampling

11.1Greedy, top-k, top-p and min-p

How the next token is chosen, and how to choose several at once.

Runs on a CPU or in the browser✦ Interactive

Sources for this module

Finished chapters so far: all of Level 1 (Modules 0–3), Module 4: CUDA fundamentals, Module 5: parallel patterns, Module 6: GEMM and memory optimization, Module 7: profiling and 9.1 How big is the KV cache?