All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

The Challenge of Reproducible LLM Inference: Why Even Greedy Sampling Isn't Deterministic

By

jxmorris12

8mo ago· 31 min readenInsight

Summary

The article discusses the challenge of achieving reproducible results in Large Language Model (LLM) inference. Even when using greedy sampling (temperature=0), which should theoretically be deterministic, LLM APIs and inference libraries still produce non-deterministic outputs due to factors like hardware differences, software implementations, and parallel processing. The article explores the technical reasons behind this nondeterminism and potential solutions for making LLM inference truly reproducible.

Key quotes

· 3 pulled
Reproducibility is a bedrock of scientific progress. However, it's remarkably difficult to get reproducible results out of large language models.
Even when we adjust the temperature down to 0 (thus making the sampling theoretically deterministic), LLM APIs are still not deterministic in practice.
Even when running inference on your own hardware with an OSS inference library like vLLM or SGLang, sampling still isn't deterministic.
Snippet from the RSS feed
Reproducibility is a bedrock of scientific progress. However, it’s remarkably difficult to get reproducible results out of large language models. For example, you might observe that asking ChatGPT the same question multiple times provides different result

You might also wanna read