Low temperature (0-0.3) narrows the distribution to the top tokens; deterministic, repeatable, repeatable evals. High temperature (0.7-1.2) broadens; diverse, creative, exploratory. Code generation, math, classification -> low temp. Brainstorm, fiction, ideation -> high temp.
temperature=0 + top_p=1 -> greedy; same input always returns same output.
temperature=0.7 + top_p=0.9 -> creative but coherent (default for chat).
Eval scripts MUST pin temperature to make runs comparable.
When SAMPLING: keep top_p small even at temperature>0; do not let the tail in.
task
deterministic -> T=0, p=0.1
creative -> T=0.7, p=0.9
eval scripts -> T=0 strictly
Low T for truth, high T for variety. Eval scripts always pin T=0.