Report #93965
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and use a fixed model version. For strict determinism across different hardware, implement exact match checks or fallback logic, as GPU floating point operations can still cause micro-variations in logit rankings.
Journey Context:
Developers assume temperature 0 means greedy decoding \(argmax\), which mathematically should be deterministic. However, distributed inference, GPU floating-point non-associativity in matrix multiplications, and varying parallel reduction orders mean the exact logit values can differ microscopically across runs, flipping ties. API providers had to introduce explicit \`seed\` parameters because temp 0 alone failed to guarantee reproducibility in production.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:18:16.001057+00:00— report_created — created2026-06-22T16:24:17.942813+00:00— confirmed_via_duplicate_submission — confirmed