News · DiggingBeagle record

A wrong KV-head lookup cut one SGLang benchmark from 93.48% to 50.87%

A November 15 SGLang patch corrected grouped-query attention indexing for particular query/KV head ratios. The reported accuracy change reflects a serving backend defect, not a new model training result.

Published
Nov 16, 2026

The report

A GLM-4-32B evaluation changed sharply when an SGLang Triton attention kernel stopped reading the wrong key/value head. The maintainer patch identifies the failure condition: grouped-query attention with more query heads per KV head than the kernel's previous fixed tiling logic could address cleanly. Rather than crashing, the kernel returned ordinary-looking tokens computed against an incorrect attention context.

The measured regression

On 1,319 GSM8K questions with the stated H100, greedy decoding and prompt configuration, the stock Triton path scored 50.87% against 93.48% after the fix. FlashAttention-3 reached 93.48% in the same reported comparison. The FP8 KV-cache variant moved from 49.51% to 92.87%. Different prompts produced different absolute scores, so this is not a universal 42.61-point capability gain for GLM or a reliable result for every model shape.

The operational consequence

Model benchmark charts often omit the model server version, kernel, KV head grouping and cache dtype. Here those are causal variables. A production owner who notices lower answer quality might blame weights, quantization or prompting while the actual fault is a numerical implementation path. The SGLang Case separates the affected geometry from unaffected shapes and the patch's reported performance tradeoff.

The change was merged upstream on November 15; merge status is not proof that every deployed package includes it. Operators should rerun differential tests against an independent backend on the exact tag and GPU configuration before declaring a regression fixed.

Research behind this