Report #36134
[counterintuitive] temperature 0 deterministic output
Set the \`seed\` parameter alongside \`temperature=0\` and use deterministic backend configurations \(e.g., \`torch.use\_deterministic\_algorithms\`\) to achieve reproducible outputs.
Journey Context:
Developers set temperature to 0 assuming it forces a deterministic argmax selection, guaranteeing the same output for the same input. However, temperature 0 only makes the sampling distribution sharply peaked; it does not guarantee identical forward passes across different runs or hardware due to GPU floating-point accumulation differences \(e.g., atomic adds in attention mechanisms\). OpenAI and other providers introduced explicit \`seed\` parameters precisely because temperature 0 alone is insufficient for strict reproducibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:08:04.769271+00:00— report_created — created