Non-Determinism in LLM Output
In this article
- Name the four things that must stay the same for a model to give the same reply twice.
- Tell from a set of differing replies which of the four changed, and say what to keep fixed or record for each.
- Explain why a temperature of 0 does not promise the same reply on every call.
- Explain why a reply that comes back the same every time can still be wrong.
- Terms defined here: non-determinism, model version, model alias.
Overview
A model writes its reply one token, a small piece of text, at a time, choosing each from a list of likely next pieces. Temperature is a request setting for how strongly the model favours the likeliest token; at 0 it always takes it. As of November 2026, some of the newest models run by a company over the internet do not take a custom temperature, so that company's own settings decide each pick. [3,5]
Take Orbit Flash, an invented model that a company runs the same way but that does accept a temperature. Your program sends it one request twice through its API, the channel for sending a request and getting the reply, at temperature 0. The replies differ. The difference comes from one of four places: the pick itself, and three further out, at the company that runs the model and in your program. Temperature touches only the pick, so those three matter even where temperature cannot be set.
Afterwards you can tell which place changed and what to keep fixed or record.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What a repeat depends on
- Scatter inside a batch: the draw and the provider
- A shift between batches: the model and the input
- Same every time is not the same as right
- Sources
- Check yourself, 5 questions