Report #90510
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and implement exact string matching checks; do not assume temp 0 guarantees identical outputs across runs.
Journey Context:
Developers assume temperature 0 means argmax \(greedy\) decoding, yielding the exact same string every time. However, GPU floating-point non-determinism \(reduced precision operations like Flash Attention\) and top-k/top-p sampling implementations mean even at temp 0, slight numerical differences compound into different token selections. OpenAI explicitly states temp 0 is not fully deterministic and introduced the \`seed\` parameter for reproducibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:30:57.561727+00:00— report_created — created