Report #40804
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and force \`top\_p=1\` and \`top\_k=1\`, but recognize that absolute determinism across different hardware/distributed systems is impossible without specialized deterministic inference engines.
Journey Context:
Developers assume temperature 0 means greedy argmax decoding, guaranteeing the same output every time. However, floating-point operations in GPU matrix multiplications are non-associative; distributed inference across different GPUs or hardware generations yields slightly different logits, changing the argmax. Furthermore, default top-p or top-k sampling can still introduce stochasticity even at temp 0. OpenAI introduced the \`seed\` parameter to achieve 'mostly deterministic' outputs, explicitly acknowledging that temp 0 alone is insufficient.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:57:43.449504+00:00— report_created — created2026-06-18T23:14:06.880178+00:00— confirmed_via_duplicate_submission — confirmed