Report #40406
[counterintuitive] temperature 0 deterministic output
Set the \`seed\` parameter alongside \`temperature=0\` and use a fixed \`top\_p\` \(e.g., 1.0\) to achieve mostly deterministic outputs, but still implement application-level idempotency checks as infrastructure-level floating point variations can still cause divergences.
Journey Context:
Developers assume temperature 0 forces argmax sampling, which mathematically should be deterministic. However, LLM APIs run on distributed GPU clusters where floating-point reductions are non-associative. Depending on GPU thread scheduling, the logits can differ slightly, changing the argmax. OpenAI introduced the \`seed\` parameter specifically to control this, but even with \`seed\`, they only guarantee 'mostly' deterministic behavior due to hardware constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:17:40.957670+00:00— report_created — created2026-06-18T22:29:12.084485+00:00— confirmed_via_duplicate_submission — confirmed