AIToday
Large Language ModelsDaily Dose of Data SciencePublished: Nov 1, 2026, 06:01 JST

Thinking Machines Lab: Qwen3-235B gives 80 unique completions at temp 0

Send on LINE
Thinking Machines Lab: Qwen3-235B gives 80 unique completions at temp 0

3 Key Points

  1. What happened

    Thinking Machines Lab ran 1,000 completions of "Tell me about Richard Feynman" from Qwen3-235B at temperature 0 and got 80 unique completions; all matched for 102 tokens, then 992 continued with "Queens, New York" and 8 with "New York City".

  2. Why it matters

    Temperature 0 does not make inference deterministic, because the sampler is deterministic but reads logits from a forward pass whose numerics depend on traffic the user does not control, so the same prompt can diverge at a nearly tied token.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The finding matters because it undercuts a common assumption: that setting temperature to 0 guarantees the same answer every time. In practice, the sampler is deterministic, but the numbers it samples from differ with the batch around the request. When two candidate tokens are nearly tied, such as "Queens" and "New" at 12.3417 and 12.3415, a tiny rounding shift can flip the greedy choice and send the whole completion down a different path.

The effect traces to how GPU kernels pick a parallelization strategy. A small batch does not give all 132 SMs on an H100 SXM enough work, so long sums are split across SMs and added back together in a different order than a large batch would use. The same three fp16 numbers can produce 1024 or 1025 depending on which pair is added first.

The practical response is a batch-invariant kernel, which reduces each row in the same fixed order no matter how many rows share the batch. This restores identical logits across batch sizes but costs throughput because the kernel can no longer pick the best split per batch size. With this on, Thinking Machines got all 1,000 Feynman completions identical.

FAQ
Why does batch size change an LLM's output?
Floating-point addition is not associative, so the order in which numbers are added changes the low-order bits. GPU kernels split sums differently for small and large batches, which shifts logits slightly.
At what point did the 1,000 Feynman completions diverge?
All 1,000 matched for the first 102 tokens. At token 103, 992 continued with "Queens, New York" and 8 with "New York City".
How much slower is batch-invariant inference?
SGLang's --enable-deterministic-inference shows most slowdowns between 25% and 45% in the LMSYS benchmarks. vLLM's VLLM_BATCH_INVARIANT=1 is still in beta.
Daily Dose of Data ScienceRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAnthropic watermarks 4 Claude models, but Claude Opus 4.6 and Sonnet 4.6 have a loophole