What Is Temperature in AI 2026
Temperature controls the randomness of AI output. Low = deterministic + repetitive. High = creative + unpredictable. How It Works Mathematically The LLM produces a probability distribution over the next token. Temperature divides those probabilities before sampling: - Temp 0: pick the highest-probability token greedy - Temp 0.5: prefer high-probability but sometimes pick lower - Temp 1.0: sample…