Ryz Labs/Glossary/LLM temperature
Glossary

What is temperature in an LLM?

Temperature is a sampling setting that controls how random a language model's output is: low values make answers more focused and repeatable, while high values make them more varied.

Definition: Temperature is a sampling setting that controls how random a language model's output is: low values make answers more focused and repeatable, while high values make them more varied.

How temperature works

At each step a model assigns probabilities to possible next tokens. Temperature rescales those probabilities before one is sampled. Near zero, the most likely token almost always wins; higher values flatten the distribution so less likely tokens are picked more often. It is often tuned alongside top-p, or nucleus sampling, which limits choices to the most probable tokens.

Choosing a value

Extraction, classification, code and structured output usually run at low temperature for consistency. Brainstorming, marketing drafts and varied phrasing benefit from higher settings. Even at zero, outputs are not always identical across runs or model versions, so tests should not rely on exact text matches.

How teams use it

Teams set temperature per task rather than globally, record it with every request for AI observability, and compare settings with LLM evals instead of guessing.

How Ryz helps

Ryz prompt engineers and LLM engineers tune model settings against real test sets in your stack, working on your team.

Related

Thanks — your message has been sent. We’ll get back to you soon.

Something went wrong while sending your message. Please try again or email info@ryzlabs.com.

Ryz Labs

Senior engineers on your team. AI pod teams that ship.

Tell us what you're building. You get a scoped plan, a price and the names of the people who would do the work.

  • Only the top 1% of tens of thousands interviewed make it
  • On US business hours, including New York hours
  • Trusted by Fortune 500 engineering teams

Tell us who you need

A Ryz partner replies with a scoped team plan.

Start a conversation →

Prefer to talk? Book a 15-min call →