[AMD] Use HIP Top-K for GLM-5.2 MI355X / 为 GLM-5.2 MI355X 使用 HIP Top-K - #3117
jiejingzhangamd wants to merge 2 commits into
Conversation
关闭 SGLANG_OPT_USE_TOPK_V2,使 GLM-5.2 在 MI355X 上使用预编译 HIP Top-K 路径。
|
Thanks for the contribution! Please reach out to respective companies' CODEOWNER to fill in the latest PR_REVIEW_CHECKLIST.md before pinging core maintainer on Slack for review. In order for the signoff PR check bot to trigger, you must follow the PR_REVIEW_CHECKLIST.md template correctly, including the phrase For PR verification, add the PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. See GitHub's docs on re-running failed jobs 感谢你的贡献!请联系相应公司的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,然后再在 Slack 上联系核心维护者进行审阅。为了触发 signoff PR 检查机器人,你必须正确遵循 PR_REVIEW_CHECKLIST.md 模板,包括保留英文语句 如需进行 PR 验证,请为此 PR 添加 PR 作者有责任确保合并后所有 GitHub Action 任务完全通过。 很多时候失败只是偶发抖动(flake),重新运行失败的任务即可解决。参见 GitHub 关于重新运行失败任务的文档 |
1 similar comment
|
Thanks for the contribution! Please reach out to respective companies' CODEOWNER to fill in the latest PR_REVIEW_CHECKLIST.md before pinging core maintainer on Slack for review. In order for the signoff PR check bot to trigger, you must follow the PR_REVIEW_CHECKLIST.md template correctly, including the phrase For PR verification, add the PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. See GitHub's docs on re-running failed jobs 感谢你的贡献!请联系相应公司的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,然后再在 Slack 上联系核心维护者进行审阅。为了触发 signoff PR 检查机器人,你必须正确遵循 PR_REVIEW_CHECKLIST.md 模板,包括保留英文语句 如需进行 PR 验证,请为此 PR 添加 PR 作者有责任确保合并后所有 GitHub Action 任务完全通过。 很多时候失败只是偶发抖动(flake),重新运行失败的任务即可解决。参见 GitHub 关于重新运行失败任务的文档 |
将 GLM-5.2 HIP Top-K 性能记录关联到 PR #3117。
There was a problem hiding this comment.
Looks good, straightforward config change. Reviewed the env-var flip (SGLANG_OPT_USE_TOPK_V2=true → false) and its comment update in the benchmark script, and the new bilingual perf-changelog.yaml entry appended at the tail with matching numbers and a valid config-key/scenario-type. No other launch args, topology, or matrix points are touched.
Extended reasoning...
Overview
This PR touches exactly two files: benchmarks/single_node/agentic/glm5.2_fp4_mi355x_sglang_mtp.sh, where a single environment variable SGLANG_OPT_USE_TOPK_V2 flips from true to false (switching GLM-5.2 on MI355X from the fused Top-K v2 path to the precompiled HIP Top-K path) with an updated explanatory comment, and perf-changelog.yaml, where one new bilingual entry is appended at the physical tail of the file documenting the change with concrete before/after numbers. I confirmed via git diff that this is the entirety of the change — no image, topology, concurrency matrix, or HiCache settings are altered, and the changelog entry is appended (not editing any historical entry, and not byte-shifting earlier content).
Security risks
None. This is a benchmark configuration/environment-variable change and a documentation-style changelog append. There is no auth, crypto, permissions, injection, or data-exposure surface involved.
Level of scrutiny
Low-to-moderate is appropriate: it's a single-line runtime behavior change plus a matching changelog entry, which is exactly the kind of small, self-contained, pattern-following change the approval guidelines describe. I verified the config-key glm5.2-fp4-mi355x-sglang-agentic-mtp exists in configs/amd-master.yaml and that agentic-coding is an established scenario-type already used throughout the changelog, so the new entry is well-formed and consistent with existing entries.
Other factors
The pr-link: TBD placeholder in the new entry initially looked like a defect (every other of 918 entries has a real PR URL), but CONTRIBUTING.md's own documented changelog template uses an equivalent placeholder (pull/XXX), confirming this is normal pre-merge practice since the PR number isn't known before the PR exists — consistent with it being ruled out by the bug hunter as a non-issue rather than reported as a finding. The bug hunter reported no bugs, and the only other candidate raised (single-operating-point validation applied to the full 8-point matrix) is an inherent, previously-established pattern for this kind of kernel-backend env-var change and was already treated as ruled out rather than a live finding.
This review covers commit 34299f7, which is no longer the latest commit on this pull request; later commits are not covered by it.
Description / 描述
English
This PR switches the GLM-5.2-MXFP4 MI355X SGLang AgentX recipe from fused Top-K v2 to the precompiled HIP Top-K path.
SGLANG_OPT_USE_TOPK_V2=true→false.At concurrency 8, the supplied A/B result shows a material P90 interactivity gain with essentially unchanged throughput:
HIP Top-K improves P90 interactivity by 10.0% while throughput per GPU changes by -0.15%.
中文
本 PR 将 GLM-5.2-MXFP4 MI355X SGLang AgentX 配置从 fused Top-K v2 切换到预编译 HIP Top-K 路径。
SGLANG_OPT_USE_TOPK_V2=true→false。并发 8 的 A/B 数据显示:HIP Top-K 的 P90 interactivity 提升 10.0%,同时单卡吞吐变化仅为 -0.15%。
Type of Change / 变更类型
Validation / 验证
bash -n benchmarks/single_node/agentic/glm5.2_fp4_mi355x_sglang_mtp.shconfigs/amd-master.yaml,configs/runners.yaml, andperf-changelog.yamlwith PyYAML.glm5.2-fp4-mi355x-sglang-agentic-mtpmatrix and confirmed all eight AgentX points are unchanged.origin/main.git diff --checkChecklist / 检查清单
Note
Low Risk
Benchmark-only runtime env toggle and changelog; no application logic, auth, or serving topology changes.
Overview
Switches the GLM-5.2 FP4 MI355X SGLang AgentX benchmark from fused Top-K v2 to the precompiled HIP Top-K path by setting
SGLANG_OPT_USE_TOPK_V2=falseinglm5.2_fp4_mi355x_sglang_mtp.sh. Launch topology, HiCache, concurrency matrix, and other server flags stay the same; only the Top-K backend env var and its comment are updated.Appends a perf-changelog entry for
glm5.2-fp4-mi355x-sglang-agentic-mtp/ agentic-coding documenting the tradeoff: at concurrency 8, P90 interactivity+10% (96.97 → 106.69 tok/s/user) with throughput per GPU essentially flat (-0.15%).Reviewed by Cursor Bugbot for commit aac8318. Bugbot is set up for automated code reviews on this repo. Configure here.