Skip to content

[AMD] [GLM5] Skip DSA decode indexer when kv_len <= index_topk (dense k-only fast path) - #31324

Merged
HaiShaw merged 16 commits into
sgl-project:mainfrom
Jacob0226:jacob/dsa-decode-skip-indexer
Aug 16, 2026
Merged

HaiShaw merged 16 commits into
sgl-project:mainfrom
Jacob0226:jacob/dsa-decode-skip-indexer

Conversation

@Jacob0226

@Jacob0226 Jacob0226 commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • On GLM-5.2 DSA decode, when a request's kv_len <= index_topk the top-k selects all valid positions, so the indexer's logits GEMM + paged_mqa_logits + top-k selection is wasted work. Add a k-only fast path that skips the indexer, stores the K cache, and generates the identity index directly ([0, 1, ..., kv_len-1, -1, ...]), feeding the same sparse-MLA decode attention kernel.
  • CUDA-graph "Design A" dual-graph: capture a dense (k-only) and a sparse (full indexer) decode graph per batch-size bucket and dispatch on max_kv_len vs index_topk at replay. This is correct for mixed lengths — any request with kv_len > index_topk in the batch falls back to the sparse graph.
  • Auto-enabled for DSA models, no env toggle. Since DSA models expose index_topk in their HF config, the dual-graph is turned on automatically whenever index_topk is present (dsa_dual_graph = dsa_index_topk is not None); non-DSA models and other archs are unaffected. Eager decode takes the same fast path per-step when safe. (No SGLANG_DSA_DECODE_* / SGLANG_KONLY_DEBUG environment variables — an earlier revision gated this behind opt-in/debug flags; those were removed per review.)

Changes

File Change
layers/attention/dsa/dsa_indexer.py k-only fast path (_forward_cuda_k_only): skip logits/top-k, store K cache; for MLA generate the identity index; extended to DECODE (eager + graph)
model_executor/runner/decode_cuda_graph_runner.py Design A dual-graph: capture dense (k-only) + sparse decode graphs per bs bucket; host-dispatch on max_kv_len vs index_topk; auto-enabled for DSA models via dsa_index_topk
model_executor/runner_utils/capture_mode.py capture-time DSA variant flag (dense/sparse) read by the indexer skip branch
model_executor/runner/shape_key.py include the DSA decode variant in the cuda-graph shape key

Scope

GLM-5.2 DSA decode on gfx950 (MI355X). Auto-enabled for DSA models; correct for mixed lengths (long context stays on the sparse indexer path). Other archs / hardware unaffected.

Test plan

Accuracy (GSM8K, MI355X TP4, GLM-5.2-MXFP4):

Baseline This PR
GSM8K 0.922 0.941

Within margin of error.

Performance (MI355X TP4, GLM-5.2-MXFP4, docker rocm/sgl-dev:v0.5.15.post1-rocm720-mi35x-20260714, tilelang DSA backend): token throughput per GPU (tok/s/gpu, higher better) and median TPOT (ms, lower better), dense-decode OFF vs ON (this PR). Isolated effect — same build/backend, only this PR's commits added, everything else identical.

Only i1024 / o1024 is shown: this optimization applies when kv_len <= index_topk (2048). At i8192 every decode step has kv_len > 2048, so it stays on the sparse path and is unchanged.

Concurrency TPUT off TPUT PR Δ TPUT TPOT off TPOT PR Δ TPOT
4 71.8 75.5 +5.2% 13.28 12.62 −5.0%
8 126.8 133.2 +5.1% 15.18 14.41 −5.1%
16 196.9 205.1 +4.2% 19.46 18.67 −4.1%
32 312.4 322.8 +3.3% 24.66 23.90 −3.1%
64 468.9 480.3 +2.4% 32.88 32.14 −2.3%
python3 -m sglang.launch_server \
  --model amd/GLM-5.2-MXFP4 \
  --tp 4 \
  --trust-remote-code \
  --tool-call-parser glm47 \
  --reasoning-parser glm45 \
  --watchdog-timeout 1200 \
  --mem-fraction-static 0.85 \
  --kv-cache-dtype fp8_e4m3 \
  --disable-radix-cache \
  --model-loader-extra-config '{"enable_multithread_load": true, "num_threads": 32}' \
  --dsa-prefill-backend tilelang \
  --dsa-decode-backend tilelang \
  --tokenizer-worker-num 8 \
  --enable-aiter-allreduce-fusion

Token throughput per GPU improves ~2.4–5.2% and TPOT drops ~2.3–5.1% at i1k, from skipping the wasted indexer when the sparse top-k would select all positions anyway. The gain is largest at low concurrency and converges to ~2.4% at conc 64. (Δ is the isolated dense-decode effect — same build/backend, feature off vs on — not a full-stack-vs-stock comparison.)


CI States

Latest PR Test (Base): ⏳ Run #31978978932
Latest PR Test (Extra): ❌ Run #31978978765

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a dense-decode optimization for DSA models, allowing the indexer's logits computation to be skipped (k-only path) during decode when the sequence length is within the top-k threshold. This is supported in both eager mode and via a dual-graph CUDA graph capture mechanism. The review feedback highlights opportunities to improve robustness by using the central envs registry instead of direct os.environ.get calls (ensuring proper boolean parsing) and adding .numel() > 0 checks to prevent RuntimeErrors when calling .max() on empty sequence length tensors.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +577 to +582
# M2a "static" fallback (no dual-variant capture active): enable
# k-only only when the deployment guarantees every request's
# kv_len<=index_topk (e.g. i1k/o1k). WRONG for mixed >2K traffic.
import os

return os.environ.get("SGLANG_DSA_DECODE_DENSE_GRAPH", "0") == "1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using os.environ.get directly bypasses the envs configuration registry. More importantly, os.environ.get(..., "0") == "1" only evaluates to True if the environment variable is exactly "1". If a user sets SGLANG_DSA_DECODE_DENSE_GRAPH=True or SGLANG_DSA_DECODE_DENSE_GRAPH=true, this check will evaluate to False. Using envs.SGLANG_DSA_DECODE_DENSE_GRAPH.get() correctly utilizes the central environment variable registry and its boolean parsing logic.

Suggested change
# M2a "static" fallback (no dual-variant capture active): enable
# k-only only when the deployment guarantees every request's
# kv_len<=index_topk (e.g. i1k/o1k). WRONG for mixed >2K traffic.
import os
return os.environ.get("SGLANG_DSA_DECODE_DENSE_GRAPH", "0") == "1"
# M2a "static" fallback (no dual-variant capture active): enable
# k-only only when the deployment guarantees every request's
# kv_len<=index_topk (e.g. i1k/o1k). WRONG for mixed >2K traffic.
return envs.SGLANG_DSA_DECODE_DENSE_GRAPH.get()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — switched to envs.SGLANG_DSA_DECODE_DENSE_GRAPH.get() in commit 474270e so it goes through the EnvBool parser (accepts true/1/yes).

Comment on lines +1360 to +1367
if forward_batch.forward_mode.is_decode_or_idle() and layer_id == 0:
import os

if os.environ.get("SGLANG_KONLY_DEBUG", "0") == "1":
logger.info(
"[KONLY] decode k-only fired (skip-indexer): num_tok=%d",
x_meta.shape[0],
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using os.environ.get directly bypasses the envs configuration registry. More importantly, os.environ.get(..., "0") == "1" only evaluates to True if the environment variable is exactly "1". If a user sets SGLANG_KONLY_DEBUG=True or SGLANG_KONLY_DEBUG=true, this check will evaluate to False. Using envs.SGLANG_KONLY_DEBUG.get() correctly utilizes the central environment variable registry and its boolean parsing logic.

        if forward_batch.forward_mode.is_decode_or_idle() and layer_id == 0:
            if envs.SGLANG_KONLY_DEBUG.get():
                logger.info(
                    "[KONLY] decode k-only fired (skip-indexer): num_tok=%d",
                    x_meta.shape[0],
                )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — switched to envs.SGLANG_KONLY_DEBUG.get() in commit 474270e, same EnvBool parsing.

Comment on lines 585 to 591
if fb.seq_lens_cpu is not None:
max_kv_len = int(fb.seq_lens_cpu.max().item())
elif fb.seq_lens is not None:
max_kv_len = int(fb.seq_lens.max().item())
else:
return False
return max_kv_len <= self.index_topk

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

If fb.seq_lens_cpu or fb.seq_lens is empty (i.e., has 0 elements), calling .max() on it will raise a RuntimeError. Adding a .numel() > 0 check ensures robustness against empty batches.

Suggested change
if fb.seq_lens_cpu is not None:
max_kv_len = int(fb.seq_lens_cpu.max().item())
elif fb.seq_lens is not None:
max_kv_len = int(fb.seq_lens.max().item())
else:
return False
return max_kv_len <= self.index_topk
if fb.seq_lens_cpu is not None and fb.seq_lens_cpu.numel() > 0:
max_kv_len = int(fb.seq_lens_cpu.max().item())
elif fb.seq_lens is not None and fb.seq_lens.numel() > 0:
max_kv_len = int(fb.seq_lens.max().item())
else:
return False
return max_kv_len <= self.index_topk

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 27bd826 — added .numel() > 0 checks to both the seq_lens_cpu and seq_lens branches before .max(), consistent with the existing empty-batch guard elsewhere in this file.

…ger)

When kv_len <= index_topk the DSA top-k selects all valid positions, so the
indexer logits GEMM + paged_mqa_logits + top-k are pure waste. Route decode
through the existing _forward_cuda_k_only path (dummy-logits topk_transform
-> correct physical page-slot indices), instead of the spike's arange()
identity synthesis which was wrong under SGLANG_DSA_FUSE_TOPK (indices are
physical slots, not logical positions) -> GSM8K 0.02.

- _should_skip_logits_computation: allow is_decode_or_idle() with the same
  max_kv_len <= index_topk test; gated off during cuda-graph capture (the
  captured branch would be frozen and replay wrong for kv_len>index_topk).
- _forward_cuda_k_only: relax the extend-only assert to also accept decode.

Eager-mode only for now (Milestone 1: correctness). Cuda-graph dense/sparse
variant + can_run_graph gating is Milestone 2.
…a-graph decode k-only (kv_len<=index_topk deployments)
…t dispatch

Capture two decode graph variants per bs bucket -- "dense" (k-only,
skip-indexer) and "sparse" (full indexer) -- and select which to replay
on the host from max_kv_len vs index_topk. Correct for mixed/arbitrary
context length under cuda graph (>2K routes to sparse, <=2K to dense),
never falling back to eager.

- capture_mode.py: add _capture_dsa_variant signal (mirrors lora variant)
- dsa_indexer.py: _should_skip_logits_computation capture branch honors the
  variant (dense->skip, sparse->full); M2a static env kept as fallback
- shape_key.py: add dsa_variant to ShapeKey (composes with lora variant_label)
- decode_cuda_graph_runner.py: capture dense+sparse per bs; _resolve_dsa_variant
  dispatches on host seq_lens_cpu (no d2h); env-gated dispatch debug log
- environ.py: register SGLANG_DSA_DECODE_DUAL_GRAPH / _DENSE_GRAPH / KONLY_DEBUG

Validated (GLM-5.2-MXFP4 TP4 MI355X, index_topk=2048): GSM8K under graph
0.950; long >2K needle recall correct; i1k dense -3~5% TPOT; i8k no
regression; dual capture ~55s (~2x), no OOM.
@Jacob0226
Jacob0226 force-pushed the jacob/dsa-decode-skip-indexer branch from d8c3c81 to 0c41aca Compare July 16, 2026 08:09
SGLANG_DSA_DECODE_DENSE_GRAPH and SGLANG_KONLY_DEBUG are declared as
EnvBool (accepts true/1/yes/y), but dsa_indexer.py read them with
os.environ.get(...) == "1", so common forms like
SGLANG_DSA_DECODE_DENSE_GRAPH=true silently no-op'd. Use envs.<FLAG>.get()
for both so behavior matches the EnvBool declaration and the rest of the
codebase's env conventions.

Co-authored-by: Cursor <[email protected]>
@1am9trash 1am9trash added amd run-ci CI: run the baseline test suite on this PR labels Jul 16, 2026
Jacob0226 and others added 3 commits July 19, 2026 21:50
…ner (--mtp)

EAGLEDraftCudaGraphRunner subclasses DecodeCudaGraphRunner and reuses its
capture(), but does not run DecodeCudaGraphRunner.__init__ (so it never sets
dsa_dual_graph) and overrides capture_one_shape with a signature that has no
dsa_variant. Under --mtp this raised
  AttributeError: 'EAGLEDraftCudaGraphRunner' object has no attribute 'dsa_dual_graph'
at cuda-graph capture. Guard the dual-graph checks with getattr(..., False) and,
for the None variant, call capture_one_shape without the extra dsa_variant arg so
the narrower draft override still works.

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>

# Conflicts:
#	python/sglang/srt/model_executor/runner/decode_cuda_graph_runner.py
Add .numel() > 0 checks before calling .max() on seq_lens_cpu / seq_lens
in _should_skip_logits_computation, so an empty batch cannot raise a
RuntimeError. Consistent with the existing numel guard elsewhere in this
file. Addresses review feedback on the extend and eager-decode gates.

@clintg6 clintg6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jacob0226 Tested on MI355X with GLM-5.2-MXFP4 (TP8, 1024 ISL / 1024 OSL). The dual-graph dispatch works correctly. Benchmark results showed around 3% uplift in Total token throughput. With that said, I have a number of recommendations to improve the PR.

Remove SGLANG_KONLY_DEBUG

This appears to be a leftover debug flag. It's only used to gate a single logger.info call in _forward_cuda_k_only, so it shouldn't ship in production. Remove it from environ.py and the associated logging block in dsa_indexer.py.

Remove SGLANG_DSA_DECODE_DUAL_GRAPH and auto-enable for DSA models

Since DSA models already expose index_topk in their HF config, users shouldn't need to enable this manually. Auto-detect DSA models instead:

# Instead of:
self.dsa_dual_graph = envs.SGLANG_DSA_DECODE_DUAL_GRAPH.get()

# Use:
self.dsa_dual_graph = self.dsa_index_topk is not None

Remove SGLANG_DSA_DECODE_DENSE_GRAPH

This forces dense decode by unconditionally bypassing the indexer, making it another debug/testing override and is unnecessary.

@Jacob0226

Copy link
Copy Markdown
Contributor Author

/rerun-failed-ci

@Jacob0226

Copy link
Copy Markdown
Contributor Author

/rerun-failed-ci

@Jacob0226

Copy link
Copy Markdown
Contributor Author

@amd-bot ci-status

@amd-bot

amd-bot commented Aug 13, 2026

Copy link
Copy Markdown

@Jacob0226

CI Status for PR #31324

Merge verdict: ⛔ Do not merge on green alone. PR CI is incomplete (AMD downstream fast-fail skipped) and this PR's core changed code is not exercised by any PR-CI test. All 4 executed failures are pre-existing/infra issues unrelated to this DSA decode change — but "0 related failures" here does not mean the PR is verified. The new k-only / dual-graph decode path is AMD-only + DSA-model-gated, and nothing in PR CI loads a DSA model on AMD.

Caution

Two coverage gaps, both blocking verification:

  1. Changed code is unreachable by PR CI. The feature activates only when is_hip() and is_deepseek_dsa(hf_config) (decode_cuda_graph_runner.py) — i.e. AMD GPU + a DSA model (DeepSeek-V3.2 / GLM-5.2 with index_topk). All DSA/GLM-5 end-to-end tests live under test/manual/ (README: "Non-CI tests") and require B200/GB300/8-GPU. No registered PR-CI suite loads a DSA model on AMD. Green proves only that the modules import and the non-DSA graph path is unbroken.
  2. AMD pipeline did not finish. wait-for-stage-b-amd failed (cascade from an unrelated test_tracing failure in stage-b-test-1-gpu-small-amd (9)), which skipped 11 downstream AMD jobs — including stage-c-test-4-gpu-amd, stage-c-test-large-8-gpu-amd, and stage-c-test-large-8-gpu-amd-mi35x, the multi-GPU suites where a large DSA model could plausibly run. AMD signal for this PR is not full.

Before merge: run a DSA model (GLM-5.2 / DeepSeek-V3.2) decode on AMD MI300 to actually exercise _forward_cuda_k_only + the dense/sparse dual-graph dispatch (both the k-only and the mixed kv_len > index_topk fallback). Re-run AMD CI (rebase past the test_tracing fix, or apply bypass-fastfail) so stage-c completes.

Changed files: dsa/dsa_indexer.py (+67/−6), runner/decode_cuda_graph_runner.py (+91/−10), runner/shape_key.py (+6/−3), runner_utils/capture_mode.py (+18/−0)

Executed CI failure attribution: AMD: 1 executed failure (0 related) · NPU: 2 (0 related) · MLX: 1 (0 related). No jobs pending. (11 AMD downstream jobs skipped by fast-fail — counted as a completeness gap above, not as failures.)

AMD Executed Failures

Job Test File Test Function Error Related? Why
stage-b-test-1-gpu-small-amd (9) test/registered/observability/test_tracing.py TestTraceServerAsync.setUpClass AttributeError: module 'sglang.srt.observability.trace' has no attribute 'global_trace_level' → server 500 on warmup 🟢 unlikely Observability/tracing module; PR touches only DSA indexer + CUDA-graph runner. Pre-existing on main. This is what tripped wait-for-stage-b-amd and cascaded the AMD skips.

Other Executed Failures

Job Test File Test Function Error Related? Why
base-c-test-perf-8-npu-a3 test/registered/npu/performance/minimax_m2_5/test_npu_minimax_m2_5_w8a8_4p_in64k_out1k_prefix90_50ms.py perf assertion AssertionError: 52.31 not less than or equal to 51.0 🟢 unlikely NPU MiniMax-M2.5 latency threshold miss; unrelated backend + model.
multimodal-gen-test-2-npu-a3 sglang/multimodal_gen/test/server/ascend/test_server_2_npu.py TestDiffusionServerTwoNpu.test_diffusion_generation[*] RuntimeError: Server exited early (code 1) — scheduler dead, Exit code: -9 (SIGKILL/OOM) 🟢 unlikely NPU diffusion (multimodal_gen) server OOM; separate code path from LLM DSA decode.
stage-a-unit-test-mlx test/registered/unit/hardware_backend/mlx/test_metal_profiler.py Metal capture test AssertionError: Failed to start MLX Metal capture: Capture layer is not inserted 🟢 unlikely Apple-Silicon MLX profiler infra (needs MTL_CAPTURE_ENABLED=1); unrelated backend.

Cascade/aggregator failures collapsed (not independent): pr-test-{npu,amd,mlx,extra,amd-extra}-finish, wait-for-stage-b-amd, call-gate / pr-gate (×2).

Details / what to do before merge

  • Verify the changed code for real — the single most important gap. Launch a DSA model decode on AMD MI300 and confirm: (a) k-only fast path when kv_len <= index_topk, (b) correct sparse fallback for a mixed batch with some kv_len > index_topk, (c) the dense/sparse dual-graph capture + _resolve_dsa_variant replay dispatch. The registered unit tests that import the changed modules (test_decode_cuda_graph_war_fence.py, test_hidden_state_graph_recapture.py) passed but do not set dsa_dual_graph (no DSA model, not HIP), so they exercise only the dsa_variant=None default paths.
  • Get full AMD signal — the test_tracing global_trace_level failure is pre-existing (In-flight fix: ❌ none found in open PRs) and is what skipped stage-c 4/8-GPU AMD. Rebase past a tracing fix or apply bypass-fastfail (uses more CI, use sparingly) and re-run so downstream AMD jobs actually execute.
  • NPU + MLX failures need no action from this PR's author (unrelated backends/infra), but the NPU diffusion OOM and MiniMax perf miss are worth flagging to the NPU owners separately.

Generated by amd-bot using Claude Code CLI

@Jacob0226

Copy link
Copy Markdown
Contributor Author

/rerun-failed-ci

@Jacob0226

Copy link
Copy Markdown
Contributor Author

@amd-bot ci-status

@amd-bot

amd-bot commented Aug 14, 2026

Copy link
Copy Markdown

@Jacob0226

CI Status for PR #31324

Merge verdict: No blocking PR-caused failures — all 3 executed test failures are in code paths this PR does not touch (AMD allreduce-fusion mock, NPU MiniMax perf, NVIDIA NIXL RDMA infra). But do not merge on "green" alone: this PR's entire value — the DSA decode skip-indexer fast path for GLM5/DeepSeek-V3.2 on AMD — is exercised only by nightly=True suites, so PR CI never ran the changed code.

Caution

This PR's changed code is not exercised by any PR-CI test. The DSA decode-indexer fast path in dsa_indexer.py / decode_cuda_graph_runner.py is only covered by AMD accuracy suites registered nightly=True (nightly-amd-accuracy-8-gpu-glm5, nightly-amd-accuracy-8-gpu-deepseek-v32, nightly-amd-8-gpu-mi35x-glm5-mxfp4, nightly-amd-accuracy-8-gpu-glm51). None of these run on PR CI. A green run does not verify this change. Before merging, run a GLM5 / DeepSeek-V3.2 decode eval on AMD (e.g. test/registered/amd/accuracy/mi30x/test_glm5_eval_amd.py or test_deepseek_v32_eval_amd.py with CUDA-graph decode enabled) and confirm the kv_len <= index_topk dense k-only fast path produces correct output.

Changed files: dsa/dsa_indexer.py (+67/-6), runner/decode_cuda_graph_runner.py (+91/-10), runner/shape_key.py (+6/-3), runner_utils/capture_mode.py (+18/-0)

Executed CI failure attribution: AMD: 1 failure (0 related) · Others: 2 root failures (0 related) — NPU perf2/4/16 are fast-fail cascades of NPU perf8; B200 shard cancelled (infra); all *-finish / pr-gate jobs are aggregators reflecting the above.

AMD Executed Failures

Job Test File Test Function Error Related? Why
stage-c-test-large-8-gpu-amd-rocm720 (mi300-8gpu, 3) test/registered/ops/test_aiter_allreduce_fusion_amd.py TestAiterAllreduceFusionGate.test_dense_tp_fuses AttributeError: 'types.SimpleNamespace' object has no attribute 'moe_ep_size' 🟢 Failure is in the aiter allreduce-fusion gate; the test's SimpleNamespace mock lacks moe_ep_size. PR touches DSA decode indexer / CUDA-graph capture only — no allreduce, MoE, or server-args code. Test-mock/prod drift unrelated to this PR.

Other Executed Failures

Job Test File Test Function Error Related? Why
base-c-test-perf-8-npu-a3 test/registered/npu/performance/minimax_m2_5/test_npu_minimax_m2_5_w8a8_4p_in64k_out1k_prefix90_50ms.py test_npu_minimax_m2_5_w8a8_4p_in64k_out1k_prefix90_50ms AssertionError: tpot 51.86 not <= 51.0 (baseline 50.0) 🟢 NPU (Ascend) backend, MiniMax-M2.5 W8A8 perf threshold miss by 1.7%. Different backend & model; PR is AMD/GLM DSA decode. Marginal perf flake. NPU perf2/4/16 fast-fail-cascaded off this root cause.
base-c-test-8-gpu-h20 (1) test/registered/disaggregation/test_disaggregation_nixl.py TestDisaggregationNixlAccuracy.setUpClass UCX ERROR mlx5dv_devx_general_cmd ... Remote I/O error → NIXL_ERR_BACKEND → server exit -9 🟢 NIXL/UCX InfiniBand RDMA registration failure on the h20 runner — a known-flaky infra condition (CLAUDE.md notes h20 dirty-GPU state is filtered from fast-fail). From an earlier attempt (2026-08-13). Not code-related.

base-c-test-4-gpu-b200 (2) was cancelled (A task was canceled during action download) — infra, not a test failure.

Details / what to do before merge

  • Coverage (the real action item): This is a decode-time behavior change (skip the DSA indexer when kv_len <= index_topk). It only triggers when serving a DSA model (GLM5 / DeepSeek-V3.2) in decode with CUDA graph — a path with zero PR-CI coverage since all such suites are nightly=True. Trigger the relevant nightly AMD accuracy suite (or run test_glm5_eval_amd.py / test_deepseek_v32_eval_amd.py manually on MI300/MI325) before merging; confirm both the fast-path (kv_len <= index_topk) and the normal indexer path produce matching accuracy.
  • AMD allreduce failure: not caused by this PR, but it is a real red on rocm720 stage-c — worth a separate check by the AMD team (looks like an aiter allreduce-fusion gate test whose mock is missing moe_ep_size; may already be a known/tracked break).
  • NPU / h20 / b200 failures: unrelated infra/perf flakes on other vendors; no action needed for this PR.

Generated by amd-bot using Claude Code CLI

@HaiShaw

HaiShaw commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

CI green, final update to comment 903fe7d

@HaiShaw
HaiShaw merged commit f7cb328 into sgl-project:main Aug 16, 2026
66 of 98 checks passed
danielchristiancazares pushed a commit to danielchristiancazares/sglang that referenced this pull request Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amd run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants