Skip to the document
Madhuopen lab
Outcome School · Inference and serving15 min read

by Amit Shekhar · 15 September 2026

How does Temperature control LLM output?

How Temperature controls LLM output, the single number that decides whether an AI model gives us a safe and predictable answer or a creative and surprising one. We will also see how an LLM picks one token at a time, how it gives a score to every possible next token, how those scores become probabilities, how Temperature quietly changes those probabilities before the pick happens, what happens at low, high, and zero Temperature, why it is called Temperature, and when to use which value based on our use case.

2,982 words#llm#ai#system-design4 recall cards

How does Temperature control LLM output?
Read on Outcome School ↗then come back to lock it in
Before you read, guess

How does an LLM generate text?

Ten seconds, a guess, then read — a wrong guess still makes the answer stick.

Before you go

In one sentence, what was this chapter about?

From memory, without scrolling up. Writing it is what makes it yours; the grade is only to show you what you had.

How sure?