Loading lesson…
Level 1 · Apprentice0 XP
Autoregressive sampling with temperature, top-k and top-p.
Step 1 / 6
ProblemAfter training, the model gives a probability for every possible next token. Turning that into text is a separate algorithm, and it changes the output a lot.
← → step
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Generate from the same prompt with temperatures 0.2, 0.8 and 1.5, and with top_k None, 50 and 5. Describe in one line each how the text changes. Then add top-p sampling.