liveBook · Manning

Nondeterminism

Nondeterminism is the property of a system or computation in which the same inputs and conditions can produce different possible behaviors or outcomes.

How 3 Manning books explain it

Machine Learning Platform Engineering

Nondeterminism is behavior in which identical inputs can produce different valid outputs across executions.

How it is used
Reframes LLM testing and production quality assurance around variable but valid outputs.
How deep it goes
Explains probabilistic variation through sampling parameters and stops short of detailed model internals.
Examples
Uses temperature, top-k, and top-p settings to demonstrate deterministic and increasingly varied outputs.
What you can do after
Evaluate LLM responses semantically and tune sampling settings instead of relying on exact string matches.

Read how Machine Learning Platform Engineering explains nondeterminism →

Machine Learning System Design

Nondeterminism is the property that identical apparent inputs may produce different outcomes because of uncontrolled state, data, timing, or randomness.

How it is used
Frames API design around making every factor affecting an ML prediction visible and controllable.
How deep it goes
Explains hidden time and random state through contrasting predict-function designs, without developing algorithmic internals.
Examples
Uses stochastic text generation, Python predict functions, current time, random seeds, and explicit random state as examples.
What you can do after
Diagnose irreproducible predictions by identifying implicit inputs and exposing time, seeds, and other output-controlling parameters.

Read how Machine Learning System Design explains nondeterminism →

Generative AI in Action

Nondeterminism is the property that repeated executions with the same apparent inputs can produce different outputs rather than a single fixed result.

How it is used
Guides temperature and evaluation choices for creative, automation, prompting, and image-generation workflows.
How deep it goes
Defines repeated-run variation and demonstrates temperature effects, but does not derive the underlying generation mathematics.
Examples
Uses repeated text completions at temperatures 0.8, 0.2, and 1.8, plus image prompts producing varied generated images.
What you can do after
Apply temperature and sampling-count settings, then evaluate generated text or images for consistency, quality, and risk.

Read how Generative AI in Action explains nondeterminism →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.