Skip to content

Optimize DSv4 MI355X disaggregated AgentX / 优化 DSv4 MI355X 分离式 AgentX - #4186

Merged
edwingao28 merged 26 commits into
mainfrom
duwang/dsv4-mi355x-agentx-opt-20261016
Oct 21, 2026
Merged

edwingao28 merged 26 commits into
mainfrom
duwang/dsv4-mi355x-agentx-opt-20261016

Conversation

@Duyi-Wang

@Duyi-Wang Duyi-Wang commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Tune the MI355X DeepSeek-V4-Pro-0813 disaggregated DSpark AgentX recipe: replace concurrency 4 with 1, enable FP8 unified KV on both roles at concurrency 1–48, enable power-of-two decode routing at concurrency 192–512, and enable MegaMoE prefill EPLB at concurrency 512. Keep the current upstream recipe binding and remove obsolete AITER/SGLang PR-dependency comments.

Use lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019 for the serving image.

Remove all SGLANG_DSV4_DENSE_MXSCALE settings: the opt-in changes DSpark draft activation scales from FP32 to UE8M0 relative to this image's default, contrary to #3348. The previous green sweep 39244119974 predates this removal; its reuse selection cannot validate the revised recipe, which requires a new sweep and evals.

Concurrency 1 retains eight request slots on both roles and decode graph batches 1–8, while replay concurrency remains one. The equivalent configuration passed a full 3600-second internal InferenceY CI run: 11 warmup and 245 profiling requests, with zero errors. This validates the concurrency-one fix; the higher-concurrency performance regressions remain unresolved.

Corresponding SGLang cookbook updates: sgl-project/sglang#44454 and #45297. The mxscale opt-in documented there is intentionally omitted to preserve draft precision.

AI model disclosure
  • Model/version: GPT-6; the exact runtime model/version identifier could not be verified.
  • Role: port the requested fork commit to current upstream, clean comments, update the image and performance changelog, run local checks, and prepare this PR. This update also used parallel delegated GPT-6 agents to investigate, validate, and port the concurrency-one capacity fix; their exact runtime model/version identifiers could not be verified.
  • Follow-up: GPT-6 (exact runtime model/version identifier could not be verified) inspected the pinned image and checkpoint metadata, removed the mxscale environment settings, validated recipe composition and matrix generation, and updated this PR. No delegated agents contributed to this follow-up.
  • Model attribution for the original fork commit was not available.
PR checklist and change type

Type of Change

  • Bug fix
  • New feature
  • Configuration change
  • Documentation update
  • Other (please describe)

Checklist

  • I have completed the AI model disclosure and kept it current
  • I have tested my changes locally
  • I have updated documentation if necessary
  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries
  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast, full-sweep-enabled, or non-canary-full-sweep-enabled (selected for this PR). Optional modifiers all-evals, evals-only, and agentx-fast require a primary label; the last two block reuse while applied.
  • Before merging via reuse, an authorized maintainer (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.
中文

本次使用 non-canary-full-sweep-enabled,跳过 canary,直接运行完整并发矩阵。

对应的 SGLang cookbook 更新:sgl-project/sglang#44454 和 #45297。为保持 draft 精度,本 PR 不启用其中的 mxscale 选项。

优化 MI355X DeepSeek-V4-Pro-0813 分离式 DSpark AgentX 配置:将并发 4 替换为 1,在并发 1–48 的 prefill/decode 两侧启用 FP8 unified KV,在并发 192–512 启用 power-of-two decode 路由,并在并发 512 启用 MegaMoE prefill EPLB。适配 upstream 当前的 recipe 绑定方式,并清理已过时的 AITER/SGLang PR 依赖注释。

Serving 镜像使用 lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019。

删除全部 SGLANG_DSV4_DENSE_MXSCALE 设置:该选项会将 DSpark draft activation scale 从镜像默认的 FP32 改为 UE8M0,不符合 #3348。此前通过的 sweep 39244119974 早于此次删除;原有复用选择不能验证修改后的 recipe,需要重新运行 sweep 和 eval。

并发 1 的 prefill/decode 两侧保留 8 个请求槽位,decode 图批次覆盖 1–8,回放并发仍为 1。等效配置已通过完整 3600 秒的 内部 InferenceY CI:11 个 warmup 请求和 245 个 profiling 请求,均无错误。这仅验证并发 1 修复;高并发性能回退仍未解决。

改动类型为配置修改。AI 使用说明:GPT-6,无法核实精确的运行时模型/版本标识;负责移植指定 fork 提交、清理注释、更新镜像与性能变更记录、执行本地检查并准备 PR,本次并发 1 修复另使用并行 GPT-6 子 agent 分别排查、验证和移植容量修复;各子 agent 的精确运行时模型/版本标识也无法核实。本次后续修复由 GPT-6 完成(无法核实精确运行时模型/版本标识),负责核对镜像及 checkpoint、删除 mxscale 设置、验证 recipe 合成及矩阵生成并更新 PR,未委派子 agent。原始 fork 提交的模型使用信息不可得。检查清单见上方。

Port the runtime tuning from fork commit a2f2c889e44a976e82d4a62104640d5f425de73d to the current upstream recipe binder. Use the pending 2026-10-15 SGLang ROCm nightly image and remove obsolete PR-dependency comments.

将 fork 提交 a2f2c889 的 DSv4 MI355X 分离式 AgentX 优化适配到 upstream 当前的 recipe 绑定方式,使用待发布的 2026-10-15 SGLang ROCm nightly 镜像,并清理已过时的 PR 依赖注释。
将 DSv4 优化的性能变更记录关联到 upstream PR #4102。
同步 upstream main,并按官方工具解决性能变更记录的尾部冲突,保留所有历史内容。
将 DSv4 MI355X 分离式 AgentX 的镜像更新为 2026-10-16 SGLang ROCm nightly,并同步本 PR 的性能变更记录。
迁移到 upstream 仓库分支前同步 main,并保留性能变更记录的历史内容。
@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

将 DSv4 性能变更记录关联到 upstream 仓库分支的新 PR #4186。
在 nightly 镜像发布后同步 upstream,并保留性能变更记录的历史内容。
将 DSv4 MI355X AgentX 镜像切换为已发布的 v0.5.22-rocm720-mi35x-20261016,并同步性能变更记录。
@Duyi-Wang
Duyi-Wang marked this pull request as ready for review October 16, 2026 17:41
@Duyi-Wang
Duyi-Wang requested a review from a team October 16, 2026 17:41
@Duyi-Wang Duyi-Wang added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Oct 16, 2026
@claude

claude Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Duyi-Wang's task in 33s —— View job


Review

  • Read the PR diff (recipe, amd-master.yaml, perf-changelog.yaml)
  • Checked YAML anchors and merges (&tp_kernel_env, &p2c_frontend, &p2c_router_env) and the frontend override blocks for c192–c512
  • Checked that override_c1 matches the srt-recipe binding and conc-list: [1]
  • Checked the image and changelog entry (image is public on Docker Hub; the entry is appended at the end and covers the changed config key)

LGTM - no blocking issues found

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

Code review found no issues

No high-confidence issues detected in this change.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Keep replay concurrency at one while allowing eight request slots on both
roles and decode graph batches 1-8. This leaves headroom for the current PD
admission budget during long-output requests. Update the existing PR #4186
performance entry without changing other concurrency points.

保留并发 1 回放,将 prefill/decode 两侧的请求槽位设为 8,并覆盖 decode
图批次 1-8,为当前 PD admission 对长输出请求计算的预算保留余量。
仅更新 PR #4186 现有性能变更记录,不改变其他并发点。

Equivalent c1 settings passed a full 3600-second InferenceY CI run with
245 profiling requests, 11 warmup requests, and zero errors (run 39008024147).
等效的并发 1 配置已通过完整 3600 秒 InferenceY CI:245 个 profiling 请求、
11 个 warmup 请求,均无错误(运行 39008024147)。
Remove only the two comments added with the concurrency-one capacity fix.
Keep the request limits, decode graph sizes, and performance changelog entry.

仅删除并发 1 容量修复新增的两处注释,保留请求容量、decode 图批次及性能变更记录。
Merge upstream main 144e40f and resolve the performance-changelog conflict
with the repository's merge helper. Preserve main's historical entries and
append the existing PR #4186 block, including the concurrency-one capacity fix.
The DSv4 bound recipes remain unchanged, including the removed comments.

合并 upstream main 144e40f,使用仓库提供的工具解决性能变更记录冲突。
完整保留 main 的历史记录,并在末尾保留 PR #4186 唯一条目及并发 1 容量修复。
DSv4 实际绑定配置保持不变,不恢复已删除的注释。
Merge upstream main ee2d0df while preserving the DSv4 concurrency-one admission fix and existing comment cleanup. Resolve the append-only changelog with the repository helper.

中文:合并上游 main ee2d0df,保留 DSv4 并发一的准入修复和现有注释清理;使用仓库工具解决仅追加性能日志冲突。

[skip-sweep]
在等待 2026-10-19 nightly 镜像时同步 main,并保留性能变更记录的历史内容。
将 DSv4 MI355X AgentX 镜像更新为 2026-10-19 已发布的 ROCm 7.2.0 nightly,并同步性能变更记录。
@Duyi-Wang Duyi-Wang added full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures and removed full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures labels Oct 19, 2026
在 nightly 镜像发布后同步 upstream,并保留性能变更记录的历史内容。
Duyi-Wang and others added 2 commits October 19, 2026 11:21
同步 main 新增的 #4286 性能记录,消除 changelog 校验中的历史删除差异;保留不经过 canary 的全量 sweep 标签。

@chunfangamd chunfangamd 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. Please link to GitHub Action workflow that shows this. https://github.com/SemiAnalysisAI/InferenceX/actions/runs/39244119974
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this. https://github.com/SemiAnalysisAI/InferenceX/actions/runs/39244119974
  • 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 vLLM recipe repo or SGLang cookbook source repo 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.

Additional detail section:

  • Draft model: PR #4186 doesn't change the datatype of any draft-model layer: the DSpark draft weights, activations and KV cache all keep the dtype they had before. The PR doesn't touch any draft settings, and the local sglang code agrees.
    What the PR changes that involves dtype:

┌─────────────────────────────────────────┬──────────────────────────────┬────────────────┐
│ Change │ What it affects │ Reaches the │
│ │ │ draft? │
├─────────────────────────────────────────┼──────────────────────────────┼────────────────┤
│ SGLANG_DSV4_UNIFIED_KV_FP8=1 (prefill │ The target model's KV cache: │ No, the │
│ and decode, c192 to c512) │ one bf16 pool becomes two, │ draft's pool │
│ │ nope in fp8 and rope in bf16 │ stays bf16 │
├─────────────────────────────────────────┼──────────────────────────────┼────────────────┤
│ │ The kernel for the target's │ No, the │
│ SGLANG_AMD_FLYDSL_MEGA_QUANT: a8w4 + │ MoE layers (8-bit │ draft's MoE │
│ moe-a2a-backend: megamoe (prefill only) │ activations, 4-bit weights) │ never runs on │
│ │ │ prefill │
├─────────────────────────────────────────┼──────────────────────────────┼────────────────┤
│ Image bump, c32 draft length 3 → 6, │ Not dtype changes │ — │
│ SGLANG_MLA_HCA_KV_SPLITS, timeouts │ │ │
└─────────────────────────────────────────┴──────────────────────────────┴────────────────┘
The existing kv-cache-dtype: fp8_e4m3 was already in the recipe's base settings; the PR doesn't change it.

  • Cookbook: sgl-project/sglang#44454 (merged 2026-10-16) and the published DeepSeek-V4 cookbook cover the PD prefill, decode and router commands, mxscale, FP8 unified KV, power-of-two routing and c512 EPLB.
    • Follow-up for this PR's later changes: FOLLOW_UP_COOKBOOK_PR. It updates c1 to 8 slots on both roles and decode graphs 1–8, replacing --max-running-requests 2 / --cuda-graph-bs-decode 1 2. It also moves the PD image from v0.5.21-rocm724-mi35x-20261001 to v0.5.22-rocm720-mi35x-20261019, because SGLang 41cbe65d (the older build) has neither SGLANG_DSV4_DENSE_MXSCALE nor the router's SGLANG_ROUTER_P2C_LOAD_METRIC. It must merge before this PR does.
    • Excluded as InferenceX-only: acceptance simulation (SGLANG_SIMULATE_ACC_*), AIPerf/harness environment, the concurrency list and cluster-specific paths.
  • Validation / reuse: run 39244119974 (attempt 1) on in-PR commit 63a7d33: all 8 agentic points and 7 eval jobs are green, and /reuse-sweep-run 39244119974 is posted. Head 6ad6674 only merges main and doesn't touch this config. Dropping the fusion flag needs a new sweep and a new /use <run_id>.
  • Evals: GSM8K strict 0.970–0.977 / flexible 0.970–0.976 (n = 1319) at c16, c32, c48, c192, c256, c384 and c512, with real DSpark acceptance (eval servers don't set SGLANG_SIMULATE_ACC_LEN). c1 has no eval job.
  • Golden AL: dsv4-pro-0813-dspark.yaml, thinking_on: 3.77 at block size 6 (c1, c16, c32) and 3.01 at block size 3 (c48–c512), injected in all 8 throughput jobs.
  • Other: lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019 is public (sha256:8cb29fc4…). dsv4 DSpark agentic coding is active in MODELS.md. No engine patches or architecture overrides, no append-only, and Checks 16 and 17 are N/A (AMD, no Dynamo). Nit: SGLANG_MLA_HCA_KV_SPLITS=8 at c1 is inert with FP8 unified KV.
  • Pareto (p90 throughput per GPU vs E2EL, one curve, the 8 bmk_agentic_* artifacts of run 39244119974, via pareto_coverage): 8 measured, 0 invalid, 7 on the frontier (c16–c512). c1 is dominated by c16 and c32. Against #3664's merged run, every shared point improves: throughput +4–11%, p90 E2EL −5–20%.

Signed: @chunfangamd

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

❌❌❌ REJECTED ❌❌❌

@chunfangamd The merged SGLang cookbook does not yet document this PR's concurrency-1 (c1) configuration or its serving image. The follow-up cookbook PR is still the unfilled placeholder FOLLOW_UP_COOKBOOK_PR. Link that PR once it is merged, then reverify.

❌ Check 3 (Upstream recipe): FAIL — The merged/published cookbook does not cover this PR's c1 configuration or its image. sgl-project/sglang#44454 is MERGED, and current main DeepSeek-V4.mdx still documents c1 as --max-running-requests 2 / --cuda-graph-bs-decode 1 2 on PD image v0.5.21-rocm724-mi35x-20261001. The pinned override_c1 uses 8 slots on both roles and decode graphs 1–8, on v0.5.22-rocm720-mi35x-20261019. The sign-off itself says the older build lacks SGLANG_DSV4_DENSE_MXSCALE and SGLANG_ROUTER_P2C_LOAD_METRIC. The follow-up cookbook PR is an unfilled FOLLOW_UP_COOKBOOK_PR placeholder, and the sign-off says it "must merge before this PR does".

⚠️ Check 13 (Draft precision): WARN — On every point, SGLANG_DSV4_DENSE_MXSCALE=1 is now set on decode (base decode env) and on prefill at c1–c48. The sign-off's draft evidence omits it. In SGLang #44007 (merged 2026-10-16; no later change to fp8_utils.py), the default shape whitelist names the DSpark draft linears wq_a (1536x7168) and main_proj (7168x21504). Those linears move onto the e8m0 mxscale GEMM. The weight conversion there is lossless, but per-token activation scales go from fp32 to ue8m0. The checkpoint's draft quantization metadata and the exact image commit were not verified, so human review is needed to confirm the draft activation precision matches the shipped baseline. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not set anywhere in the recipe.

⚠️ Check 15 (PR description): WARN — The body calls sgl-project/sglang#44454 the "Corresponding SGLang cookbook update". That PR documents c1 as 2 slots with graphs 1 2 on the v0.5.21 image. The pinned recipe uses 8 slots with graphs 1–8 on v0.5.22-rocm720-mi35x-20261019. Please link the follow-up cookbook PR in the body.

Passed and not applicable checks

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

✅ Check 1 (Sweep on in-PR commit): PASS — In-PR commit 63a7d33 has 8 multi-node agentic / jobs and 7 multi-node agentic eval / jobs, all success, in run 39244119974. Head 6ad6674 only merges main and does not touch this config entry or recipe.

✅ Check 2 (Evals): PASS — GSM8K strict 0.970–0.977 (n=1319) at c16/c32/c48/c192/c256/c384/c512, all infrastructure_success. Every eval ran on lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019, the image in this PR's config.

✅ Check 4 (Reuse command): PASS — COLLABORATOR chunfangamd posted /reuse-sweep-run 39244119974.

✅ Check 5 (Checklist template): PASS — Every item of the current template is present and checked.

✅ Check 6 (Upstream image / ordering): PASS — sglang-disagg uses the upstream lmsysorg/sglang-rocm image. The PR adds only open-source-engine entries.

✅ Check 7 (Deprecated models): PASS — dsv4 agentic coding with DSpark is active in MODELS.md.

✅ Check 8 (Architecture hacks): PASS — No --hf-overrides, model-override args or model-file edits. EPLB, MegaMoE and mxscale only change kernels and scheduling.

✅ Check 9 (Chat templates): PASS — AgentX replay goes through /v1/chat/completions, and acceptance is simulated from the golden curve.

✅ Check 10 (Engine patches): PASS — The PR and the effective recipe contain no patches, pip install of engine wheels, sed/heredoc source edits or file overwrites.

✅ Check 11 (Golden AL): PASS — The launcher derives AL from speculative-dspark-block-size in dsv4-pro-0813-dspark.yaml thinking_on: 6 → 3.77 (c1/c16/c32) and 3 → 3.01 (c48–c512). The c1 job log shows SGLANG_SIMULATE_ACC_LEN=3.77 applied on both roles.

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

✅ Check 14 (Pareto coverage): PASS — One curve (dsv4 / agentic-coding / MI355X sglang-disagg / fp4 / p90 E2EL). The 8 bmk_agentic_* artifacts from run 39244119974 attempt 1 give 8 measured points, 0 invalid and 7 on the frontier (c16–c512) via pareto_coverage. c1 is dominated by c16.

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

➖ Check 17 (Metrics publication): N/A — No Dynamo. The frontend is sglang-router on SGLang workers.

Assessed commit: 6ad6674d9de25c0abfc3ed511a580c147cfd47df.

@billishyahao billishyahao 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. Please link to GitHub Action workflow that shows this. https://github.com/SemiAnalysisAI/InferenceX/actions/runs/39244119974
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this. https://github.com/SemiAnalysisAI/InferenceX/actions/runs/39244119974
  • 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 vLLM recipe repo or SGLang cookbook source repo 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.

Additional detail section:

  • Draft model: PR #4186 doesn't change the datatype of any draft-model layer: the DSpark draft weights, activations and KV cache all keep the dtype they had before. The PR doesn't touch any draft settings, and the local sglang code agrees.
    What the PR changes that involves dtype:

┌─────────────────────────────────────────┬──────────────────────────────┬────────────────┐
│ Change │ What it affects │ Reaches the │
│ │ │ draft? │
├─────────────────────────────────────────┼──────────────────────────────┼────────────────┤
│ SGLANG_DSV4_UNIFIED_KV_FP8=1 (prefill │ The target model's KV cache: │ No, the │
│ and decode, c192 to c512) │ one bf16 pool becomes two, │ draft's pool │
│ │ nope in fp8 and rope in bf16 │ stays bf16 │
├─────────────────────────────────────────┼──────────────────────────────┼────────────────┤
│ │ The kernel for the target's │ No, the │
│ SGLANG_AMD_FLYDSL_MEGA_QUANT: a8w4 + │ MoE layers (8-bit │ draft's MoE │
│ moe-a2a-backend: megamoe (prefill only) │ activations, 4-bit weights) │ never runs on │
│ │ │ prefill │
├─────────────────────────────────────────┼──────────────────────────────┼────────────────┤
│ Image bump, c32 draft length 3 → 6, │ Not dtype changes │ — │
│ SGLANG_MLA_HCA_KV_SPLITS, timeouts │ │ │
└─────────────────────────────────────────┴──────────────────────────────┴────────────────┘
The existing kv-cache-dtype: fp8_e4m3 was already in the recipe's base settings; the PR doesn't change it.

  • Cookbook: sgl-project/sglang#45297 and the published DeepSeek-V4 cookbook cover the PD prefill, decode and router commands, mxscale, FP8 unified KV, power-of-two routing and c512 EPLB.
    • Excluded as InferenceX-only: acceptance simulation (SGLANG_SIMULATE_ACC_*), AIPerf/harness environment, the concurrency list and cluster-specific paths.
  • Validation / reuse: run 39244119974 (attempt 1) on in-PR commit 63a7d33: all 8 agentic points and 7 eval jobs are green, and /reuse-sweep-run 39244119974 is posted. Head 6ad6674 only merges main and doesn't touch this config. Dropping the fusion flag needs a new sweep and a new /use <run_id>.
  • Evals: GSM8K strict 0.970–0.977 / flexible 0.970–0.976 (n = 1319) at c16, c32, c48, c192, c256, c384 and c512, with real DSpark acceptance (eval servers don't set SGLANG_SIMULATE_ACC_LEN). c1 has no eval job.
  • Golden AL: dsv4-pro-0813-dspark.yaml, thinking_on: 3.77 at block size 6 (c1, c16, c32) and 3.01 at block size 3 (c48–c512), injected in all 8 throughput jobs.
  • Other: lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019 is public (sha256:8cb29fc4…). dsv4 DSpark agentic coding is active in MODELS.md. No engine patches or architecture overrides, no append-only, and Checks 16 and 17 are N/A (AMD, no Dynamo). Nit: SGLANG_MLA_HCA_KV_SPLITS=8 at c1 is inert with FP8 unified KV.
  • Pareto (p90 throughput per GPU vs E2EL, one curve, the 8 bmk_agentic_* artifacts of run 39244119974, via pareto_coverage): 8 measured, 0 invalid, 7 on the frontier (c16–c512). c1 is dominated by c16 and c32. Against #3664's merged run, every shared point improves: throughput +4–11%, p90 E2EL −5–20%.

Signed: billishyahao

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Verdict: WARN ⚠️

⚠️ Check 13 (Draft precision): WARN — Draft precision could not be verified: this PR newly enables SGLANG_DSV4_DENSE_MXSCALE=1 (decode at every point, prefill at c1–c48; confirmed in the c1 job env), and SGLang's built-in mxscale whitelist explicitly includes the DSpark draft shapes wq_a (1536×7168) and main_proj (7168×21504) (fp8_utils.py). That path moves FP8 activations from fp32 scales to e8m0 scales. The sign-off's draft table omits this flag and says "the PR doesn't touch any draft settings". Missing evidence: whether the draft linears in the pinned v0.5.22-rocm720-mi35x-20261019 image are block-FP8 and take the e8m0 route, and whether that is at or below the shipped baseline. Human review needed. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is unset in the effective env and defaults to False.

⚠️ Check 15 (PR description): WARN — The body's only validation claim cites a private InferenceY run 39008024147, which returns 404 and so can't be verified. It also says "the higher-concurrency performance regressions remain unresolved", which isn't supported by the in-PR run 39244119974. The body also never mentions that run or the second cookbook PR, sgl-project/sglang#45297. Ask the author to update the body.

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @billishyahao 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 on in-PR commit): PASS — The PR head has not moved from the pinned SHA. In-PR commit 63a7d33 has 8/8 multi-node agentic / and 7/7 multi-node agentic eval / check-runs with conclusion success in run 39244119974. The literal single-node */ and eval / jobs were skipped because this config has none. Between 63a7d33 and c221d6c, only main merges and a changelog whitespace fix landed; the recipe and config entry are unchanged.

✅ Check 2 (Evals): PASS — eval_results_all shows GSM8K em_strict between 0.970 and 0.977 (n=1319) at c16, c32, c48, c192, c256, c384 and c512, with infrastructure_success true. The image matches: lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#44454 and #45297 are both MERGED. The published DeepSeek-V4 cookbook covers the MI355X Pro Official PD prefill, decode and router commands. That includes the c1 capacity override, FP8 unified KV and mxscale switches, the power-of-two router with SGLANG_ROUTER_P2C_LOAD_METRIC, the c512 MegaMoE prefill EPLB envs and flags, and the 20261019 image. The sign-off's exclusions (simulated acceptance and harness settings) are justified.

✅ Check 4 (Reuse command): PASS — COLLABORATOR chunfangamd posted /reuse-sweep-run 39244119974.

✅ Check 5 (Checklist template): PASS — All 18 items in the current template are present and checked.

✅ Check 6 (Upstream image / ordering): PASS — framework: sglang-disagg uses upstream lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019. It is an open-source engine entry, so the ordering rule does not apply.

✅ Check 7 (Deprecated models): PASS — MODELS.md lists dsv4 agentic coding with DSpark (DeepSeek-V4-Pro-0813) as active.

✅ Check 8 (Architecture hacks): PASS — The diff has no --hf-overrides, model-config edits, or layer/expert pruning. EPLB only rebalances expert placement.

✅ Check 9 (Chat template): PASS — The DSpark config is benchmarked by AgentX replay of chat conversation traces with thinking on, and the eval jobs use the chat route.

✅ Check 10 (Engine patches): PASS — The PR introduces no patching. The recipe only adds env vars, flags and host hooks, with no source rewrites or wheel installs.

✅ Check 11 (Golden AL): PASS — The logs show SGLANG_SIMULATE_ACC_LEN=3.77 at block size 6 (c1, c16, c32) and 3.01 at block size 3 (c48–c512), injected on prefill and decode with match-expected / real-draft-token. These match dsv4-pro-0813-dspark.yaml thinking_on values for 6 and 3 speculative tokens.

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

✅ Check 14 (Pareto coverage): PASS — One curve: dsv4 / agentic-coding / MI355X sglang-disagg / fp4 / p90 E2EL versus total tput per GPU, from the 8 bmk_agentic_* artifacts of run 39244119974 (attempt 1, 63a7d33). It has 7/5 frontier points (c16–c512); c1 (21.56 s, 2128 tok/s/GPU) is dominated.

➖ Check 16 (NVIDIA overview): N/A — The PR only affects AMD MI355X configurations.

➖ Check 17 (Metrics publication): N/A — There is no Dynamo. This is an SGLang PD deployment behind sglang-router.

Assessed commit: c221d6c59fbfc13fb6d1c20bf31f71b7515933e5.

billishyahao and others added 2 commits October 20, 2026 07:08
Remove SGLANG_DSV4_DENSE_MXSCALE from all recipe settings to retain the pinned image default activation scales, following PR #3348.

删除 recipe 中全部 SGLANG_DSV4_DENSE_MXSCALE 设置,保持锁定镜像默认的 DSpark draft activation scale,遵循 PR #3348,并追加性能变更记录。
@Duyi-Wang Duyi-Wang added non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) and removed non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) labels Oct 21, 2026
@SemiAnalysisAI SemiAnalysisAI deleted a comment from chunfangamd Oct 21, 2026
Preserve main changelog bytes and append this PR contributions after resolving the conflict.

重新运行 PR #4186 sweep 前同步 main;保留 main 性能记录的全部原始字节,将本 PR 记录追加至末尾以解决冲突。
@Duyi-Wang Duyi-Wang added non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) and removed non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) labels Oct 21, 2026
中文:合并主线并整理性能变更记录。
中文:同步主线并保留已验证配置。
中文:将性能变更描述精简为两条。
中文:同步主线并保留两条变更描述。
@edwingao28
edwingao28 merged commit 5b0c325 into main Oct 21, 2026
4 checks passed
@edwingao28
edwingao28 deleted the duwang/dsv4-mi355x-agentx-opt-20261016 branch October 21, 2026 19:59
adibarra added a commit that referenced this pull request Oct 21, 2026
…355X AgentX 结果入库 (#4386)

* perf(amd): optimize DSv4 disaggregated AgentX on MI355X

Port the runtime tuning from fork commit a2f2c889e44a976e82d4a62104640d5f425de73d to the current upstream recipe binder. Use the pending 2026-10-15 SGLang ROCm nightly image and remove obsolete PR-dependency comments.

将 fork 提交 a2f2c889 的 DSv4 MI355X 分离式 AgentX 优化适配到 upstream 当前的 recipe 绑定方式,使用待发布的 2026-10-15 SGLang ROCm nightly 镜像,并清理已过时的 PR 依赖注释。

* docs: link DSv4 tuning changelog to upstream PR

将 DSv4 优化的性能变更记录关联到 upstream PR #4102。

* perf(amd): use October 16 SGLang ROCm nightly for DSv4

将 DSv4 MI355X 分离式 AgentX 的镜像更新为 2026-10-16 SGLang ROCm nightly,并同步本 PR 的性能变更记录。

* docs: link DSv4 changelog to upstream branch PR 4186

将 DSv4 性能变更记录关联到 upstream 仓库分支的新 PR #4186。

* perf(amd): use published ROCm 7.2.0 nightly for DSv4

将 DSv4 MI355X AgentX 镜像切换为已发布的 v0.5.22-rocm720-mi35x-20261016,并同步性能变更记录。

* fix(amd): retain DSv4 concurrency-one admission capacity

Keep replay concurrency at one while allowing eight request slots on both
roles and decode graph batches 1-8. This leaves headroom for the current PD
admission budget during long-output requests. Update the existing PR #4186
performance entry without changing other concurrency points.

保留并发 1 回放,将 prefill/decode 两侧的请求槽位设为 8,并覆盖 decode
图批次 1-8,为当前 PD admission 对长输出请求计算的预算保留余量。
仅更新 PR #4186 现有性能变更记录,不改变其他并发点。

Equivalent c1 settings passed a full 3600-second InferenceY CI run with
245 profiling requests, 11 warmup requests, and zero errors (run 39008024147).
等效的并发 1 配置已通过完整 3600 秒 InferenceY CI:245 个 profiling 请求、
11 个 warmup 请求,均无错误(运行 39008024147)。

* chore(amd): remove redundant concurrency-one comments

Remove only the two comments added with the concurrency-one capacity fix.
Keep the request limits, decode graph sizes, and performance changelog entry.

仅删除并发 1 容量修复新增的两处注释,保留请求容量、decode 图批次及性能变更记录。

* perf(amd): use October 19 ROCm 7.2.0 nightly for DSv4

将 DSv4 MI355X AgentX 镜像更新为 2026-10-19 已发布的 ROCm 7.2.0 nightly,并同步性能变更记录。

* fix

* fix: preserve default DSpark draft activation scaling

Remove SGLANG_DSV4_DENSE_MXSCALE from all recipe settings to retain the pinned image default activation scales, following PR #3348.

删除 recipe 中全部 SGLANG_DSV4_DENSE_MXSCALE 设置,保持锁定镜像默认的 DSpark draft activation scale,遵循 PR #3348,并追加性能变更记录。

* chore: bootstrap ingest recovery for PR 4186

中文:为 PR 4186 的结果入库恢复创建初始提交。

* chore: re-append PR 4186 changelog entry for ingest recovery

Reuses run-sweep 39588593657 (head c54a727) via /use.

中文:为恢复结果入库重新追加 PR 4186 的 changelog 条目,通过 /use 复用 run-sweep 39588593657(head c54a727)。

---------

Co-authored-by: Duyi-Wang <[email protected]>
Co-authored-by: Chun Fang <[email protected]>
Co-authored-by: billishyahao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants