Report #54758
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and use identical context/padding to achieve near-determinism; never rely on \`temperature=0\` alone for reproducibility.
Journey Context:
Temperature 0 sets the sampling distribution to always pick the highest probability token. However, GPU floating point non-determinism \(non-deterministic reduction algorithms\) and varying batch sizes/context padding across API calls mean the logit calculations themselves can vary infinitesimally, flipping the top token. OpenAI explicitly states temp 0 is not fully deterministic without the \`seed\` parameter.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:24:19.254309+00:00— report_created — created