← All models · SmolLM2-135M

use case · wild

Wild: the temperature playground

Same model, same prompt, two temperatures. The left panel runs greedy (always the most likely token — deterministic); the right runs hot (high temperature — the sampler reaches into the tail). Watch a tiny model go from careful to chaotic. Everything runs on-device via Transformers.js.

❄️ Greedy (temperature 0)

The deterministic output streams here.

🔥 Hot (temperature 1.30)

The sampled output streams here.

What temperature actually does

At every step the model outputs a probability over its whole vocabulary. Greedy takes the single most likely token every time — reproducible, but samey. Raising the temperature flattens that distribution so less-likely tokens get picked more often — more variety, but also more mistakes and drift. On a 135M model the effect is dramatic: greedy stays on-topic, hot wanders fast. Both runs here are real, on your device.

← Practical · SmolLM2-135M