Report #53516
[counterintuitive] temperature 0 deterministic output
Set the \`seed\` parameter alongside \`temperature=0\` and expect mostly deterministic output, but implement exact-match fallbacks as distributed GPU floating-point math can still cause rare divergences.
Journey Context:
Developers assume setting temperature to 0 forces the model to always pick the highest probability token \(argmax\), yielding deterministic outputs. However, LLM inference runs on GPUs where floating-point operations \(like matrix multiplications\) are not perfectly deterministic across different hardware threads or runs due to the accumulation order. Furthermore, without a seed, the sampling engine itself might start from a non-deterministic state. OpenAI had to introduce the \`seed\` parameter specifically because temp 0 was insufficient for reproducibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:19:27.916118+00:00— report_created — created