Report #66218
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and use consistent system configurations, but recognize that even with seeds, hardware-level floating point differences across distributed systems can cause minor variations. Do not rely on \`temp=0\` alone for strict reproducibility.
Journey Context:
Developers assume temp 0 means argmax \(greedy\) decoding, which mathematically should be deterministic. However, GPU floating point non-determinism \(e.g., atomic adds in attention mechanisms\) and distributed inference routing mean the exact same forward pass can yield different floating point results, flipping the argmax tie-breaker. OpenAI introduced the \`seed\` parameter specifically to address this, but it only guarantees best-effort determinism, not absolute guarantees across different model versions or hardware clusters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:37:29.878929+00:00— report_created — created2026-06-20T17:55:45.273877+00:00— confirmed_via_duplicate_submission — confirmed