TLDRocket
Sign in

What Makes Inference Nondeterministic?

The AI Engineer

Inference outputs from the same model and prompt can differ across repeated runs even at temperature 0 because GPU arithmetic order changes with how requests share a batch. Thinking Machines Lab reported that 1,000 identical requests returned 80 different completions. Reproducibility can be improved by turning on batch-invariant kernels in vLLM or SGLang, which typically costs about 38% of throughput.

Why it matters

When the same prompt is sent to an AI model multiple times at zero temperature, variations can occur due to the nondeterministic nature of floating-point arithmetic plus server load dynamics. The output can differ based on how requests are batched and how the GPU processes additions.

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.