Report #67528
[counterintuitive] Does setting temperature to 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and pin the model version if strict determinism is required, but still implement application-level tolerance for minor floating-point variances across distributed hardware.
Journey Context:
Developers assume temperature=0 means greedy decoding, which mathematically should be deterministic. However, GPU floating-point accumulation across different nodes in a distributed inference cluster and framework-level optimizations mean the exact logit scores can vary slightly, altering the selected token. Providers introduced explicit \`seed\` parameters to force deterministic caching, but even then, it only guarantees identical output for the exact same model weight deployment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T19:49:46.173266+00:00— report_created — created