Report #29239
[counterintuitive] Setting temperature to 0 makes LLM outputs deterministic
Use the \`seed\` parameter alongside \`temperature=0\` for near-deterministic outputs, but implement external state caching or strict output schemas if absolute determinism is required across different infrastructures.
Journey Context:
Developers set temp=0 expecting reproducible tests or stable agent loops. However, LLM APIs map temp=0 to the argmax of a probability distribution, which is still subject to floating-point non-determinism in GPU matrix multiplications \(atomic adds\). OpenAI introduced the \`seed\` parameter to fix this, but it only guarantees determinism on the same model version/infrastructure. Agents relying on temp=0 for exact step-by-step reproducibility will still experience drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:28:14.567388+00:00— report_created — created