AI AdventureAICreate with AIDay 3
🌡️ Create with AI · Day 3

The Weirdness Dial

A generator rolls dice for the next word. Today you grab the dial that decides how loaded those dice are. Low = safe and boring. High = wild and surprising. Crank it too far and it melts into gibberish. Same model — totally different vibe.

↓ grab the dial
🌡️ Lab · The Odds Dial

Turn the dial. Watch the odds change.

The AI is about to pick the next word after "The dragon breathed…". Each bar is how likely a word is. Drag the temperature dial: low makes the top bar tower over everything (it always picks the favourite), high flattens the bars so anything can win. Hit Sample to actually roll it!

0.80

temperature

press Sample to roll a word 🎲
rolls: 0

The dial reshapes every probability with p(1/T), then re-balances them to add up to 100%. That's the real temperature math, running live. 🔢

🐞 Break-It · Freeze vs Boil

Too cold loops. Too hot melts.

Same word-picker, cranked to the edges. Freeze it (temperature near 0) and it gets stuck repeating its one favourite word — a boring loop. Boil it (temperature maxed) and it grabs random junk — pure nonsense. Tap both and read the line it writes.

tap a button to write a line…
See the pattern? ❄️ too cold = "fire fire fire fire" — safe but dead. 🔥 too hot = "banana quantum wobble ash" — surprising but broken. 😎 The pros live in the middle: interesting and makes sense.
🏷️ The pro wordsThat dial is temperature. Picking a word by rolling the reshaped odds is sampling; always taking the single top word instead is greedy decoding (that's temperature ≈ 0). Two more real dials trim the menu before rolling: top-k keeps only the k most likely words, and top-p (a.k.a. nucleus sampling) keeps just enough words to cover p% of the probability. Every AI text and image tool has these under the hood.
🔬 Real Model Lab

Turn the dial on a REAL model

The bars above were the mechanic. This is a real language model (SmolLM2) running 100% on your machine. Give it the same prompt, then generate at a low, medium, and high temperature — same model, three different personalities. This is the exact dial that lives inside ChatGPT.

not loaded

First load downloads the model from Hugging Face, then it's cached for offline use. On a 4GB laptop give it a minute. ☕

🎯 Boss · Match the Vibe

Guess the temperature from the vibe

Three lines, three temperatures. One is stuck in a boring loop, one is balanced, one is total chaos. For each line, tap the temperature that must have written it. Match all three to win the badge!

Matched: 0 / 3
🚀 Beyond the Basics

This dial is everywhere

Once you know temperature, you'll spot it hiding in every creative AI tool — sometimes under a friendlier name:

💬

Chatbots

APIs literally take a temperature number. Low for facts & code, higher for brainstorming and jokes.

🎨

Image tools

Dials like "creativity", "chaos", or guidance/CFG do the same job — how tightly it sticks to the safe choice.

🎚️

Pro combos

Real teams mix temperature + top-k + top-p together to shape the exact flavour they want.

🏷️ Pro names to look upThe trio is temperature, top-k, and top-p / nucleus sampling. Turning sampling fully off is greedy decoding — and remember Day 2: greedy + a fixed seed makes even a giant model perfectly repeatable.

🎉 Day 3 Complete!

You found the weirdness dial: temperature. Low is safe and can loop; high is wild and can melt into gibberish; the magic lives in the middle. You even turned it on a real model. Now you can tune any generator's personality on purpose.

Day 4 →
Tomorrow: you've been rolling words. Next we start rolling pixels — how AI turns pure static into a picture. 🌫️
AI Adventure · Create with AI · Day 3 — made for young inventors 🚀