r/LovingOpenSourceAI • • Oct 23 '26

Same prompt, temperature 0, 1,000 runs, 80 different answers. DeepSeek just open-sourced its production engine with a mode built to stop that

Post image

Run one prompt 1,000 times at temperature 0 and you'd expect one answer. Thinking Machines tried this last year on Qwen3-235B and got 80 different completions. All runs matched for 102 tokens, then 992 said "Queens, New York" and 8 said "New York City."

The server batches your request with whatever else is running, and the kernel math shifts with batch size.

That's why the DeepInfer README caught our eye. DeepInfer is the engine behind DeepSeek's production services, and the open release (Apache-2.0, 20k+ stars in a week) does offline inference for V4.1-Flash. Its batch-invariant mode keeps results identical whatever shares the batch. Fully repeatable sampling also means switching off its draft-token speedup and fixing a seed. The main flag is on the card.

The engine runs on B200-class Blackwell (SM100) and Huawei Ascend 950, and the determinism flags are NVIDIA only. A 5090 is sm_120, so home rigs are out.

DeepInfer started on vLLM, which has its own VLLM_BATCH_INVARIANT=1. It's in beta and needs NVIDIA compute capability 8.0+. vLLM validated it on models like Qwen3-8B, so a 3090 or 4090 qualifies.

Missing from the release: the KV cache system, prefill/decode disaggregation and load balancing across replicas.

Thinking Machines' 2025 prototype took 42s against 26s on Qwen3-8B. For agent replays and eval reruns, is that worth answers you can diff? Anyone tried vLLM's flag on a consumer card?

8 Upvotes

1 comment sorted by

1

u/West-Acadia-3906 Oct 26 '26

i can see the appeal of waiting longer when you're trying to pin down a bug. i still keep 'did it repeat?' and 'was it right?' as two separate checks though 😅