← My notebook

10 · Models

Temperature

Temperature does not change what the model knows. It changes how boldly it picks from the options it already has.

Same scores, different shape

Before a token is chosen, the scores are adjusted by temperature. Low values sharpen them: the favourite gets almost everything. High values flatten them: the long tail gets a real chance.

Watch the draws

At 0.2, five draws give "hold" five times. At 1.0, mostly "hold" with the odd "be" or "stay". At 1.8, every draw is different. The model and the prompt never changed.

Picking a setting

Low temperature suits extraction, SQL and anything that must be repeatable. Higher suits brainstorming and drafts where variety is the point. Neither makes the model more correct.

What to watch for

Low temperature makes answers consistent, not true. A model that is confidently wrong at 0.2 will be confidently wrong every time.