Report #52446
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and enforce a single GPU setup if absolute determinism is required; do not rely on temperature 0 alone.
Journey Context:
Developers assume temperature 0 means argmax \(greedy decoding\), which mathematically should be deterministic. However, GPU floating-point operations \(especially attention matrix multiplications across multiple devices\) are non-associative, leading to different sums. Furthermore, some API implementations map temp 0 to a very small epsilon to avoid division by zero in sampling math. OpenAI introduced the \`seed\` parameter specifically because temperature 0 was not producing deterministic outputs across distributed infrastructures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:31:26.686465+00:00— report_created — created