Repository navigation
[AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang agentic MTP: ROCm 10 image 20261124, #4832 recipe with 5 upstream-PR patches, conc 1/2/12/24/48/80 / [AMD][MI35X] Qwen3.8-Flash-Next:ROCm 10 镜像 20261124,沿用 #4832 recipe(5 个上游 PR 补丁),并发 1/2/12/24/48/80 - #5206
Draft
ChangLiu0709 wants to merge 72 commits into
Draft
ChangLiu0709 wants to merge 72 commits into
ChangLiu0709 wants to merge 72 commits into
Conversation
…(upstream image) Add qwen3.8next-fp4-mi355x-sglang-agentic-mtp in the srt-slurm recipe layout: amd/Qwen3.8-Flash-Next-Quark-MXFP4-PLEFP8 on the upstream lmsysorg/sglang:v0.5.21-rocm724-mi35x image (pinned by digest), TP1/EP1, conc 1-16, native NEXTN MTP (3 steps, eagle-topk 1, 4 draft tokens) with the aiter attention backend. No local SGLang/AITER patches. Co-authored-by: Cursor <cursoragent@cursor.com>
…age at conc 8/12/16 Co-authored-by: Cursor <cursoragent@cursor.com>
…xt MI355X AgentX recipe Co-authored-by: Cursor <cursoragent@cursor.com>
…X AgentX recipe Co-authored-by: Cursor <cursoragent@cursor.com>
…10 image with patches Image: lmsysorg/sglang-rocm:v0.5.21-rocm10-mi35x-20261014 (pinned by digest). The recipe's setup_script patches its editable AITER (e7d2453f) and SGLang (bab9c81f) checkouts before the server starts: - ROCm/aiter#5992: FlyDSL causal conv1d prefill and GDN decode/verify - sgl-project/sglang#41879, ported to bab9c81f: opt-in SGLANG_AITER_GDN_CONV/_DECODE hooks - fused Triton QK Gemma-RMSNorm + M-RoPE + gate on HIP for Qwen3.5/Qwen3.8 A patch that no longer applies fails the worker. Local check on MI355X (TP1, recipe server args at conc 16, CI's lm-eval GSM8K, 5-shot, full test set): 0.9636 with GDN conv on and GDN decode off, as in the recipe; 0.9697 with GDN decode on too. Co-authored-by: Cursor <cursoragent@cursor.com>
…m 10 image amd/Qwen3.8-Flash-Next-Quark-MXFP4-PLEFP8 stores the MTP experts in BF16 but its Quark exclude list only names the MTP shared expert, so the draft model loaded the routed experts as MXFP4 and failed with a 1280 vs 2560 size mismatch. Apply the loader fix from amd-nprotaso/sglang qwen_3_8_improvement, which disables Quark for the draft when the checkpoint's MTP weights are unquantized. GSM8K (5-shot, recipe args, 1 GPU) with this checkpoint on the upstream image plus the setup script: 0.9697. Co-authored-by: Cursor <cursoragent@cursor.com>
… on MI355X Switch qwen3.8next-fp4-mi355x-sglang-agentic-mtp to amd/Qwen3.8-Flash-Next-Quark-MXFP4-AttnFP8-PLEFP8: MoE experts (including the shared and MTP experts) in OCP MXFP4, self-attention and linear-attention projections (including MTP self-attention) in per-channel FP8 with dynamic per-token FP8 activations, and the PLE table in per-tensor FP8. The upstream image's Quark W8A8 FP8 scheme serves the attention layers, and the draft keeps Quark since its MTP weights carry quantization scales. GSM8K (5-shot, recipe args, 1 GPU) on the upstream image plus the setup script: 0.9704; MTP mean accept length unchanged (3.49 vs 3.50). Co-authored-by: Cursor <cursoragent@cursor.com>
Add SGLANG_MAMBA_SSM_DTYPE=bfloat16 and SGLANG_USE_AITER_FP8_PER_TOKEN=1 to the server env, matching the checkpoint's reference setup. On this image the SSM dtype already follows --mamba-ssm-dtype, and the Quark W8A8 FP8 scheme takes per-token activation scaling from the checkpoint config. Co-authored-by: Cursor <cursoragent@cursor.com>
…ratio-3 packing into the MI355X image
Extend the recipe's setup script with five optimizations from
amd-nprotaso/{aiter,sglang} qwen_3_8_improvement and sgl-project/sglang#44302,
each as its own patch (AITER kernel, then the SGLang dispatch):
- FlyDSL hc_mix for the hyper-connection mix (SGLANG_AITER_HC_MIX, default
on) and the single-kernel hc_combine on ROCm (SGLANG_HC_COMBINE_SPLIT off)
- FlyDSL BF16 paged decode for QSA post-gather attention
(SGLANG_AITER_QSA_PA_DECODE, opt-in)
- single-kernel FlyDSL GDN chunked prefill (SGLANG_AITER_GDN_PREFILL=1 with
SGLANG_AITER_GDN_PREFILL_H=fused, opt-in)
- AITER topk_gating for the 512-expert softmax router
(SGLANG_ROCM_USE_AITER_TOPK_GATING, default on)
- fused QKVZ/BA packing for head ratio 3 (sglang#44302)
Later patches touch files of earlier ones, so the script now records the
applied patch set in a marker instead of reverse-checking each patch, and
resolves the patch directory to an absolute path. Applied to clean e7d2453f
and bab9c81f checkouts the result matches the source branches; a re-run is
a no-op. Not yet served end to end.
Co-authored-by: Cursor <cursoragent@cursor.com>
Serve with --ple-offload-embedding and declare the fp8 PLE storage through --json-model-override-args (text_config.ple_embedding_dtype=float8_e4m3fn): SGLang rejects switching the offloaded table to fp8 at load. Frees the table's GPU memory for KV cache. Not yet verified on MI355X. Co-authored-by: Cursor <cursoragent@cursor.com>
…loading and GDN decode
Three more patches from amd-nprotaso/{aiter,sglang} qwen_3_8_improvement for the
upstream ROCm 10 image:
- sglang 7e3eb83f97: padded QSA group writes read the inert source slot, off-page
prefixes use the absolute mamba checkpoint grid, separate shared-expert tensors
load into the fused MoE slot (strict for the MTP draft)
- sglang d309df65df: unfinished prefill chunks end on a QSA page under exact
chunk fill (on by default for gfx95); tests ported to this image's Req API
- aiter badcd62a: faster FlyDSL GDN decode/verify (SGLANG_AITER_GDN_DECODE)
Verified locally on the upstream image: all 15 patches apply, unit tests from
the source commits pass (77), FlyDSL GDN decode matches Triton for decode and
MTP verify, GSM8K 0.9742 (GDN decode off) / 0.9689 (on) with PLE offload, and
two-turn long-prompt retrieval up to ~90k tokens is 20/20.
Co-authored-by: Cursor <cursoragent@cursor.com>
…nFP8 checkpoint, ROCm 10 image patches and PLE offload Co-authored-by: Cursor <cursoragent@cursor.com>
…ant env - sglang-unquantized-mtp-draft.patch only disabled Quark for a fully floating-point MTP branch; the AttnFP8 checkpoint's MTP experts are MXFP4 with scales, so it never fired. The next SGLang patch is re-exported for the shifted qwen3_5_mtp.py offsets; its content is unchanged. - SGLANG_MAMBA_SSM_DTYPE is set from --mamba-ssm-dtype at startup. - SGLANG_USE_AITER_FP8_PER_TOKEN is read only by Fp8LinearMethod; the checkpoint's per-channel FP8 attention is served by QuarkLinearMethod. Local GSM8K on the CI recipe with PLE offload, 3 runs each: 0.9709 before, 0.9697 after (same-setup spread 0.9659-0.9742); MTP accept length unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
…ode recipe The patches move to qwen3.8next/sglang/mi355x-fp4-mtp/patches/ next to agentic.yaml. srtctl looks up setup_script only in configs/, so the entry script stays there and reads the patches through the /infmax-workspace mount. Co-authored-by: Cursor <cursoragent@cursor.com>
… and fused GDN prefill GSM8K stays within same-setup noise with all three on (0.9735, 0.9659 vs 0.9697), accept length 3.49, and long-context two-turn retrieval 20/20. Co-authored-by: Cursor <cursoragent@cursor.com>
…provement Add the fused FlyDSL QSA sparse decode, the fused GDN decode proj+conv on HIP with off-by-default GDN prefill opt-ins, QSA paged decode on AITER mainline's planned pa_decode, and FlyDSL hc_mix up to 128 rows (sglang 0c3cedfc32, 1275650163, 67750e35dc; aiter 47d91306, a4909abc). The mainline pa_decode keeps this image's FlyDSL 0.3.4.1 buffer_ops and kernels_common. Co-authored-by: Cursor <cursoragent@cursor.com>
…uned GEMM tables sglang 6c6300f49f as an off-by-default patch (shared attention input quant, fused GDN norm + out_proj quant, shared-expert gate in the router, lm_head through tgemm) and aiter 38e2650b's Qwen3.8 gfx950 tuned GEMM tables, which AITER loads by default. aiter ee5f7a82 (fused MoE sort + quant) changes C++ sources and is left out: the setup script does not rebuild AITER. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…spec-verify Turn on SGLANG_OPT_QWEN4_SHARED_ATTN_QUANT, _QWEN4_FUSED_GDN_NORM_QUANT, _QWEN_MOE_FUSED_SHARED_TOPK and _AITER_LM_HEAD_GEMM, AITER_GDR_FLYDSL, --enable-linear-replayssm-spec and --tokenizer-worker-num 6. The fused GDN norm quant needs the sigmoid gate from aiter #5392, added as a patch whose JIT module is rebuilt in the container. Co-authored-by: Cursor <cursoragent@cursor.com>
…branches Move to lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261018, whose AITER (2bb54910) already carries the FlyDSL QSA pa_decode and sigmoid-gated norm quant patches, so those two are dropped. Add Christian's fused decode MoE route-sort + MXFP4 quant (aiter #6165, #6467, ee5f7a82) with the mainline fused_moe.py it depends on (aiter #6225, #5804, #6050), and Nikolai's MTP draft quantization resolution from checkpoint headers. Co-authored-by: Cursor <cursoragent@cursor.com>
Add the Qwen4-Exp FlyDSL monokernel from amd-nprotaso/sglang qwen_3_8_improvement (7aca04ba83, 657dcf9ee5) as an SGLang patch and turn it on for target verify and the MTP draft. Its verify path writes the per-draft intermediate SSM states, which ReplaySSM spec-verify does not allocate, so --enable-linear-replayssm-spec is dropped. Co-authored-by: Cursor <cursoragent@cursor.com>
…-static 0.9 Co-authored-by: Cursor <cursoragent@cursor.com>
… at c8+ Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
… at c16 Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ction-static 0.85 Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…refactor Co-authored-by: Cursor <cursoragent@cursor.com>
…upstream PRs; c12 on HiCache, fused GDN prefill AITER 01-03 (ROCm/aiter#5992, #6670, #6496) and SGLang 04-10 (sglang#48648, #45196, #48649, #45529, #41683, #41879, #44103), source files only, applied in order by qwen3.8next-rocm10-patches.sh on the 20261102 image. Patch 10 forwards the image's **kwargs to the new _extend() and skips the AITER prefill for a captured prefill graph. SGLANG_AITER_GDN_PREFILL_H=fused selects the single-kernel prefill of aiter#6496. c12 joins c24/c48/c80 on FP8 KV + HiCache; c1-c8 and c16 keep GPU-resident KV.
GPU-resident KV at c1 and c2 (monokernel); FP8 KV + HiCache at c12, c24, c48 and c80. Drop the c4, c8 and c16 points and their recipe overrides.
…refactor # Conflicts: # inferencex-e2e/perf-changelog.yaml
…refill breakable at c12-c80 The AMD reference recipes moved to a 262144-token Mamba checkpoint interval and breakable prefill CUDA graphs (their patch 22 makes breakable the ROCm default; this image lacks it, so the flag is passed explicitly). The changelog entry says so.
…refactor # Conflicts: # inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/qwen3.8next/sglang/mi355x-fp4-mtp/agentic.yaml # inferencex-e2e/configs/amd-master.yaml # inferencex-e2e/perf-changelog.yaml
… c80 c12 and c24 move to the kv-offloading none search-space entry (conc-list 1, 2, 12, 24) and lose enable-hierarchical-cache, hicache-size, hicache-io-backend, hicache-mem-layout and hicache-write-policy; c48 and c80 keep them (hicache-size 298). FP8 KV, the 262144 track interval, breakable prefill graphs and fused HC stay at c12-c80.
…refactor # Conflicts: # inferencex-e2e/perf-changelog.yaml
…, drop the three AITER patches The setup script pip-installs the sha256-pinned v0.1.29 ROCm 7.14 / cp312 wheel (no deps) and flydsl 0.4.2 over the image's editable AITER, checks that python imports the wheel, then applies the seven SGLang patches (renumbered 01-07). v0.1.29 contains aiter#5992, #6670, #6496 and the hc_mix kernels. The ROCm 10.0 and 10.1 wheels fail on any tensor call with the image's torch (built for HIP 7.15); the 7.14 build works.
…upport) as patch 08 Co-authored-by: Cursor <cursoragent@cursor.com>
…refactor # Conflicts: # inferencex-e2e/perf-changelog.yaml
…81579ab), drop the AITER wheel install, rebase the 7 SGLang patches (sglang#41683 is merged) Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Nikolai <289648307+amd-nprotaso@users.noreply.github.com> Co-authored-by: Christian Gilli <272772515+amd-cgilli@users.noreply.github.com> Co-authored-by: Amanzhol Salykov <asalykov@amd.com> Co-authored-by: wufann <36477220+wufann@users.noreply.github.com> Co-authored-by: Thomas Wang <1am9trash@gmail.com> Co-authored-by: Chun-Hung Yeh <Chun-Hung.Yeh@amd.com> Co-authored-by: jacky.cheng <yichiche@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com>
…88dc7501f5), drop the two merged patches Same recipe as #4832 on the 20261124 image. sglang#45196 and #48649 merged on 2026-11-23 and are in the image, so patches 02 and 03 are dropped; the other five are rebased onto 88dc7501f5 (#48090 re-resolved against the refactored verify path, min-p requests keep the dense path). Co-authored-by: Nikolai <289648307+amd-nprotaso@users.noreply.github.com> Co-authored-by: Christian Gilli <272772515+amd-cgilli@users.noreply.github.com> Co-authored-by: Amanzhol Salykov <asalykov@amd.com> Co-authored-by: wufann <36477220+wufann@users.noreply.github.com> Co-authored-by: Thomas Wang <1am9trash@gmail.com> Co-authored-by: Chun-Hung Yeh <Chun-Hung.Yeh@amd.com> Co-authored-by: jacky.cheng <yichiche@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Thanks for the contribution!
中文感谢你的贡献!
|
… no setup script Drop the five SGLang patches and qwen3.8next-rocm10-patches.sh, and the env flags that only the patches read (SGLANG_OPT_QWEN4_FUSED_HC, SGLANG_AITER_GDN_CONV, SGLANG_AITER_GDN_PREFILL[_H]). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…on the 20261124 image sglang#46210 (in the 20261124 image) makes the draft CUDA graph runners call the capture tail hooks; the monokernel's check rejects the draft's decode step and c1/c2 fail at startup. One SGLang patch via the setup script; no other patches. Co-authored-by: Cursor <cursoragent@cursor.com>
…4 as the one patch The setup script now patches the image's sgl-amd-mono checkout with the source files of sgl-project/sgl-amd-mono#184; the SGLang binding patch is removed. Co-authored-by: Cursor <cursoragent@cursor.com>
…aft capture check Replaces the sgl-amd-mono #184 patch, which does not fix c1/c2. The image's SGLang (sglang #46210) runs the monokernel capture check on the MTP draft's graph captures and rejects the draft's 1-token decode step; the sgl-amd-mono fix (sgl-project/sgl-amd-mono#204) makes the draft's build keep draft runners out of the check. Co-authored-by: Cursor <cursoragent@cursor.com>
…ew of sgl-amd-mono#204 Co-authored-by: Cursor <cursoragent@cursor.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#4832 on the newest ROCm 10 image, with one patch to the image's sgl-amd-mono:
lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261124@sha256:7908705b0da24c2b7b3e5709818f280713bbc6dd2bc3a7e53da80f1829ea6f92(SGLang88dc7501f5, AITER581579ab0.1.29.dev156, FlyDSL 0.4.2, sgl-amd-mono32a12203) is used as shipped, plus the monokernel fix below (not an SGLang patch). Qwen3.8-Flash-Next Quark MXFP4 (FP8 attention, FP8 PLE) AgentX on MI355X, SGLang native NEXTN MTP, TP1/EP1, concurrency 1, 2, 12, 24, 48 and 80, same search space and serving settings as #4832. The branch is #4832's branch merged with currentmain(which also resolves #4832's conflicts), plus the image bump and the patch changes.qwen3.8next-fp4-mi355x-sglang-agentic-mtp:kv-offloading: nonewithconc-list: [1, 2, 12, 24], andkv-offloading: dram(backendhicache) withconc-list: [48, 80], oneagentic.yamlrecipe.patches/01-sgl-amd-mono-qwen38-draft-capture-check.patch, applied byqwen3.8next-rocm10-patches.shto the image's/sgl-workspace/sgl-amd-mono, not to SGLang): sglang#46210 (merged 2026-11-20, in this image, not in 20261117) makes the draft decode and draft extend CUDA graph runners call the capture tail hooks. SGLang's monokernel capture check (kernel_plugins/amd/binding.py) compares the draft's 1-token decode step with thetarget_verifykeys it serves and raises--enable-amd-monokernel: none of the 1 captured decode graphs ... runs qwen38_flash_next_mtp_draft_hip's monokernels, so c1 and c2 (the draft covers 1 to 8 requests) do not start on this image without it (reproduced, with and without the [AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang agentic MTP: ROCm 10 image 20261117 + 7 upstream-PR patches, conc 1/2/12/24/48/80 / [AMD][MI35X] Qwen3.8-Flash-Next:ROCm 10 镜像 20261117 + 7 个上游 PR 补丁,并发 1/2/12/24/48/80 #4832 patches). sgl-amd-mono#184 does not fix it. The fix is sgl-project/sgl-amd-mono#204: the draft spec's build makes the check skip draft runners (they route and log their own steps), the target runner's check is unchanged. The patch is that PR's source change; drop it once the image's sgl-amd-mono has the PR. The SGLang-side fix is sglang#53137 (the capture check skips draft runners, for every monokernel spec); the longer-term route is sglang#47102.SGLANG_OPT_QWEN4_FUSED_HC(sglang#48648),SGLANG_AITER_GDN_CONV(#41879),SGLANG_AITER_GDN_PREFILLand_H=fused(#44103). The still-open #45529 (fused QK norm + RoPE + gate) and #48090 (sparse MTP rejection target probs) are not applied either. Expect lower numbers than [AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang agentic MTP: ROCm 10 image 20261117 + 7 upstream-PR patches, conc 1/2/12/24/48/80 / [AMD][MI35X] Qwen3.8-Flash-Next:ROCm 10 镜像 20261117 + 7 个上游 PR 补丁,并发 1/2/12/24/48/80 #4832's patched recipe at the points those kernels served (GDN prefill is the Triton kernel here).SGLANG_USE_AITERis set on gfx950.SGLANG_ENABLE_SPEC_V2is kept as in [AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang agentic MTP: ROCm 10 image 20261117 + 7 upstream-PR patches, conc 1/2/12/24/48/80 / [AMD][MI35X] Qwen3.8-Flash-Next:ROCm 10 镜像 20261117 + 7 个上游 PR 补丁,并发 1/2/12/24/48/80 #4832 although current SGLang no longer reads it. Appended one entry at the end ofinferencex-e2e/perf-changelog.yaml.Validation
setup_scriptapplies exactly the one patch file, it applies on the image's sgl-amd-mono32a12203, and the recipe has none of the dropped patches' env flags: PASS. The sgl-amd-mono unit tests pass in the image with the change (658 passed, 6 skipped).('DECODE', 1, 1)and('DRAFT_EXTEND_V2', 1, 4)steps, on the monokernels.srt-slurm, all checks passed, no monokernel refusal): c1 P90 interactivity 391.8 tok/s/user, 16,394 total tok/s/GPU, 0/655 failed requests; c2 299.9 and 20,545, 0/785 failed. An earlier run with the equivalent SGLang-side patch gave c24 85.3 and 122,111, 0 failed. Not yet run on this image: c12, c48, c80, GSM8K and the e2e Test workflow.AI model disclosure
PR checklist and change type
Type of Change
Checklist
inferencex-e2e/perf-changelog.yamland have not edited historical entriesfull-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied.OWNER/MEMBER/COLLABORATOR) has commented/use <run_id>(or the legacy/reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.中文
摘要
在最新的 ROCm 10 镜像
lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261124@sha256:7908705b…(SGLang88dc7501f5,AITER581579ab0.1.29.dev156,FlyDSL 0.4.2)上沿用 #4832 的 recipe,仅保留 1 个补丁(针对镜像内 sgl-amd-mono 的 monokernel 修复,不改 SGLang),其余镜像原样使用。Qwen3.8-Flash-Next Quark MXFP4(FP8 attention、FP8 PLE)AgentX,MI355X,SGLang 原生 NEXTN MTP,TP1/EP1,并发 1、2、12、24、48、80,搜索空间与服务器参数同 #4832。分支为 #4832 的分支合并当前main(同时解决了 #4832 的冲突),再更新镜像并调整补丁。patches/01-sgl-amd-mono-qwen38-draft-capture-check.patch,由qwen3.8next-rocm10-patches.sh应用到镜像的/sgl-workspace/sgl-amd-mono,不改 SGLang):sglang#46210(2026-11-20 合并,在本镜像中,不在 20261117 镜像中)让 draft 的 decode 与 extend CUDA graph runner 调用 capture tail hooks;SGLang 的 monokernel capture 检查把 draft 的单 token decode 步与其服务的target_verifykey 比较并抛出--enable-amd-monokernel: none of the 1 captured decode graphs ...,因此不打补丁时 c1、c2(draft 覆盖 1 到 8 个请求)在本镜像上无法启动。sgl-amd-mono#184 不能修复。修复为 sgl-project/sgl-amd-mono#204:draft spec 的 build 让该检查跳过 draft runner(draft 自行路由与记录),target runner 的检查不变。补丁即该 PR 的源码改动,镜像的 sgl-amd-mono 包含该 PR 后应删除。SGLang 侧的通用修复见 sglang#53137(capture 检查跳过 draft runner,适用于所有 monokernel spec);长期方案见 sglang#47102。SGLANG_OPT_QWEN4_FUSED_HC(sglang#48648)、SGLANG_AITER_GDN_CONV(#41879)、SGLANG_AITER_GDN_PREFILL与_H=fused(#44103);尚未合并的 #45529 与 #48090 也不再应用。相关 kernel 所在并发点的性能预计低于 [AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang agentic MTP: ROCm 10 image 20261117 + 7 upstream-PR patches, conc 1/2/12/24/48/80 / [AMD][MI35X] Qwen3.8-Flash-Next:ROCm 10 镜像 20261117 + 7 个上游 PR 补丁,并发 1/2/12/24/48/80 #4832(此处 GDN prefill 为 Triton kernel)。inferencex-e2e/perf-changelog.yaml末尾追加一条记录。验证
setup_script仅应用这 1 个补丁,可在镜像的 sgl-amd-mono32a12203上应用,无已删除补丁的环境变量);镜像内 sgl-amd-mono 单测通过(658 passed,6 skipped)。('DECODE', 1, 1)、('DRAFT_EXTEND_V2', 1, 4)步都运行在 monokernel 上。AI 模型使用说明