Note1 min read
Temperature doesn't change which token is most likely
Dividing logits by T keeps their ranking, so greedy decoding ignores temperature entirely.
Temperature scales every logit by the same factor . A positive scale never changes the order, so the arg-max token is the same at every temperature. Greedy decoding gives the same output whether you set to 0.2 or to 2.
Temperature only matters once you sample. Then it sets how much probability flows from the top token to the rest. That’s also why “temperature = 0” in most APIs is really “use greedy” rather than literally dividing by zero.
Try it in the temperature playground.