Jargonautica
Running It in Production

Determinism and Seed

Also called: Seed, Determinism

Why the same prompt gives different answers even at the lowest temperature setting. Partly it is sampling, and partly it is that the arithmetic on a graphics chip depends on how requests happened to be grouped together, which changes moment to moment.

Technical view

Temperature zero makes token selection deterministic in principle, but floating-point addition is not associative and reduction order varies with batch composition and kernel selection, so identical inputs can diverge. Seeds control the sampler and not the numerics. Some providers offer best-effort determinism with a system fingerprint indicating when the backend changed. Applications requiring identical outputs should cache the response rather than expect regeneration to match.


Part of AI Terminology Index, section: Running It in Production.

How it connects

Determinism and Seed links to 5 other terms. The faint lines are links between those terms. See it in the full graph.

Temperature and SamplingTemperature and Sam…Greedy DecodingGreedy DecodingContinuous BatchingContinuous BatchingConvexityConvexityReproducibilityReproducibilityDeterminism and Seed