← Back to Reading
Daily Dose of DS 2026-10-26

Why Temperature 0 Isn't Deterministic in LLM Inference

Speech accuracy across both speech-to-text and text-to-speech layers is vital for LLM voice agents handling precise information like dosages and reference codes. Deepgram's Flux TTS addresses the outbound speech layer, focusing on retaining precision with technical and alphanumeric strings. In evaluation tests, Flux TTS achieved a 3.4% word error rate on complex terms such as drug names and tracking numbers. A practical test simulating a veterinary prescription refill demonstrated accurate retention of dynamic details such as changing collection times and prescription numbers. Even at temperature 0, LLM inference can produce non-deterministic outputs across runs due to floating-point addition being non-associative. When dynamic batch sizes vary on an inference server, GPU kernels split operations like matmuls and attention differently, altering the summation order and resulting in subtle logit variations. In near-tie situations, a different token is selected via argmax, leading to complete divergence due to autoregressive generation. Inference engines like vLLM and SGLang have addressed this by introducing batch-invariant execution modes at the cost of a performance slowdown.

Read the original ↗
Contents 2 sections
  1. 01A voice agent that gets the details right
  2. 02Why temperature 0 isn't deterministic in LLM inference
VOICE AI

A voice agent that gets the details right

Speech accuracy across both speech-to-text and text-to-speech layers is vital for LLM voice agents handling precise information like dosages and reference codes. Deepgram's Flux TTS addresses the outbound speech layer, focusing on retaining precision with technical and alphanumeric strings. In evaluation tests, Flux TTS achieved a 3.4% word error rate on complex terms such as drug names and tracking numbers. A practical test simulating a veterinary prescription refill demonstrated accurate retention of dynamic details such as changing collection times and prescription numbers.

  • Accurate speech-to-text and text-to-speech are both required to prevent information loss in voice agents.
  • Deepgram's Flux TTS manages outbound text-to-speech with a focus on retaining complex alphanumeric and technical details.
  • Flux TTS achieved a 3.4% word error rate in benchmark tests covering drug names, tracking numbers, and technical strings.
  • A simulated prescription refill test showed the system maintained accuracy when handling dynamically changing appointment details.
LLM INFERENCE

Why temperature 0 isn't deterministic in LLM inference

Even at temperature 0, LLM inference can produce non-deterministic outputs across runs due to floating-point addition being non-associative. When dynamic batch sizes vary on an inference server, GPU kernels split operations like matmuls and attention differently, altering the summation order and resulting in subtle logit variations. In near-tie situations, a different token is selected via argmax, leading to complete divergence due to autoregressive generation. Inference engines like vLLM and SGLang have addressed this by introducing batch-invariant execution modes at the cost of a performance slowdown.

  • Temperature 0 disables sampling but cannot prevent logit variations caused by floating-point non-associativity across billions of GPU operations.
  • Dynamic batch sizes cause GPU kernels to partition workloads (such as split-K and split-KV) differently, changing the order of additions.
  • A minor logit variation at a near-tie token flips the argmax decision, which autoregressively compounds into entirely different completions.
  • Thinking Machines achieved full determinism by fixing split sizes and standardizing reduction orders regardless of batch size.
  • vLLM and SGLang now provide batch-invariant deterministic modes, though SGLang reports an average slowdown of roughly 34.35%.