← All 96 breakdowns
ZERO

Temperature zero isn't a promise: the breakdown

What's happening

Setting temperature to 0 tells the model to always pick its single most likely next token, so you'd expect the same prompt to give the same answer every time. It doesn't, and the cause isn't the model: it's the server.

  • Thinking Machines Lab (Horace He and colleagues, Sep 2025) sent "Tell me about Richard Feynman" to Qwen3-235B 1,000 times at temperature 0 and got 80 different completions (the most common appeared 78 times). All 1,000 were identical for the first 102 tokens, then split: 992 said "Queens, New York", 8 said "New York City".
  • Why: your request is batched with other people's. The batch size depends on how busy the server is, and the GPU kernels add numbers in a different order for different batch sizes. Floating-point addition isn't associative: in Python, (0.1 + 0.2) + 0.3 is 0.6000000000000001 but 0.1 + (0.2 + 0.3) is 0.6. When two candidate tokens are nearly tied, a rounding difference that small flips which one wins, and every token after it follows the new path.
  • Rice University, University of Minnesota and Adobe researchers (Yuan et al., NeurIPS 2025) measured the cost: in bfloat16 with greedy decoding, changing GPU type, GPU count or evaluation batch size moved a reasoning model's accuracy (DeepSeek-R1-Distill-Qwen-7B on AIME'24) by up to 9 % (standard deviation across 12 setups) and its answer length by up to 9,000 tokens. In FP32 the spread was 0.
  • A fixed random seed doesn't fix it (the seed only controls sampling, not the order of the arithmetic).
  • Batch-invariant kernels do: with them, Thinking Machines got 1,000 identical completions, at a cost: their speed test went from 26 s to 42 s (about 60 % slower).

What to do (save this)

  1. Run each eval a few times and report the spread (mean and error bars), not one lucky run.
  2. Use FP32 for single greedy runs if you can afford the memory (the Rice team's advice; their LayerCast keeps 16-bit weights but computes in FP32).
  3. Check meaning, not exact text: assert on the parsed answer, a schema, or a grader, not a string match.

Make your evals repeatable, step by step

  1. Pin what you control: model version (a dated snapshot, not "latest"), system prompt, temperature, max tokens, tool definitions. Log them with every result.
  2. Run N times (3-5 for a smoke test, more for a benchmark): report mean, min, max. A change smaller than that spread isn't a change.
  3. Grade on structure: extract the answer (JSON schema, regex on the final line, or an LLM grader with a rubric) and compare that.
  4. Cache what must not change: if a downstream step needs the same output twice, store the first answer and reuse it instead of asking again.
  5. Self-hosting? Run evals at batch size 1 or with batch-invariant kernels (thinking-machines-lab/batch-invariant-ops with vLLM), or in FP32 (Yuan et al.'s LayerCast patch), when you need bit-exact repeats; expect it to be slower.
  6. Flaky test? Before blaming your prompt change, rerun the old prompt a few times: if it also flips, it's the noise floor, not your change.

Sources

FREE ONE-TIME UNLOCK

Unlock the full ZERO breakdown

Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.

✓ Instant reveal right here✓ No spam, unsubscribe any time