Inference
The tendency of a language model endpoint to return different outputs for the same prompt, even at temperature 0.
The tendency of a language model endpoint to return different outputs for the same prompt, even at temperature 0. Thinking Machines Lab traced most of it to inference kernels that are not batch invariant: floating-point addition is not associative, so a request's numbers shift slightly depending on how many other requests share its batch, and batch size changes with server load. In practice, treat model output as a distribution, run evals more than once, and do not assume temperature 0 means repeatable.
Primary source: thinkingmachines.ai
Example
In practice, developers reach for LLM Nondeterminism when they need the capability described above as part of an AI feature or workflow.
Hands-on guides, comparisons, and tutorials that cover Inference.
FAQ
The tendency of a language model endpoint to return different outputs for the same prompt, even at temperature 0.
LLM Nondeterminism sits in the Inference part of the AI stack. Understanding it helps you make better decisions when building, debugging, and shipping AI features.
Developers Digest publishes tutorials and videos that cover Inference topics including LLM Nondeterminism. Check the blog and YouTube channel for hands-on walkthroughs.
Related
The raw, unnormalized scores a language model's output layer assigns to every token in its vocabulary at each step, before softmax turns them into probabilities.
An inference technique where a small, fast draft model proposes several tokens ahead and the large target model checks them all in one parallel forward pass.
Two methods for controlling the randomness of model output during token generation.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.