Repository navigation
feat(agentx): add Kimi-K3 FP4 MI355X ATOM DSpark recipe - #2697
Conversation
|
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 关于重新运行失败任务的文档 |
| - "Set the simulated acceptance length to 2.54, giving spec-decode-acceptance-rate (2.54 - 1) / 2 = 0.77, which is the value the submitted ATOM numbers were measured under. This is 1.2% above the committed golden 2.51 that the vLLM arm feeds to synthetic_acceptance_length, and the script carries a review note saying so; set it to 2.51 for a strictly like-for-like sweep. Evaluations use real acceptance." | ||
| - "Divide the aggregate TOTAL_CPU_DRAM_GB budget by TP for LMCACHE_MAX_LOCAL_CPU_SIZE, which is a per-rank setting; dram-utilization 0.085 lands that at roughly 32 GB per rank." |
There was a problem hiding this comment.
🟡 perf-changelog.yaml (lines 6207-6208) claims the ATOM numbers used simulated acceptance length 2.54 (rate 0.77) with a script review note about a 2.54-vs-2.51 discrepancy, and dram-utilization 0.085. Neither matches what's shipped: kimik3_fp4_mi355x_atom_mtp.sh sets SIMULATE_ACC_LEN=2.51 (rate 0.755, matching the PR description) with no such review note, and configs/amd-master.yaml sets dram-utilization: 0.086 (with its own comment explaining why 0.086 was picked over 0.085). The changelog prose should be corrected to describe the values actually shipped.
Extended reasoning...
perf-changelog.yaml is meant to be the authoritative human-facing record of what a submitted benchmark measured, but the new entry for kimik3-fp4-mi355x-atom-agentic-mtp (lines 6207-6208) describes methodology that does not match either of the two files it is documenting.
Line 6207 states: "Set the simulated acceptance length to 2.54, giving spec-decode-acceptance-rate (2.54 - 1) / 2 = 0.77, which is the value the submitted ATOM numbers were measured under ... and the script carries a review note saying so; set it to 2.51 for a strictly like-for-like sweep." The shipped script, benchmarks/single_node/agentic/kimik3_fp4_mi355x_atom_mtp.sh, sets SIMULATE_ACC_LEN=2.51 for CONC != 1 (with NUM_SPEC_TOKENS=2), which computes to SPEC_ACCEPTANCE_RATE=(2.51-1)/2=0.755 — not 0.77. There is no 2.54 anywhere in the script, and no review-note comment discussing a 2.54-vs-2.51 discrepancy; the only related comment cites the committed golden acceptance length of 2.51. The PR description itself independently confirms 2.51/0.755 as the value the numbers were measured under, so the changelog is the outlier, not the script.
Line 6208 states dram-utilization is 0.085, giving roughly 32 GB per rank. The shipped configs/amd-master.yaml entry for kimik3-fp4-mi355x-atom-agentic-mtp sets dram-utilization: 0.086, and the adjacent comment in that same file explicitly explains the choice: "dram-utilization 0.086 puts the aggregate budget at 257 GB, so the script's divide-by-TP lands on exactly the 32 GB per rank the recipe was measured with (0.085 gives 254, which floors to 31)." So 0.085 was the value considered and rejected, and 0.086 is what actually ships.
Nothing in the reviewed code paths prevents this kind of drift: perf-changelog.yaml is free-text prose maintained by hand alongside the config/script changes, and there's no validation tying its claimed constants back to the actual shipped values, so a stale draft value (2.54/0.085, perhaps from an earlier iteration of the PR) survived into the final changelog entry after the script and config were finalized at 2.51/0.086.
Step-by-step proof: (1) grep benchmarks/single_node/agentic/kimik3_fp4_mi355x_atom_mtp.sh for SIMULATE_ACC_LEN — only 2.51 (non-conc-1) and 3.75 (conc-1) appear, never 2.54. (2) Compute (2.51-1)/2 = 0.755, matching the PR description's stated rate, not the changelog's 0.77. (3) grep the script for "review note" or "discrepancy" — no match; the only spec-decode comment references the golden 2.51 value directly with no mention of 2.54. (4) grep configs/amd-master.yaml for the new kimik3-fp4-mi355x-atom-agentic-mtp block — dram-utilization: 0.086, not 0.085, with its own comment justifying 0.086 over 0.085.
This is documentation-only: the benchmark itself runs correctly using the actual shipped 2.51/0.086 values regardless of what perf-changelog says, so there's no functional or measurement impact. But since perf-changelog is the record future readers will use to understand what the ATOM numbers represent, it should be corrected to state 2.51 / 0.755 / 0.086 and drop the nonexistent review-note claim.
39bbc96 to
a2de999
Compare
Switch the Kimi-K3 MTP throughput arm to ATOM's --spec-decode-acceptance-length (3.75 for conc 1 / 2.51 otherwise, per ROCm/ATOM#1948) while keeping num-speculative-tokens at 6/2, and bump the ATOM image to kimi_k3_agentic_0820. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
/reuse-sweep-run |
There was a problem hiding this comment.
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.
- Verified that this PR passes evals. Please link to GitHub Action workflow that shows this.
- Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
- 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 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; FLOPs at lower precisions is fine, given that the config passes private evals. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
- 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 single-node vLLM/SGLang recipe in this PR is documented in the official vLLM recipes and/or the SGLang cookbook:
- I linked the corresponding upstream PR in the vLLM recipe repo or SGLang 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.
Additional detail section:
- insert any additional info here
recipe at https://github.com/ROCm/ATOM/blob/main/recipes/Kimi-K3.md
Signed: seungrokj
✅✅✅ Verdict: PASS ✅✅✅✅ Check 0 (CODEOWNER): PASS — @seungrokj is a listed owner of |
|
/stage-results 32433563482 |
|
@cquil11 staged run 32433563482: https://inferencemax-app-git-staging-semianalysisai.vercel.app/inference?i_dates=2026-08-21~r32433563482 This run remains available across future |
…OM AgentX on nightly_202610261558 Image rocm/atom-dev:nightly_202610261558 (ATOM 713eb06, digest sha256:57477e7a...) adds ROCm/ATOM#2696/#2697, which fix the hang every DP-attention point hit on nightly_202610240802, and #2719 (trace labels). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e diff - Update the image from rocm/atom-dev:nightly_202610121516 to nightly_202611101510 (ATOM e5b74bc86, ROCm 7.2.4) in the master config, and the AToMesh frontend container_image from sha256:a60811a8... to sha256:160a4ec4..., the same image. - Replace plain TP2 at concurrency [1, 2, 4, 6, 8, 16, 32, 64] and plain TP4 at [1, 8, 32] with plain TP2 at [1, 2, 16, 32], DTP2 at 64, DEP2 at [128, 256] and plain TP4 at [1, 2, 4, 8]. TP2 c4, c6, c8 and c64 and TP4 c32 are dropped; TP4 c2 and c4 are new. - Switch the KV cache from BF16 to MXFP8 at every point; the index cache stays FP4. - Drop max-num-seqs 128. Concurrency 1 runs max-num-seqs 2, decode graphs [1, 2] and ATOM_PREFILL_DECODE_INTERVAL=1000000, the C1 recipe of ATOM's recipes/Kimi-K3.md (ROCm/ATOM#2659). The c256 point also captures 256. - Set ATOM_PREFILL_DECODE_INTERVAL per point: 192 at TP2 c2 and TP4 c2-c8, 96 at TP2 c16, 40 at TP2 c32 and 10 at the DP points. - The DP points add dp-load-balance least_tokens, ATOM_DP_SESSION_AFFINITY=1, ATOM_DP_LB_REQ_EQUIV=512 and GPU_MAX_HW_QUEUES=5, with AIPerf session ids as X-Dynamo-Session-Id. - Every point adds timeout-keep-alive 900. - The new ATOM brings V4.1 DP attention (#2376), the V4.1 MXFP8 KV cache with DSpark (#2725), DP prefill balancing and graph replay (#2551, #2696, #2697) and the default HIP Mega-MHC kernel (#2568). - No change to the DSpark draft's weight precision; its KV cache follows the target from BF16 to MXFP8. Also replace the recipe and master-config header comments with line comments (AGENTS.md "Comments"); no setting changes. - 镜像从 rocm/atom-dev:nightly_202610121516 更新为 nightly_202611101510(ATOM e5b74bc86,ROCm 7.2.4),AToMesh 前端 container_image 同步更新为同一镜像。 - 纯 TP2 [1, 2, 4, 6, 8, 16, 32, 64] 和纯 TP4 [1, 8, 32] 改为纯 TP2 [1, 2, 16, 32]、DTP2 c64、DEP2 [128, 256] 和纯 TP4 [1, 2, 4, 8]。删除 TP2 c4、c6、c8、c64 和 TP4 c32;新增 TP4 c2 和 c4。 - 所有点的 KV cache 从 BF16 改为 MXFP8;index cache 仍为 FP4。 - 去掉 max-num-seqs 128。并发 1 使用 max-num-seqs 2、decode 图 [1, 2] 和 ATOM_PREFILL_DECODE_INTERVAL=1000000,即 ATOM recipes/Kimi-K3.md 的 C1 recipe(ROCm/ATOM#2659)。c256 额外捕获 256。 - 各点设置 ATOM_PREFILL_DECODE_INTERVAL:TP2 c2 和 TP4 c2-c8 为 192,TP2 c16 为 96,TP2 c32 为 40,DP 点为 10。 - DP 点增加 dp-load-balance least_tokens、ATOM_DP_SESSION_AFFINITY=1、ATOM_DP_LB_REQ_EQUIV=512 和 GPU_MAX_HW_QUEUES=5,AIPerf 以 X-Dynamo-Session-Id 发送 session id。 - 所有点增加 timeout-keep-alive 900。 - 新 ATOM 带来 V4.1 DP attention(#2376)、V4.1 MXFP8 KV cache 与 DSpark(#2725)、DP prefill 均衡与图回放(#2551、#2696、#2697)以及默认 HIP Mega-MHC kernel(#2568)。 - DSpark draft 权重精度不变;其 KV cache 随 target 从 BF16 变为 MXFP8。 另将 recipe 和 master config 的头部注释改为行注释(AGENTS.md "Comments"),不改变任何设置。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Recipe PR: ROCm/ATOM#1941
Adds the MI355X Kimi-K3 ATOM AgentX submission alongside the existing vLLM arm: same checkpoint, same runner, same concurrency points, so the two engines are directly comparable.
TP8 at concurrency 1 and 4 is GPU-resident. Concurrency 8 and 10 switch on the LMCache DRAM tier and ATOM's CPU state-offload tier together, because Kimi-K3 is a hybrid -- Kimi Delta Attention carries a per-request recurrent state alongside the paged KV, so a resumed agentic turn needs the state back and the paged KV tier alone cannot restore one.
spec-decode-acceptance-rate is derived from the committed golden acceptance length 2.51 at num_speculative_tokens 2 as (2.51 - 1) / 2 = 0.755, the same golden the vLLM arm feeds to synthetic_acceptance_length, so both engines are held to one acceptance assumption.
LMCACHE_MAX_LOCAL_CPU_SIZE is per rank, so the aggregate TOTAL_CPU_DRAM_GB is divided by TP as the agentic README requires; dram-utilization 0.085 lands that at roughly 32 GB per rank.
Reopening #2670. Original author: @zejunchen-zejun. cc @seungrokj.