Testing
~10 min readUpdated: December 2026

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

vLLM Blackwell GPU Greedy Evaluation Noise Decomposition and Batch-Invariant Determinism

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Exampledeterministic-vllm-eval-harness.ts
deterministic-vllm-eval-harness.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Certify deterministic agent evals against a batch-invariant vLLM Blackwell server
const 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);
Video Guides

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 RateRTX PRO 6000DGX Spark GB10RTX 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.

Silent Harness Traps: Output Truncation & Global RNG Scorers

Two non-GPU bugs compounded serving noise in Study A (Qwen3-1.7B, GB300 HTTP server):

  1. Per-Item Budget Truncation: Default 512–1,024 token limits truncated 25.2% of MMLU-Pro items (1,514/6,016) and 22.0% of MATH-500 items (55/250); raising budgets to 4,096 recovered MMLU-Pro truncated accuracy from 7.5% to 33.8%.
  2. IFEval Global RNG Bug (`lm-evaluation-harness` #4602): Dropping falsy kwargs caused build_description() (~25 sites) to re-draw missing constraints from Python’s global random state, producing two different IFEval scores (69.6 vs 69.3) on byte-identical outputs.

GB300 Exception Under VLLM_BATCH_INVARIANT=1

While VLLM_BATCH_INVARIANT=1 made RTX PRO 6000, GB10, and RTX 5080 (sharing one tuned-kernel table) byte-identical within and across GPUs, GB300 outputs still flipped 3.46% between cold and warm TorchInductor compile caches. Always pre-warm and pin the compile cache directory on GB300.

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.

bash
# 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
python
# 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness