Skip to content

Temperature

Move the slider and watch the next-word odds change.

What this lab shows

For each word, the AI calculates the chance of every possible continuation and draws one. Temperature changes that draw: low, it almost always picks the most likely word; high, it risks unusual words.

The chances in this example were built to show the idea. They are not output from a real model.

How to use it

  1. Drag the temperature control from 0 to 2.
  2. Watch the chance bars change.
  3. Draw 20 times at different temperatures and compare the results.
LabTemperatureTry it

Illustrative data Example values to show the idea. Not output from a real model.

SentenceI looked out the window and the sky was ___

Chance of each next word (Temperature 1.0)

  • blue36.3%
  • cloudy24.3%
  • clear14.8%
  • gray12.1%
  • starry5.4%
  • beautiful4.4%
  • orange2.2%
  • green0.4%
What to notice: At 0 the same word always comes out. Close to 2, the chances become almost equal and words that make no sense show up.
Understand the conceptTemperature: Why the Same Question Gets Different Answers

Books that use this lab