# Why Temperature 0 Isn't Deterministic

DevFeed: [Why Temperature 0 Isn't Deterministic](<https://devfeed.tech/articles/why-temperature-0-isn-t-deterministic-84540.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/why-temperature-0-isnt-deterministic/>)

Author: Utkarsh Mangal

Published: 2026-10-10T12:00:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [Temperature settings in AI](<https://devfeed.tech/topics/temperature-settings-in-ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [quantization](<https://devfeed.tech/topics/quantization.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [large-data-models](<https://devfeed.tech/tags/large-data-models.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [llm](<https://devfeed.tech/tags/llm.md>), [noise](<https://devfeed.tech/tags/noise.md>), [temperature](<https://devfeed.tech/tags/temperature.md>), [token](<https://devfeed.tech/tags/token.md>)

## AI overview

The article analyzes why temperature-zero large language model inference can produce different outputs across runs. It connects token flips to floating-point noise, near-ties between logits, and kernels whose reduction order varies with batch size, then derives and tests an estimate of per-token flip probability. It also discusses limits of the experiments and recommends tolerant or semantic evaluation instead of exact output matching.

## Source excerpt

A one-line formula for how often an LLM's top token flips, and why identical completions fall apart after about a hundred tokens The post Why Temperature 0 Isn't Deterministic appeared first on Towards Data Science.