Repository navigation
Conversation
… v_head_dim) to fix triton spec GPU fault
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
@amd-bot ci-status |
This comment was marked as outdated.
This comment was marked as outdated.
All pass. |
|
/tag-and-rerun-ci |
|
@HaiShaw CI completed, ready to merge. |
|
@amd-bot ci-status |
This comment was marked as outdated.
This comment was marked as outdated.
|
@amd-bot ci-status |
This comment was marked as outdated.
This comment was marked as outdated.
|
@amd-bot ci-status |
CI Status for PR #30407Merge verdict: ❌ Do not merge on the current signal — PR CI is incomplete AND this PR's changed code was never exercised. Every executed failure is infra or pre-existing (a b200 runner comms flake, a pre-existing ROCm-7.0 compile error, an MLX config bug) — zero are caused by this PR. But because those failures fast-fail-cascaded the exact stages that run this PR's test, the new MLA guard in Caution This PR's changed code is not exercised by any PR-CI test that ran. Changed files: Executed CI failure attribution: AMD: 2 root failures (0 related) · NVIDIA: 1 root failure (0 related) · MLX: 1 root failure (0 related) · Extra pipelines: benign opt-in gate (0 related) · ~40 downstream jobs fast-fail-skipped (not tested) · NPU/Xeon/XPU still pending. AMD Executed Failures
Other Executed Failures
All 32 Details / what to do before merge
Generated by amd-bot using Claude Code CLI |
|
@amd-bot ci-status |
CI Status for PR #30407Merge verdict: No executed CI failure is related to this PR — all 5 executed failures are pre-existing/unrelated (perf thresholds, accuracy thresholds, an XPU infra gap, and an already-fixed circular import). However, PR CI is incomplete: the CUDA Warning This PR's new test Changed files: Executed CI failure attribution: AMD: 2 failures (0 related) · Others: 3 failures (0 related) · CUDA AMD Executed Failures
Other Executed Failures
Collapsed fast-fail cascades (not counted as executed failures): Details / what to do before merge
Generated by amd-bot using Claude Code CLI |
|
Content is merged in PR #29677. Close this PR. |
Complements #30355 (which makes triton MLA correct for prefill/decode on gfx95). Both are needed for
--attention-backend triton+ EAGLE speculative decoding on DeepSeek MLA. This change is independent and self-contained (a guard in the triton verify helper) and also protects any other MLA model from the same split-KV verify fault.Motivation
The Triton split-KV EAGLE-verify fast path (
verify_splitkv, enabled by default viaSGLANG_ENABLE_SPLITKV_VERIFYon gfx95 withspeculative_eagle_topk == 1) GPU-faults when the target model uses MLA (e.g. DeepSeek-R1/V3). During target-verify the target model's absorbed MLA attention hashead_dim != v_head_dim(576 vs 512) and a shared latent KV cache; the split-KV kernel is built for standard attention and reads out of bounds on that layout.Symptom (DeepSeek-R1-MXFP4,
--attention-backend triton+ EAGLE spec, gfx950):Memory access fault by GPU node-X ... Reason: Unknownduring decode CUDA-graph capture and again mid-decode. Localized withAMD_SERIALIZE_KERNEL=3:can_handle()(the conservative gate that is supposed to fall back toextend_attention_fwdfor anything it cannot serve) checked q/k/v-vs-buffer dims but never rejected the MLAhead_dim != v_head_dimsignature, so MLA verify entered the kernel.Modifications
python/sglang/srt/layers/attention/triton_ops/verify_splitkv.py: add one guard tocan_handle()— returnFalsewhenq_extend.shape[2] != v_extend.shape[2](the MLA signature). MLA target-verify then falls back toextend_attention_fwd, which already handles MLA correctly (it is the same kernel used for MLA prefill/extend). Pure shape check — no device→host sync, safe inside a captured HIP graph.Accuracy Tests
DeepSeek-R1-MXFP4 (Quark MXFP4), MI355X gfx950, tp4,
--kv-cache-dtype fp8_e4m3, EAGLE (num_steps 3,topk 1,num_draft_tokens 4), cuda graph enabled, gsm8k (200q):(aiter baseline on the same setup: 0.955.)
Benchmarking and Profiling
N/A — crash fix. Only affects MLA, which was previously faulting; non-MLA models still take the split-KV fast path unchanged.
Checklist
[Tag] Descriptioncommit/PR convention.CI States
Latest PR Test (Base): ✅ Run #31369149991
Latest PR Test (Extra): ❌ Run #31369149795