All labs
AI ~4 minnext-token prediction, sampling, temperature

Why ChatGPT changes its next word

Finish “The cat sat on the ___.” If ChatGPT finished it twenty times, would it choose the same word every time?

AI · ~4 min · live model
Loading the lab…

Make a prediction, then push the model. What you discover is recorded here.

The idea behind this lab (open after you’ve tried it)

A language model gives every possible next word a probability and then samples. Temperature reshapes those odds: low makes it predictable, high makes it adventurous.

Go deeper than one lab.

A full quest builds the idea step by step, with checks and a new case to apply it to.

Start this quest

More labs