l
Many teams assume setting temperature to zero makes LLM inference deterministic, but the same prompt often still returns slightly different text across runs. The usual culprits are not the sampling itself. First, check if the serving stack uses continuous batching or prefix caching, because request grouping can shift kernel order and floating-point reduction results. Second, some models still apply top-p or repetition penalties even at temperature 0, and those post-processing steps can alter token selection on near-equal logits. Third, GPU non-determinism from matrix multiplication or attention kernels can flip tokens when logit gaps are very small. A practical diagnostic is to force a batch size of one, disable speculative decoding, and pin the model to a single GPU; if outputs still differ, compare token logits rather than text. Have you seen non-determinism mainly in short factual answers or in long generation tasks?