PromptForge
AI Glossary

Cost & performance

Determinism

Also known as: deterministic, reproducibility

Definition

A deterministic system returns identical output for identical input. Language models are only approximately deterministic even at temperature 0, because floating-point and infrastructure variation introduce small differences.

Setting temperature to 0 makes the model always select the highest-probability token, which gets you close to deterministic behaviour. It does not guarantee it. GPU non-determinism, batching effects and backend changes can all alter output.

This has testing implications. Assertions on exact model output are fragile. Test for properties instead: valid JSON, required fields present, values within range, correct classification.

It also has product implications. If your users expect the same input to give the same result, cache the result rather than relying on the model to reproduce it.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.