Skip to content

[AMD][MI35X] 1021 DSV41 sglang mtp agentic - #4367

Merged
edwingao28 merged 7 commits into
mainfrom
amd/dsv41flash-mi355x-sglang-1021
Oct 22, 2026
Merged

edwingao28 merged 7 commits into
mainfrom
amd/dsv41flash-mi355x-sglang-1021

Conversation

@1am9trash

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@1am9trash 1am9trash added AMD agentx AgentX benchmarks, recipes, and infrastructure labels Oct 21, 2026

@claude claude 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.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Besides the inline comment, I checked two more things and neither is a problem. First, the new env: block in override_tp2_c32 sits under roles.agg, at the same level as the env blocks in the DP2 overrides, so it gets applied. Second, monokernel-backend: amd is set only on the TP2 and TP4 c1–c16 overrides, so no override combines it with SGLANG_HIP_DSV41_INDEX_K_PAGE8.

Extended reasoning...

The change bumps the SGLang ROCm image for one MI355X agentic config. It also adjusts the env vars and the monokernel flag in its srt-slurm recipe and appends a changelog entry. I checked the YAML nesting of the new env block and that no override pairs the monokernel flag with the INDEX_K_PAGE8 layout. Neither is a problem.

Comment thread inferencex-e2e/configs/amd-master.yaml Resolved
@1am9trash 1am9trash added the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Oct 21, 2026
@1am9trash

Copy link
Copy Markdown
Collaborator Author

/reuse-sweep-run 39596624542

@1am9trash

Copy link
Copy Markdown
Collaborator Author
image

@zijiecode zijiecode left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As a PR reviewer and CODEOWNER, I have reviewed this and have:

  • Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
  • Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
  • Verified that this PR has passed PR validation. https://inferencex.semianalysis.com/inference?unofficialRun=39596624542
  • Verified that this PR passes evals.  https://inferencex.semianalysis.com/inference?unofficialRun=39596624542
  • Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
  • Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
  • Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
  • If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
  • Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the sgl-project/sglang#45693 and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
  • Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/<PR_NUMBER>.md — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.
  • If this PR uses append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.
  • If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. [Details](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/codeowner-signoff-verify-prompt.md#c…

Additional detail section:

Cookbook PR: sgl-project/sglang#45693
Draft precision:

  • No draft-specific setting; draft is the in-checkpoint DSpark head of deepseek-ai/DeepSeek-V4.1-Flash.
  • Stored: mtp.* attn / shared experts / main_proj F8_E4M3, routed experts MXFP4, norms/gate BF16.
  • Pinned lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261021 (sglang 2815eed49c) converts wo_a FP8->BF16 by default.
  • That image includes sgl-project/sglang#45480: V4.1 moe, draft included, default to MXFP8 acts; AITER_BF16_FP8_MOE_BOUND is no longer set.
    --monokernel-backend amd (c<=16 only) also uses MXFP8 expert acts, same as the image default; no draft weight change.
  • SGLANG_HIP_FP4_INDEXER_ROWGROUP=1 restates the image default (EnvBool(_default_hip)); indexer kernel only.
  • SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE unset (default false; gated to modelopt_fp4 + deep_gemm, not this checkpoint).
  • The image pins sgl-amd-mono b27d604 via sgl-project/sglang#45546; its DeepSeek-V4.1 DSpark draft spec uses MXFP8 expert activations and does not requantize draft weights.

Signed: zijiecode

@SemiAnalysisAI SemiAnalysisAI deleted a comment from github-actions Bot Oct 22, 2026
@SemiAnalysisAI SemiAnalysisAI deleted a comment from github-actions Bot Oct 22, 2026
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

✅✅✅ Verdict: PASS ✅✅✅

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @zijiecode is a listed owner of inferencex-e2e/configs/amd-master.yaml. The recipe and perf-changelog.yaml fall only under the catch-all.

✅ Check 1 (Sweep + evals on in-PR commit): PASS — Run 39596624542 on in-PR commit f305b0d7 has all 13 agentic / jobs and both agentic eval / jobs at success. The later in-PR commits only merge main and leave this recipe and config entry unchanged.

✅ Check 2 (Eval accuracy): PASS — GSM8K em_strict is 0.974 (TP2 c32) and 0.968 (TP2/DPA c64), n=1319, with no infrastructure errors, on lmsysorg/sglang-rocm:v0.5.22-rocm10-mi35x-20261021. Note that upstream re-pushed this tag at 15:58 UTC, during the sweep: build 1278087336 (pushed 11:43) was replaced by build 2815eed49c. Both builds include sglang#45480 and sgl-amd-mono b27d604.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#45693 is MERGED (2026-10-22T03:33:35Z). DeepSeek-V4.1 cookbook §3.6 matches the image, env vars, flags and per-concurrency table for every variant: TP2/TP4 c<=16 (monokernel, no INDEX_K_PAGE8), TP2 c32 (no monokernel, INDEX_K_PAGE8) and DP2 c32/c64 (sglang_router --policy cache_aware --dp-aware). Only harness settings are left out (keep-alive, metrics, served-model-name, router timeouts).

✅ Check 4 (Reuse command): PASS — COLLABORATOR 1am9trash posted /reuse-sweep-run 39596624542 on its own line. That is the Check 1 run.

✅ Check 5 (Latest checklist template): PASS — All 19 items of the current template are present and checked, including the draft-precision, Dynamo-metrics and Pareto items.

✅ Check 6 (Upstream images / engine-first): PASS — The framework: sglang entry on MI355X uses upstream lmsysorg/sglang-rocm. It is an open-source engine entry, so the ordering rule does not apply.

✅ Check 7 (Deprecated models): PASS — dsv41flash agentic coding is active in MODELS.md as of 2026-10-22.

✅ Check 8 (No architecture hacks): PASS — There are no --hf-overrides, model-config edits or layer/expert pruning. The changes only select kernels, backends and index layouts.

✅ Check 9 (Spec-decode chat template): PASS — AgentX replays chat-formatted multi-turn traces through the /v1/chat/completions endpoint with thinking on (SGLANG_DEFAULT_THINKING=1). The harness is unchanged by this PR.

✅ Check 10 (No engine patches): PASS — The PR adds no patches, inline source rewrites, monkey-patching or engine wheel installs. The monokernel plugin ships inside the upstream image.

✅ Check 11 (Agentic golden AL): PASS — The job logs show SGLANG_SIMULATE_ACC_LEN=3.51 with match-expected/real-draft-token. This equals dsv41flash_dspark.yaml thinking_on at block size 5, and the recipe hard-codes no AL.

➖ Check 12 (Append-only): N/A — The new changelog entry has no append-only: true.

✅ Check 13 (Draft precision): PASS — The draft is the in-checkpoint DSpark head. The effective worker env and command set no draft quantization or dtype flag, and do not set SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE or AITER_BF16_FP8_MOE_BOUND. MXFP8 activations for the routed experts are the image default from sglang#45480, which is an ancestor of both builds. The image build logs pin sgl-amd-mono b27d604 (sglang#45546). In that version, deepseek_v41/draft.py keeps the FP8 shared expert as stored and reads the FP8 attention weights in place. It re-encodes SGLang's BF16 wo_a only when the result is bit-exact (mxfp8_exact raises otherwise) and widens it back to BF16. Scale conversion is likewise lossless: e8m0 raises on scales that are not powers of two.

✅ Check 14 (Pareto coverage): PASS — Curve dsv41flash / agentic-coding / MI355X SGLang / fp4, from 13 measured points (TP2, TP4, DP2) in run 39596624542 artifacts bmk_agentic_*. infx.workflows.pareto_coverage finds 6 P90-E2EL frontier points and 5 P75-E2EL frontier points.

➖ Check 15 (PR description): N/A — The PR body is empty, so it makes no technical claims to verify.

➖ Check 16 (NVIDIA overview): N/A — The only affected configuration is AMD MI355X.

➖ Check 17 (Metrics publication): N/A — This is a direct SGLang config with no Dynamo TRT-LLM serving path.

Assessed commit: 89e0cbddb7407ee7787d80caf7bf55b137e9985f.

@edwingao28
edwingao28 merged commit 2633e9a into main Oct 22, 2026
27 checks passed
@edwingao28
edwingao28 deleted the amd/dsv41flash-mi355x-sglang-1021 branch October 22, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentx AgentX benchmarks, recipes, and infrastructure AMD non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants