Report #73690
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and expect minor variations anyway; do not rely on temperature 0 alone for exact reproducibility in critical logic or testing.
Journey Context:
Developers assume temperature 0 means argmax \(greedy decoding\) and thus perfectly deterministic outputs. However, GPU floating-point non-determinism \(e.g., in attention mechanisms or softmax over large vocabularies where probabilities are nearly identical\) and framework-level sampling implementations mean temperature 0 still yields different outputs across runs. Providers like OpenAI had to introduce a \`seed\` parameter to address this, but even then, they only guarantee best-effort determinism, noting that fully identical outputs require identical system configurations due to hardware-level floating point accumulation differences.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:17:14.961394+00:00— report_created — created