The strongest case for temperature zero is simple: remove sampling and eliminate one source of variation. That is useful. The mistake is promoting one setting into a claim about an entire deployment.
Why is the prompt only part of the input?
Thinking Machines Lab describes practical LLM inference that can vary even when sampling is theoretically deterministic at temperature zero. Its introduction separates the sampling setting from the computation used to produce the result. Read the introduction.
PyTorch’s reproducibility guidance makes another boundary explicit: identical seeds do not guarantee agreement across CPU and GPU, releases or platforms. These are limits of the stated guarantee, not a claim that every pair of runs must differ. Read PyTorch’s guidance.
What should you record?
Our recommended evaluation record includes the complete request and conversation, system instructions, model identifier, generation settings, supplied evidence, software versions and the execution environment you control. For a hosted service, identify conditions the provider does not expose; keep those as limitations of your test.
For an agent, also record tool results and initial workflow state. Decide before testing whether the target is identical text, structured values, decisions or actions. Do not silently replace an exact-match requirement with “similar meaning.”
What does temperature zero establish?
It describes a sampling configuration; it is not, by itself, evidence of end-to-end reproducibility. The Thinking Machines introduction explicitly distinguishes that theoretical sampling behavior from practical inference. Source.
Do not use a seed or temperature setting as a substitute for a scoped deployment claim. PyTorch recommends controls within a specific platform, device and release and notes that deterministic operations may be slower. That trade-off should be evaluated on the intended workload. Source.
How should you test a deployment?
Run fresh executions from the same declared starting conditions. Compare the chosen result exactly; store differences and configuration records. Keep tests after model or environment changes in a separate group because they examine a broader claim.
As a suggested exercise, repeat a small set of representative prompts several times and inspect the raw results. Choose the number of runs according to the decision you need to support; this guide sets no certification threshold.
What should the report conclude?
Report “all observed outputs matched under these conditions” when that is what the experiment shows. A finite test does not examine every possible input. If outputs differ, inspect whether the declared inputs or hidden conditions changed before attributing the mechanism.
See how to test determinism for a complete record format, and what deterministic AI means for the distinction between inference and business execution.
Why can changing the batch change one request’s result?
Thinking Machines Lab distinguishes run-to-run determinism from batch invariance. A computation can repeat for the same complete batch while producing a different result for one request when that request is processed in a differently sized batch. Its article connects this to numerical reduction choices and describes batch-invariant kernels as a way to address the problem. This is a claim about the implementations examined, not evidence that every provider varies or that every GPU computation is random. Technical explanation.
The practical question is what the user controls. A hosted request may not expose the other requests processed alongside it, the scheduling policy or the selected backend. Calling the prompt identical leaves those conditions unspecified. PyTorch separately warns that matching seeds do not guarantee the same results across releases, devices and platforms. Reproducibility guidance.
What would a useful batch test record?
Use this proposed three-part plan. It is a plan to adapt, with no live model results supplied:
| Comparison | Keep fixed | What it examines |
|---|---|---|
| Repeat one declared batch | Requests, order, versions, configuration | Same-batch repeatability |
| Change batch composition | Target request and controlled environment | Invariance to companion requests |
| Change the environment | Test cases and comparison rule | A broader portability claim |
Record the target request, batch composition and size when available, model/tokenizer versions, numerical precision, serving configuration, device/software versions, run IDs and raw outputs. If the service does not expose a condition, mark it unknown. Do not infer the batch scheduler from an output difference alone.
Choose the equality rule before running the test. Exact text, token sequences, structured decisions and downstream effects are different targets. Count failures, timeouts and missing outputs separately from completed matches. Run each comparison from a fresh declared starting state; replaying a stored response supplies different evidence.
For the Deterministic AI Checklist, attach this plan to the boundary, inputs, version manifest, fresh-run and equality rows. Keep source correctness, permission and external actions as separate tests. If an implementation changes to address a mismatch, the correction review records what was retested and what remains unknown. A successful batch test supports its stated scope; it does not test whether a business rule is correct.
How do you keep a configuration change out of the baseline?
Use a separate comparison group whenever a condition covered by the claim changes. This proposed record is an unexecuted test plan:
| Group | Declared comparison | Result to retain |
|---|---|---|
| A — fixed environment | Same complete request, batch, model, software and backend | Every fresh output and exact differences from the chosen baseline |
| B — changed batch | Same target request and environment, changed companion requests or position | Differences for the target request; keep the batch manifest |
| C — changed backend | Same test cases, explicitly different backend or software release | A separate portability result; do not pool it with A |
Thinking Machines Lab explains how batch-dependent reduction choices can change results. PyTorch separately warns about release, platform and device boundaries. These sources support recording the distinction; they do not supply a pass result for your system.
Choose the baseline and equality rule before examining outcomes. Record attempts with missing outputs separately. If a hosted service hides the backend or batch, mark it unknown and narrow the conclusion to the observed service behavior. Do not assign a backend cause from output differences alone. Attach the groups to the Checklist’s input and version evidence, with the untested rows left visible.
Reading scope
On October 31, 2026, the full Thinking Machines article and current PyTorch reproducibility documentation were recovered and reread. The article’s own performance or model results are not reproduced here. The test plan is our editorial recommendation; no live inference, hardware comparison or provider certification was performed.
Does a warning mean determinism was enforced?
Read the exact configuration and outcome. In the PyTorch reproducibility documentation for version 2.15, reread November 11, the scaled-dot-product-attention section distinguishes warning-only mode from enforcement. It states that warn_only=True can leave fused backends on their default nondeterministic paths; enforcing the documented behavior uses warn_only=False. That is a specific software setting, not evidence that a whole agent workflow is deterministic.
There is another boundary within the same guidance: choosing a deterministic algorithm does not guarantee bitwise agreement across different attention backends. Thinking Machines Lab likewise distinguishes repeatability for fixed inputs from invariance when the batch changes. A test that keeps one backend and batch fixed cannot by itself establish agreement across a different backend or batch.
For a review, retain the library version, backend selection, enforcement settings, warnings and failures with the raw results. State whether the test compares fresh calls under fixed conditions or deliberately varies those conditions. An unsupported configuration should remain failed or untested; do not silently remove its run from the report. The freshness worksheet records what must be retested after a material environment change. This is a proposed procedure; no inference run was performed for this article update.
November 11 source maintenance: the stable PyTorch documentation resolved to version 2.15. The enforcement discussion now links that explicit version, so a future stable-release change does not silently redefine the cited setting. Thinking Machines Lab’s batch-invariance discussion was also reread. These source checks do not establish a test result for any deployment.
Frequently asked questions
Does temperature zero guarantee identical outputs across batch sizes?
The setting alone does not establish that guarantee. Specify and test batch invariance separately from repeatability for one fixed batch.
Does deterministic inference establish correct business decisions?
No. Compare the decision with the approved business rule and verify its inputs and action controls separately.
The source record
Read the original evidence and the scope of our review.
- Defeating Nondeterminism in LLM InferenceThinking Machines Lab · 2025-09-10 · Accessed 2026-11-11Full substantive article reread with fetch_page; numerical examples and performance results not independently reproduced.
- ReproducibilityPyTorch · 2026-05-14 · Accessed 2026-11-02Substantive primary guidance reread with fetch_page after read_page failed DNS. No model or hardware test executed.
- Reproducibility — PyTorch 2.15PyTorch · 2026-05-14 · Accessed 2026-11-11Stable URL resolved to explicit 2.15; full substantive documentation read with fetch_page, including SDPA backend table and enforcement settings. No runtime tested.