Enabling Deterministic Inference for SGLang
lmsys.org·22h

This post highlights our initial efforts to achieve deterministic inference in SGLang. By integrating batch invariant kernels released by Thinking Machines Lab, as well as customized attention kernels and sampling operators, we have enabled deterministic inference while maintaining compatibility with crucial features, including chunked prefill, CUDA graphs, radix cache, and non-greedy sampling.

Why Deterministic Inference Matters

The ability to achieve consistent outputs from large language models (LLMs) inference is increasingly important. For example, the indeterminism of inference results can implicitly transform on-policy reinforcement learning (RL) into off-policy RL as researchers pointed out. However, even…

Similar Posts

Loading similar posts...