Local LLM Output Diverges From Labs Across Backends, Quant
The 30-Second Skim7 points
- What happenedA technical experiment running Qwen3.6-27B on an RTX PRO 6000 Blackwell GPU demonstrates that attention backend choice, KV-cache quantization, and weight precision all cause local LLM inference to diverge from reference implementations — with INT4 KV-cache producing reproducible tool-calling failures.
- Key facts & numbersThe author ran Qwen3.6-27B (BF16) on an RTX PRO 6000 Blackwell GPU inside a pinned nightly vLLM build containing 734 Python packages, replaying a ~100k-token "Prompt 2" captured from a real Turnstone lab workstream to measure implementation-specific inference divergence. Test 1 compared FlashAttention 2, Flash Inference, and Triton Attention backends; greedy next-token choices matched across the first several thousand tokens but diverged in clusters later in the prompt, with the author noting disagreements tracked prompt content rather than context length. Same-backend cross-GPU repeatability runs produced bit-for-bit identical logits at every hidden state, meaning the attention-backend divergence comes exclusively from the matrix-multiplication-and-addition operations during prefill — not from weights or sampling.
- What happens nextYour "amazeballz" local model isn't dumber — your attention backend and KV-cache quant just pick different tokens. INT4 KV-cache breaks tool calls entirely. Wild.
- The author ran Qwen3.6-27B (BF16) on an RTX PRO 6000 Blackwell GPU inside a pinned nightly vLLM build containing 734 Python packages, replaying a ~100k-token "Prompt 2" captured from a real Turnstone lab workstream to measure implementation-specific inference divergence.
- Test 1 compared FlashAttention 2, Flash Inference, and Triton Attention backends; greedy next-token choices matched across the first several thousand tokens but diverged in clusters later in the prompt, with the author noting disagreements tracked prompt content rather than context length.
- Same-backend cross-GPU repeatability runs produced bit-for-bit identical logits at every hidden state, meaning the attention-backend divergence comes exclusively from the matrix-multiplication-and-addition operations during prefill — not from weights or sampling.
- Test 2 left BF16 weights and activations untouched while quantizing the KV cache: BF16 was fine, INT8 eventually recovered from tool-call token flips, and INT4 did not recover at all — producing a reproducible tool-calling error.
Why It Matters
The author shows local LLM users are not running the "same model" as the lab — every inference engine routes through a distinct stack of attention backends, CUDA kernels, and quantizations that pick different next tokens from identical weights, and the proof is that BF16 can tool-call where INT4 KV-cache cannot. Popular quantized-model-card KLD numbers are unverifiable without methodology disclosure, so benchmark shopping is meaningless absent that transparency.
Sources Cited
- Hacker NewsWhy your local LLM feels dumber than it is
Related Coverage
The day’s news in one short email, every morning.
Free. One email a day. Unsubscribe in one click.