Report #98035
[counterintuitive] Does setting temperature=0 guarantee deterministic LLM output?
No. Set a fixed seed, pin the model version, and validate on your provider and SDK. For true reproducibility, hash or cache outputs or use provider-specific deterministic modes.
Journey Context:
Developers often set temperature=0 and assume the output is deterministic. Temperature only scales the softmax distribution; at zero the model usually selects the highest-probability token, but the underlying logprobs can still vary across hardware, batching, model updates, and provider infrastructure. OpenAI explicitly notes that temperature controls randomness but does not by itself make outputs deterministic. If reproducibility matters, pin the model version, set a seed, check the system fingerprint, and for critical outputs hash or cache the result.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:07:22.797927+00:00— report_created — created