use case · wild
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.
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.