Educational demo · not a real model
Temperature sampling
Temperature reshapes next-token probability mass before sampling. This demo is illustrative only — it does not call a language model.
Interactive illustration
Toy logits for four candidate tokens — probabilities after softmax with temperature.
How to read this
- Temperature near 0 makes the highest-logit token dominate (more deterministic).
- Temperature near 1 is a common default for many chat products.
- Temperature above 1 flattens the distribution (more variety, more risk of odd tokens).
- Products also use top-k / top-p; temperature is only one control.