Evidence · DiggingBeagle record
SGLang PR 47802: grouped-attention kernel wrong KV-head addressing
Maintainer patch and benchmark for a Triton grouped-query attention head-mapping bug affecting specific model/kernel shapes.
- Published
- Nov 15, 2026
- Source role
- patch commit artifact
Evidence record
Claim-level citations (4)
- supportsAn SGLang Triton GQA kernel silently read the wrong KV head on certain model shapes: SGLang PR #47802 describes a Triton grouped-attention head mapping error for the GLM model’s 48-query/two-KV head layout and a patch for the tile boundary.
PR 47802 problem description and kernel code review
- supportsAn SGLang Triton GQA kernel silently read the wrong KV head on certain model shapes: In the maintainer’s specific GSM8K test configuration the corrected kernel improved exact-answer score from 50.87% to 93.48%; the result is prompt- and backend-dependent.
PR benchmark comparison tables and prompt variants
- supportsAn SGLang Triton GQA kernel silently read the wrong KV head on certain model shapes: For GLM-4-32B-0414 with 48 query heads and two KV heads, the SGLang maintainer reported Triton GSM8K accuracy rising from 50.87% to 93.48% after the head-mapping fix on a specific greedy H100 prompt; an alternate boxed-answer prompt changed the absolute scores to 30.02% and 38.67%.
SGLang PR #47802, Accuracy Tests, GLM-4-32B GSM8K and boxed-answer prompt
- supportsSGLang: Maintainer tests on GLM-4-32B-0414 GSM8K (1,319 questions) reported 50.87% correct on the affected Triton grouped attention path and 93.48% after the head-selection fix under a specified prompt, matching the tested FlashAttention-3 reference; prompt changes produced different absolute scores.
sglang PR 47802, grouped-attention kernel head index, GSM8K evaluation table, test prompt