Report #62662
[counterintuitive] temperature 0 gives deterministic LLM output
Use seeded sampling or exact reproducibility APIs \(like OpenAI's seed parameter\) and pin to specific model versions/hardware if strict determinism is required; do not rely on temperature 0 alone.
Journey Context:
Developers set temperature to 0 expecting bit-perfect identical outputs on repeated runs. However, GPU floating-point operations \(especially in attention mechanisms across distributed architectures like vLLM or TensorRT\) are non-associative, leading to minor numerical differences that cascade into different token selections. Furthermore, top-p or top-k defaults might still introduce sampling variations. Temperature 0 only removes the intentional randomness of the sampling distribution, not the systemic non-determinism of the hardware execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:39:39.298352+00:00— report_created — created