vLLM on Blackwell GPUs: Fixing Greedy Evaluation Noise, Batch Invariance & Cache Drift

Temperature-zero ("greedy") LLM evaluation on vLLM is not reproducible by default. In a two-part study (arXiv:2612.01085) on NVIDIA Blackwell GPUs (GB300, RTX PRO 6000 Max-Q, DGX Spark GB10, RTX 5080), identical HTTP greedy reruns reproduced only 32.0% of MMLU-Pro texts byte-for-byte, while switching GPUs, shuffling request order, or compiling from an empty cache flipped 3.7–5.0% of graded answers. Enabling VLLM_BATCH_INVARIANT=1 eliminates request-order flips everywhere—except GB300 compile-cache drift.
vLLM on Blackwell GPUs: Fixing Greedy Evaluation Noise, Batch Invariance & Cache Drift: Temperature-zero ("greedy") LLM evaluation on vLLM is not reproducible by default. In a two-part study (arXiv:2612.01085) on NVIDIA Blackwell GPUs (GB300, RTX PRO 6000 Max-Q, DGX Spark GB10, RTX 5080), identical HTTP greedy reruns reproduced only 32.0% of MMLU-Pro texts byte-for-byte, while switching GPUs, shuffling request order, or compiling from an empty cache flipped 3.7–5.0% of graded answers. Enabling VLLM_BATCH_INVARIANT=1 eliminates request-order flips everywhere—except GB300 compile-cache drift. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Quantifies All 5 Noise Sources: Measures dynamic HTTP batching (4.7–6.1%), cross-GPU drift (3.8–5.0%), request shuffling (3.7–4.6%), cold compile caches (up to 4.7%), and warm restarts (2.73% on RTX 5080).
- Batch-Invariant Kernel Scope: Proves VLLM_BATCH_INVARIANT=1 makes RTX PRO 6000, GB10, and RTX 5080 byte-identical within and across chips—but warns GB300 still depends on compile cache.
- Exposes lm-eval Scorer Bug: Documents issue #4602 where IFEval checkers draw missing parameters from Python’s global random generator, flipping grades on identical strings.
- Actionable Certification Gate: Provides fixed-scheduler offline engine flags, compile-cache pinning, and 3-replica cluster-bootstrap floor checks.
import { createAgent } from '@smoke-monkey/harness';// Certify deterministic agent evals against a batch-invariant vLLM Blackwell serverconst evalAgent = createAgent({agentId: 'blackwell-eval-certifier',provider: 'openai-compatible',model: 'Qwen/Qwen3-4B-Instruct-2507',baseUrl: 'http://127.0.0.1:8000/v1',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},mcpServers: {filesystem: {command: 'npx',args: ['-y', '@modelcontextprotocol/server-filesystem', process.cwd()],},},});async function runCertifiedSuite() {const result = await evalAgent.run('Execute ./scripts/verify_eval_determinism.py across 3 container restarts, assert 0.00% graded flips and byte identity, and log preemption counts.');console.log('Determinism certification complete:', result.summary);}runCertifiedSuite().catch(console.error);
Watch: Related Video Guides
What is vLLM? Efficient AI Inference for Large Language Models
vLLM benchmark
Decomposing Temperature-Zero Evaluation Noise Across 4 Blackwell GPUs
In a preregistered study of Qwen3-4B-Instruct-2507 (2,244 items, 4,096 max tokens, pinned vLLM build 3f1bcfd8) across an NVIDIA GB300, RTX PRO 6000 Max-Q, DGX Spark GB10, and RTX 5080, holding temperature at 0.0 failed to guarantee repeatability whenever batch composition, kernel autotuning, or hardware changed.
| Perturbation (Default Kernels vs Batch-Invariant) | GB300 Flip Rate | RTX PRO 6000 | DGX Spark GB10 | RTX 5080 |
|---|---|---|---|---|
| Warm Process Restart (Same Order, Default) | 0.01% | 0.00% | 0.00% | `2.73%` |
| Cold vs Warm Compile Cache (Default) | 1.60% | 3.68% | 2.37% | 3.59% |
| Shuffled Request Order (Default) | 3.66% | 3.92% | 4.55% | 4.29% |
| Cross-Device Warm Contrast (GB300 vs RTX PRO) | 3.89% excess | (95% CI 2.90–4.97) | — | — |
| Batch-Invariant (`VLLM_BATCH_INVARIANT=1`) Shuffled | `0.00%` | `0.00%` | `0.00%` | `0.00%` |
| Batch-Invariant Cold vs Warm Compile Cache | `3.46%` | 0.00% | 0.00% | 0.00% |
At production HTTP concurrency (96), dynamic batching pushed graded answer flips to 4.7–6.1%—whereas both the offline engine and HTTP concurrency 1 reproduced every text cleanly.
Reproducible Batch-Invariant Serving & 3-Replica Verification Script
Certify benchmark deltas smaller than 3 points by disabling prefix caching for isolated evals, forcing batch-invariant kernels, fixing scheduler caps, and verifying a persistent compile cache across replicas.
# Launch deterministic vLLM eval server on Blackwell GPUs
export VLLM_BATCH_INVARIANT=1
export TORCHINDUCTOR_CACHE_DIR="/var/cache/vllm-inductor-pinned"
vllm serve Qwen/Qwen3-4B-Instruct-2507 \
--dtype bfloat16 \
--no-enable-prefix-caching \
--max-num-seqs 32 \
--max-num-batched-tokens 8192 \
--port 8000# Minimal post-run determinism check for eval artifacts
def check_determinism(run_a: dict[str, str], run_b: dict[str, str]) -> None:
diffs = [k for k in run_a if run_a[k] != run_b.get(k)]
pct = 100.0 * len(diffs) / max(1, len(run_a))
print(f"Byte-divergent items: {len(diffs)}/{len(run_a)} ({pct:.3f}%)")
assert pct == 0.0, "Non-deterministic serving or compile-cache drift detected"In Smoke Monkey Harness, isolating deterministic evaluation passes behind a pinned compile cache prevents mistaking 1–3 point GPU/batching churn for genuine prompt or fine-tuning gains.
Frequently Asked Questions
Q:Why does temperature=0.0 still produce different outputs in vLLM on Blackwell GPUs?
Floating-point reductions inside CUDA kernels are non-associative. Dynamic continuous batching, request ordering, TorchInductor startup autotuning, and different GPU kernel tables shift low-order logit bits and flip near-tie argmax tokens.
Q:Does VLLM_BATCH_INVARIANT=1 guarantee byte-identical outputs across all Blackwell GPUs?
It eliminated request-order flips (0.00%) on all four tested GPUs and made RTX PRO 6000, GB10, and RTX 5080 byte-identical across devices, but GB300 still diverged 3.46% between empty (cold) and persistent (warm) compile caches.
Q:How much does HTTP concurrency contribute to greedy evaluation noise?
At HTTP concurrency 96, arrival timing changed batch composition and caused 4.7–6.1% graded answer flips between fresh servers, whereas concurrency 1 and the offline engine reproduced every text.
Q:What caused IFEval scores to change on identical model responses?
Issue #4602 in lm-evaluation-harness stripped falsy kwargs before initializing IFEval checkers, causing build_description() to sample missing constraints from Python’s unseeded global random module.
Q:How should developers certify a 1–2% model improvement on small eval sets?
Run under VLLM_BATCH_INVARIANT=1 with a pinned warm compile cache, enforce 4,096+ token output budgets to eliminate truncation censoring, and verify across at least 3 replicas with paired McNemar/cluster-bootstrap intervals.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.