AI lab

Next-token sampling

Adjust temperature, switch between greedy and sampled decoding, and watch each candidate token’s odds shift.

InteractivePredicting the next token
Loading interactive…

Try it: raise the temperature on the France prompt and watch ' Lyon', a fluent wrong answer, get a real chance of being drawn.

Learn the concept

The lesson this lab comes from, with the explanation, a practice task and a quiz.

More labs

All labs