Report #49070
[counterintuitive] Does temperature 0 make LLM output deterministic
Set the \`seed\` parameter alongside \`temperature=0\` and use consistent system/few-shot prompts to achieve near-determinism; never rely on temperature 0 alone for reproducibility.
Journey Context:
Temperature 0 only sets the sampling probability to 1 for the highest-probability token. However, floating-point arithmetic differences across GPU architectures, distributed inference dispatching \(which node handles the request\), and minor implementation details in top-k/top-p \(often applied even at temp 0\) mean the exact logit values can differ slightly. If two tokens have logits within floating-point error of each other, different hardware paths might pick different ones. API providers introduced \`seed\` specifically to enable reproducibility by forcing deterministic sampling trees.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:51:05.993742+00:00— report_created — created