Skip to content

perf(amd): DSv4.1-Flash ATOM AgentX on nightly_202612031117: DEP8 c128-c512, DEP4 c64, TP4 and TP8 points / perf(amd):DSv4.1-Flash ATOM AgentX 切换到 nightly_202612031117:DEP8 c128-c512、DEP4 c64、TP4 与 TP8 点 - #5271

Open
yhl-amd wants to merge 3 commits into
mainfrom
perf/dsv41flash-atom-1127-perf-dep8

Conversation

@yhl-amd

@yhl-amd yhl-amd commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

DeepSeek-V4.1-Flash ATOM AgentX (MI355X): move to rocm/atom-dev:nightly_202612031117 and replace the TP2/DTP2/DEP2/TP4 curve with TP8, TP4, DEP4 and DEP8 points.

Image

rocm/atom-dev:nightly_202611101510 (ATOM e5b74bc86) → rocm/atom-dev:nightly_202612031117@sha256:ef8293cd19b40344b4e755f7b0934bb961c4ee8e844758b7de84a7ce5e8cf7b9 (ATOM 10e8c1ea6, AITER ed1163f82, Mooncake 206d6340, ROCm 7.2.4), in the master image and the AToMesh frontend container_image. This is the official ATOM nightly, used as published: no patches, overlays or rebuilt kernels.

Points (3600 s, seed 42)

Topology Concurrency Settings
TP8 1, 2, 4 c1: max-num-seqs 2, graphs [1, 2], ATOM_PREFILL_DECODE_INTERVAL=1000000; c2, c4: interval 192
TP4 4, 8, 16, 32 intervals 192, 192, 96, 16; c8 and c16 on a BF16 KV cache (c8 was MXFP8)
DEP4 (TP4, EP4, DP attention) 64 DEP8 settings with 2 API servers and a 2 x 128 GiB Mooncake Store
DEP8 (TP8, EP8, DP attention) 128, 256, 384, 512 MegaMoE (moe-backend mega, AITER_MEGA_SHARED_IN=1), adaptive prefill admission, 4 API servers, share_cache routing with lockstep placement (--dp-share-cache-lockstep), online EPLB with no redundant experts and no placement file, KV offload to CPU DRAM on the inference node through a 2 x 256 GiB Mooncake Store

Removed: TP2 c1/c2/c16/c32, DTP2 c64, DEP2 c128/c256, TP4 c1/c2. The DP points no longer use least_tokens routing, session affinity or the AIPerf X-Dynamo-Session-Id header. Every env var in the recipe is read by ATOM, AITER or Mooncake at the image's commits.

Framework changes that matter here (ATOM e5b74bc86..10e8c1ea6): share_cache lockstep placement (ROCm/ATOM#3837, opt-in since #4074), adaptive prefill admission (#3647), the target shared expert handed to the MegaMoE routed call (#3894, #3940), one-launch MegaMoE decode routing (#3938, #3187), EPLB on pre-decoder layers (#3186, #3952), DSpark draft tail and DP-sharded draft argmax (#4104, #3939), DP LM head changes (#3353, #4025), Store offload fixes (#3772, #3781); AITER ROCm/aiter#9076 (BF16 return from the DSpark draft MegaMoE).

Draft data types

No change. The DSpark draft (mtp.0-2 in the target checkpoint) runs as shipped at both images: FP8 E4M3 32x32 UE8M0 attention, shared-expert and main_proj weights (MXFP8), MXFP4 routed experts with MXFP8 activations (a8w4, through MegaMoE at DEP4/DEP8, returning BF16), BF16 gate, norms and shared LM head. The draft is not handed to the target MoE's shared_in path. It attends in BF16 over the target's KV pool (MXFP8, BF16 at TP4 c8/c16). The recipe sets no --spec-decode-acceptance-length or online quantization; throughput runs use the harness-injected golden AL (3.51), evals use real acceptance. Evidence with permalinks is in the PR comment.

Validation

No run-sweep.yml run has benchmarked this head yet. Run 47174721537 on 6092627 skipped every benchmark and eval job (reuse of run 46291747276). Run 46291747276 ran commit df25d57 on a different image (rocm/atom-dev:nightly_202611290027-perf) and recipe (no --dp-share-cache-lockstep, extra draft/router env vars), and failed: TP4 c4/c8, TP8 c2/c4 and DEP8 c128/c384 agentic jobs and the TP8 c1 and TP4 c32 evals. Its results do not describe this head; a fresh sweep on 6092627 (or later) is needed.

中文

DeepSeek-V4.1-Flash ATOM AgentX(MI355X):切换到 rocm/atom-dev:nightly_202612031117,并用 TP8、TP4、DEP4 和 DEP8 点替换原有的 TP2/DTP2/DEP2/TP4 曲线。

镜像

rocm/atom-dev:nightly_202611101510(ATOM e5b74bc86)→ rocm/atom-dev:nightly_202612031117@sha256:ef8293cd19b40344b4e755f7b0934bb961c4ee8e844758b7de84a7ce5e8cf7b9(ATOM 10e8c1ea6、AITER ed1163f82、Mooncake 206d6340、ROCm 7.2.4),同时用于 master 配置的 image 和 AToMesh 前端的 container_image。这是官方 ATOM nightly 镜像,原样使用:没有补丁、覆盖层或重新编译的内核。

测试点(3600 秒,seed 42)

拓扑 并发 设置
TP8 1、2、4 c1:max-num-seqs 2,图 [1, 2],ATOM_PREFILL_DECODE_INTERVAL=1000000;c2、c4:interval 192
TP4 4、8、16、32 interval 依次为 192、192、96、16;c8 和 c16 使用 BF16 KV cache(c8 原为 MXFP8)
DEP4(TP4、EP4、DP attention) 64 与 DEP8 相同的设置,2 个 API server,2 x 128 GiB Mooncake Store
DEP8(TP8、EP8、DP attention) 128、256、384、512 MegaMoE(moe-backend mega、AITER_MEGA_SHARED_IN=1)、自适应 prefill 准入、4 个 API server、带 lockstep 放置的 share_cache 路由(--dp-share-cache-lockstep)、无冗余专家且无放置文件的在线 EPLB、通过 2 x 256 GiB Mooncake Store 将 KV 卸载到推理节点的 CPU DRAM

移除:TP2 c1/c2/c16/c32、DTP2 c64、DEP2 c128/c256、TP4 c1/c2。DP 点不再使用 least_tokens 路由、会话亲和性或 AIPerf 的 X-Dynamo-Session-Id 头。recipe 中的每个环境变量都会被镜像对应提交中的 ATOM、AITER 或 Mooncake 读取。

与本模型相关的框架变化(ATOM e5b74bc86..10e8c1ea6):share_cache lockstep 放置(ROCm/ATOM#3837,自 #4074 起需显式开启)、自适应 prefill 准入(#3647)、目标层共享专家交给 MegaMoE 路由调用(#3894、#3940)、单次启动的 MegaMoE decode 路由(#3938、#3187)、decoder 之前层的 EPLB(#3186、#3952)、DSpark draft 尾部优化与 DP 分片 draft argmax(#4104、#3939)、DP LM head 改动(#3353、#4025)、Store 卸载修复(#3772、#3781);AITER ROCm/aiter#9076(DSpark draft MegaMoE 返回 BF16)。

Draft 数据类型

无变化。DSpark draft(目标 checkpoint 中的 mtp.0-2)在新旧镜像上都按发布精度运行:FP8 E4M3 32x32 UE8M0 的 attention、共享专家和 main_proj 权重(MXFP8),MXFP4 路由专家配 MXFP8 激活(a8w4,DEP4/DEP8 经 MegaMoE,返回 BF16),BF16 的 gate、norm 和共享 LM head。draft 不走目标 MoE 的 shared_in 路径。draft 在目标的 KV 池上以 BF16 做 attention(MXFP8,TP4 c8/c16 为 BF16)。recipe 未设置 --spec-decode-acceptance-length 或在线量化;吞吐测试使用 harness 注入的 golden AL(3.51),eval 使用真实接受率。带永久链接的证据见 PR 评论。

验证

尚无 run-sweep.yml 运行对当前 head 做过基准测试。运行 47174721537(60926274e)因复用运行 46291747276 而跳过了所有基准和 eval 任务。运行 46291747276 测的是提交 df25d57,镜像(rocm/atom-dev:nightly_202611290027-perf)和 recipe(没有 --dp-share-cache-lockstep,多了 draft/路由相关环境变量)都不同,并且失败:TP4 c4/c8、TP8 c2/c4、DEP8 c128/c384 的 agentic 任务以及 TP8 c1 和 TP4 c32 的 eval。其结果不代表当前 head;需要在 6092627(或之后)重新跑一次 sweep。

AI model disclosure
  • claude-opus-5-5 (Claude Code): rewrote the perf-changelog block and this description, and checked the draft data types against the pinned ATOM and AITER sources.

🤖 Generated with Claude Code

@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, agentx-fast, and evals-last 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 和 evals-last 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

yhl-amd added a commit that referenced this pull request Nov 27, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yhl-amd yhl-amd added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Nov 27, 2026
@yhl-amd yhl-amd changed the title perf(amd): DSv4.1-Flash ATOM AgentX DEP8 c128-c512 + TP points on the nightly_202611251520-perf test image / DSv4.1-Flash ATOM AgentX 测试镜像 DEP8 c128-c512 + TP 点 perf(amd): DSv4.1-Flash ATOM AgentX DEP8 c128-c512 + TP4/DEP4/TP8 points on nightly_202611251520-perf Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

@yhl-amd
yhl-amd marked this pull request as ready for review November 27, 2026 16:32
@yhl-amd
yhl-amd requested a review from a team November 27, 2026 16:32
@yhl-amd
yhl-amd force-pushed the perf/dsv41flash-atom-1127-perf-dep8 branch from 25ef583 to 356120c Compare November 27, 2026 16:32
@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @yhl-amd's task in 43s —— View job


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.

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

Additional findings (outside the current diff — GitHub can't attach inline comments there):

  • 🟡 inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/atom/mi355x-fp4-mtp/agentic.yaml — Maintainers inherit nine recipe variants no master row can select after this merge, kept as dead config. The search space drops every TP2 point and TP4 c1/c2. Yet override_tp2_c1, override_tp2_c2, override_tp2_c16, override_tp2_c32, override_tp2_c64_dtp, override_tp2_c128_dep, override_tp2_c256_dep, override_tp4_c1 and override_tp4_c2 stay in the recipe. AGENTS.md says to delete retired configs in the same PR, never archive. Fix: delete them, first moving the &c1_args/&c1_env anchors into override_tp8_c1 and &dp_env into override_dep4_c64, since those survivors alias them.

    Why this was flagged

    In inferencex-e2e/configs/amd-master.yaml:1167-1170, the srt-recipe globs are now override_tp8_, override_tp4_ (conc 4/8/16/32), override_dep4_* and override_dep8_. None of them matches the override_tp2_ keys at agentic.yaml:53-206 or the override_tp4_c1/override_tp4_c2 keys at :98-115. select_recipe in infx/srt_slurm/single_node.py also filters by CONC, so the tp4 c1/c2 variants are never picked. After the merge these blocks are archived config that looks live. That is what AGENTS.md 'Deprecating benchmark configs' ("Delete retired configs, recipes and assets in one PR; never archive") forbids. On the base branch every one of them was reachable from a search-space row. Deleting them naively would break the YAML. The anchors &c1_args/&c1_env (line 56/60) and &dp_env (line 169) are defined inside retired blocks, and the new override_tp8_c1 and override_dep4_c64 alias them.

    Verification: The only user of srt-recipe-dir: dsv41flash/atom/mi355x-fp4-mtp is dsv41flash-fp4-mi355x-atom-agentic-dspark (amd-master.yaml:1155,1163). No row uses an override_tp2_* glob anymore. single_node.py (lines 149-160) rejects a recipe whose CONC differs, and the tp4 row has no conc 1 or 2. AGENTS.md:94 says "Delete retired configs, recipes and assets in one PR; never archive."

Comment on lines +274 to +306
- &mc_owner
<<: *mc_master
name: mc-owner-numa0
# 2 x 256 GiB of CPU DRAM. Each owner registers on rdma0-7, so every GPU's worker reaches it on its own rail.
command: [python3, /app/ATOM/.github/scripts/atomesh/numa_exec.py, "0", mooncake_client, "--host={node_ip}", --port=26052, --master_server_address=127.0.0.1:26051, --metadata_server=http://127.0.0.1:26080/metadata, --protocol=rdma, "--device_names=rdma0,rdma1,rdma2,rdma3,rdma4,rdma5,rdma6,rdma7", --global_segment_size=274877906944, --local_buffer_size=0, --threads=4]
env:
<<: *mc_env
GLIBC_TUNABLES: glibc.malloc.hugetlb=1
MC_MAX_MR_SIZE: "68719476736"
MC_TCP_BIND_ADDRESS: "{node_ip}"
preamble: ulimit -l unlimited 2>/dev/null || ulimit -S -l "$(ulimit -H -l)"
readiness:
log:
pattern: Starting real client service
timeout_seconds: 1800
interval_seconds: 5
- <<: *mc_owner
name: mc-owner-numa1
command: [python3, /app/ATOM/.github/scripts/atomesh/numa_exec.py, "1", mooncake_client, "--host={node_ip}", --port=26053, --master_server_address=127.0.0.1:26051, --metadata_server=http://127.0.0.1:26080/metadata, --protocol=rdma, "--device_names=rdma0,rdma1,rdma2,rdma3,rdma4,rdma5,rdma6,rdma7", --global_segment_size=274877906944, --local_buffer_size=0, --threads=4]
roles:
agg: &dep8_agg
args:
enable-dp-attention: true
enable-expert-parallel: true
# MegaMoE: 48 routed experts per rank, top-6; the shared expert stays a separate FP8 GEMM.
moe-backend: mega
prefill-admit-policy: adaptive
api-server-count: 4
# Routes each request to the rank whose prefix is in its cache or the shared Store.
dp-load-balance: share_cache
# Online EPLB: no placement file, no redundant experts.
enable-eplb: true
eplb-config: '{"num_redundant_experts":0,"load_window_size":200,"rebalance_interval":800,"rebalance_layers_per_chunk":4}'

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.

🟡 nit (optional): Several new comments restate the config next to them, which AGENTS.md's mandatory comment rule forbids. sweep:# (MegaMoE: 48 routed|Online EPLB: no placement|2 x 256 GiB of CPU DRAM). Examples: line 304 "# Online EPLB: no placement file, no redundant experts." repeats enable-eplb and num_redundant_experts 0 from eplb-config. Line 274 "# 2 x 256 GiB of CPU DRAM..." repeats --global_segment_size and --device_names. Fix: delete them, or keep only a technical reason the code cannot show.

Why this was flagged

AGENTS.md 'Comments (mandatory, every file)' allows only a technical reason for a line. It says to "never restate the code" and forbids comments that describe a topology or config. At agentic.yaml:306, "# Online EPLB: no placement file, no redundant experts." restates the eplb-config value on the next line. At :298, "# MegaMoE: 48 routed experts per rank, top-6; the shared expert stays a separate FP8 GEMM." describes the topology, not why moe-backend: mega was chosen. At :274, "# 2 x 256 GiB of CPU DRAM. Each owner registers on rdma0-7, so every GPU's worker reaches it on its own rail." restates the command arguments. The base branch does not have these comments. This is a convention slip with no runtime effect.

Verification: AGENTS.md lines 46-50 forbid comments that "restate the code". In agentic.yaml, line 304 "# Online EPLB: no placement file, no redundant experts." repeats num_redundant_experts":0 on line 306. Line 277 repeats --global_segment_size=274877906944 on line 278. Nothing breaks at runtime. The effect is comments that go against the repo's mandatory comment rule.

@yhl-amd
yhl-amd force-pushed the perf/dsv41flash-atom-1127-perf-dep8 branch 3 times, most recently from 1514e1d to 6bc9fe4 Compare November 28, 2026 16:58
@yhl-amd yhl-amd changed the title perf(amd): DSv4.1-Flash ATOM AgentX DEP8 c128-c512 + TP4/DEP4/TP8 points on nightly_202611251520-perf perf(amd): DSv4.1-Flash ATOM AgentX DEP8 c128-c512, DEP4 c64, TP4 and TP8 points on nightly_202611251520-perf-1129 Nov 28, 2026
@yhl-amd
yhl-amd force-pushed the perf/dsv41flash-atom-1127-perf-dep8 branch from 6bc9fe4 to 8df2d9e Compare November 28, 2026 17:07
@yhl-amd yhl-amd changed the title perf(amd): DSv4.1-Flash ATOM AgentX DEP8 c128-c512, DEP4 c64, TP4 and TP8 points on nightly_202611251520-perf-1129 perf(amd): DSv4.1-Flash ATOM AgentX on nightly_202611290027-perf: DEP8 c128-c512, DEP4 c64, TP4 and TP8 points Nov 28, 2026
@yhl-amd
yhl-amd force-pushed the perf/dsv41flash-atom-1127-perf-dep8 branch from 8df2d9e to df25d57 Compare November 29, 2026 17:49
…8-c512, DEP4 c64, TP4 and TP8 points

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yhl-amd
yhl-amd force-pushed the perf/dsv41flash-atom-1127-perf-dep8 branch from df25d57 to 5f164bb Compare December 3, 2026 15:06
@yhl-amd yhl-amd changed the title perf(amd): DSv4.1-Flash ATOM AgentX on nightly_202611290027-perf: DEP8 c128-c512, DEP4 c64, TP4 and TP8 points perf(amd): DSv4.1-Flash ATOM AgentX on nightly_202612031117: DEP8 c128-c512, DEP4 c64, TP4 and TP8 points Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ Reuse source run 46291747276 (from PR #5271, commit df25d5731eb6) is not part of this PR. Its results will publish under this PR's changelog entry at merge.

中文

⚠️ 复用的来源运行 46291747276,来自 PR #5271,提交 df25d5731eb6,不属于本 PR,合并后其结果将以本 PR 的 changelog 条目发布。

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ Reuse source run 46291747276 (from PR #5271, commit df25d5731eb6) is not part of this PR. Its results will publish under this PR's changelog entry at merge.

中文

⚠️ 复用的来源运行 46291747276,来自 PR #5271,提交 df25d5731eb6,不属于本 PR,合并后其结果将以本 PR 的 changelog 条目发布。

- Update the image from rocm/atom-dev:nightly_202611101510 (ATOM e5b74bc86) to nightly_202612031117@sha256:ef8293cd19b40344b4e755f7b0934bb961c4ee8e844758b7de84a7ce5e8cf7b9 (ATOM 10e8c1ea6, AITER ed1163f82, Mooncake 206d6340, ROCm 7.2.4) in the master config, and the AToMesh frontend container_image from sha256:160a4ec49379e7f1980a4e783254366b1d5c643b012abca57a21c0bcbbfe83a7 to the same tag and digest.
- Replace plain TP2 at concurrency [1, 2, 16, 32], DTP2 (DP attention) at 64, DEP2 (DP attention plus expert parallelism) at [128, 256] and plain TP4 at [1, 2, 4, 8, 32] with plain TP8 at [1, 2, 4], plain TP4 at [4, 8, 16, 32], DEP4 at 64 and DEP8 at [128, 256, 384, 512]. Every TP2, DTP2 and DEP2 point and TP4 c1 and c2 are dropped; TP8 c1, c2 and c4, TP4 c16, DEP4 c64 and DEP8 c128 to c512 are new.
- TP8 c1 runs max-num-seqs 2, decode graphs [1, 2] and ATOM_PREFILL_DECODE_INTERVAL=1000000, and TP8 c2 and c4 run ATOM_PREFILL_DECODE_INTERVAL=192, the settings TP2 and TP4 used at those concurrencies. TP4 c4 (192) and c32 (16) are unchanged; TP4 c8 moves from the MXFP8 to a BF16 KV cache (interval 192), and the new TP4 c16 also runs a BF16 KV cache with interval 96.
- DEP8 runs MegaMoE (moe-backend mega) with AITER_MEGA_SHARED_IN=1, adaptive prefill admission, 4 API servers, share_cache DP routing with lockstep placement (--dp-share-cache-lockstep), online EPLB without redundant experts (load window 200, rebalance interval 800, 4 layers per chunk), decode graphs 1 to 48 plus 56, 64, 72, 80, 96 and 128, ATOM_PREFILL_DECODE_INTERVAL=0, ATOM_DP_SESSION_AFFINITY=0, ATOM_DP_LB_REQ_EQUIV=512, ATOM_FRONTEND_PREFIX_HASH=1, ATOM_DP_LM_HEAD_MODE=off, ATOM_GRAPH_SIDE_STREAMS=0, GPU_MAX_HW_QUEUES=5 and MORI_SHMEM_HEAP_SIZE=16G.
- DEP8 offloads KV to CPU DRAM (kv-offloading dram) through ATOM_KV_OFFLOAD=mooncake_store: a Mooncake master and two NUMA-bound 256 GiB Mooncake Store owners on rdma0-7 of the inference node, 1024 MiB load and 256 MiB save pools, OFFLOAD_MIN_LOAD_TOKENS and OFFLOAD_MIN_SAVE_TOKENS 512, OFFLOAD_MAX_PENDING_SAVES 8, one QP per endpoint, destination-device affinity, the memlock soft limit raised to the hard limit before the worker starts and a 3600 s health-check window.
- DEP4 c64 runs the DEP8 settings on 4 GPUs with 2 API servers and two 128 GiB Store owners. The DP points no longer use least_tokens routing, session affinity or the X-Dynamo-Session-Id header from AIPerf.
- Framework changes in the new ATOM that matter here: share_cache lockstep DP placement (ROCm/ATOM#3837, opt-in since #4074), adaptive prefill admission (#3647), the target shared expert handed to the MegaMoE routed call through AITER shared_in (#3894) with its MXFP8 input taken from the FFN seam (#3940), one-launch MegaMoE decode routing including the 48-expert layout (#3938) and route selection (#3187), EPLB on the pre-decoder layers and empty-window skip (#3186, #3952), the DSpark draft tail and DP-sharded draft argmax (#4104, #3939), ATOM_DP_LM_HEAD_MODE and the idle-rank LM head (#3353, #4025), and event-driven Store loads with a failed-save retry cap (#3772, #3781); AITER ed1163f82 (ROCm/aiter#9076) returns BF16 from the DSpark draft MegaMoE.
- Draft data type unchanged: the DSpark draft (mtp.0-2 in the target checkpoint) runs as shipped at both images, with FP8 E4M3 32x32 UE8M0 block-scaled attention, shared-expert and main_proj weights run as MXFP8, MXFP4 routed experts with MXFP8 activations (a8w4, through MegaMoE at DEP4 and DEP8), and BF16 gate, norms and the shared LM head. The draft attends in BF16 over the target's KV pool, which is MXFP8 except at TP4 c8 and c16 (BF16).

- 镜像从 rocm/atom-dev:nightly_202611101510(ATOM e5b74bc86)更新为 nightly_202612031117@sha256:ef8293cd19b40344b4e755f7b0934bb961c4ee8e844758b7de84a7ce5e8cf7b9(ATOM 10e8c1ea6、AITER ed1163f82、Mooncake 206d6340、ROCm 7.2.4),用于 master 配置;AToMesh 前端 container_image 从 sha256:160a4ec49379e7f1980a4e783254366b1d5c643b012abca57a21c0bcbbfe83a7 改为同一标签和 digest。
- 用 TP8 [1, 2, 4]、TP4 [4, 8, 16, 32]、DEP4 64 和 DEP8 [128, 256, 384, 512] 替换 TP2 [1, 2, 16, 32]、DTP2(DP attention)64、DEP2(DP attention 加专家并行)[128, 256] 和 TP4 [1, 2, 4, 8, 32]。所有 TP2、DTP2、DEP2 点以及 TP4 c1、c2 被移除;TP8 c1、c2、c4,TP4 c16,DEP4 c64 和 DEP8 c128 到 c512 为新增。
- TP8 c1 使用 max-num-seqs 2、decode 图 [1, 2] 和 ATOM_PREFILL_DECODE_INTERVAL=1000000,TP8 c2、c4 使用 ATOM_PREFILL_DECODE_INTERVAL=192,即 TP2 和 TP4 在这些并发下原来的设置。TP4 c4(192)和 c32(16)不变;TP4 c8 的 KV cache 从 MXFP8 改为 BF16(interval 192),新增的 TP4 c16 同样使用 BF16 KV cache,interval 96。
- DEP8 使用 MegaMoE(moe-backend mega)并设置 AITER_MEGA_SHARED_IN=1,自适应 prefill 准入,4 个 API server,带 lockstep 放置的 share_cache DP 路由(--dp-share-cache-lockstep),无冗余专家的在线 EPLB(load window 200、rebalance interval 800、每块 4 层),decode 图 1 到 48 加 56、64、72、80、96、128,ATOM_PREFILL_DECODE_INTERVAL=0、ATOM_DP_SESSION_AFFINITY=0、ATOM_DP_LB_REQ_EQUIV=512、ATOM_FRONTEND_PREFIX_HASH=1、ATOM_DP_LM_HEAD_MODE=off、ATOM_GRAPH_SIDE_STREAMS=0、GPU_MAX_HW_QUEUES=5 和 MORI_SHMEM_HEAP_SIZE=16G。
- DEP8 通过 ATOM_KV_OFFLOAD=mooncake_store 将 KV 卸载到 CPU DRAM(kv-offloading dram):推理节点上一个 Mooncake master 和两个绑定 NUMA 的 256 GiB Mooncake Store owner(rdma0-7),1024 MiB 加载池和 256 MiB 保存池,OFFLOAD_MIN_LOAD_TOKENS 和 OFFLOAD_MIN_SAVE_TOKENS 为 512,OFFLOAD_MAX_PENDING_SAVES 为 8,每个端点一个 QP,目标设备亲和,worker 启动前把 memlock 软限制提升到硬限制,健康检查窗口 3600 秒。
- DEP4 c64 在 4 张 GPU 上使用 DEP8 的设置,2 个 API server 和两个 128 GiB Store owner。DP 点不再使用 least_tokens 路由、会话亲和性或 AIPerf 的 X-Dynamo-Session-Id 头。
- 新 ATOM 中与本模型相关的框架变化:share_cache lockstep DP 放置(ROCm/ATOM#3837,自 #4074 起需显式开启)、自适应 prefill 准入(#3647)、目标层共享专家经 AITER shared_in 交给 MegaMoE 路由调用(#3894),其 MXFP8 输入取自 FFN 接缝(#3940)、单次启动的 MegaMoE decode 路由(含 48 专家布局,#3938)和路由选择(#3187)、decoder 之前层的 EPLB 和空窗口跳过(#3186、#3952)、DSpark draft 尾部与 DP 分片 draft argmax(#4104、#3939)、ATOM_DP_LM_HEAD_MODE 与空闲 rank 的 LM head(#3353、#4025)、事件驱动的 Store 加载和失败保存重试上限(#3772、#3781);AITER ed1163f82(ROCm/aiter#9076)使 DSpark draft MegaMoE 返回 BF16。
- Draft 数据类型不变:DSpark draft(目标 checkpoint 中的 mtp.0-2)在新旧镜像上都按发布精度运行,FP8 E4M3 32x32 UE8M0 块缩放的 attention、共享专家和 main_proj 权重以 MXFP8 运行,MXFP4 路由专家配 MXFP8 激活(a8w4,DEP4 和 DEP8 经 MegaMoE),BF16 的 gate、norm 和共享 LM head。draft 在目标的 KV 池上以 BF16 做 attention,该 KV 池除 TP4 c8 和 c16(BF16)外均为 MXFP8。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@seungrokj seungrokj changed the title perf(amd): DSv4.1-Flash ATOM AgentX on nightly_202612031117: DEP8 c128-c512, DEP4 c64, TP4 and TP8 points perf(amd): DSv4.1-Flash ATOM AgentX on nightly_202612031117: DEP8 c128-c512, DEP4 c64, TP4 and TP8 points / perf(amd):DSv4.1-Flash ATOM AgentX 切换到 nightly_202612031117:DEP8 c128-c512、DEP4 c64、TP4 与 TP8 点 Dec 3, 2026
@seungrokj

Copy link
Copy Markdown
Collaborator

Draft data types: no change. The DSpark draft (mtp.0–mtp.2 in deepseek-ai/DeepSeek-V4.1-Flash, 3 stages, 128 routed experts top-3) is stored like the target's MoE layers (read from the safetensors headers of shards 44–46):

Part Data type
Attention wq_a/wq_b/wkv/wo_a/wo_b, shared experts w1/w2/w3, main_proj FP8 E4M3 with 32×32 UE8M0 (F8_E8M0) block scales
Routed experts MXFP4 (I8-packed FP4, E8M0 per-32 scales)
Router gate weight, norms, mtp.2 markov/confidence heads BF16
attn_sink, gate bias, mHC (hc_*) F32
Embedding and LM head shared with the target (BF16)

At ATOM 10e8c1ea6 (the image's revision), the draft builds its MoE quant config with the backbone's rules and keeps its linears native (dspark.py#L290-L297); the recipe sets no --online_quant_config, so nothing is converted. Routed experts run MXFP8 activations on MXFP4 weights (deepseek_v41/moe.py#L76); under moe-backend mega (DEP4, DEP8) the draft MoE also takes the MegaMoE a8w4 method (model_ops/moe.py#L2871, #L2746), and AITER ed1163f82 returns BF16 rows for the draft layouts with no P2P quantization (mega_moe_config.py#L71, #L105, #L1374). Draft layers are excluded from the AITER_MEGA_SHARED_IN shared-expert hand-off (deepseek_v4/init.py#L3201, flydsl_mega_experts.py#L295), so they keep their own FP8 shared expert.

KV: draft_kv_dtype defaults to auto (config.py#L1745, #L2048); a V4.1 draft caches in the target's pool and --spec-decode-kv-cache-dtype is rejected (config.py#L3384). With auto the draft reads BF16 windows (dspark.py#L711-L721) from a window that is MXFP8 when the target KV is fp8 and BF16 at TP4 c8/c16 (v41_pool_geometry.py#L179, dspark.py#L520). The draft LM head is BF16; the DP-sharded draft argmax (ROCm/ATOM#3939) is bit-identical.

So the draft runs as shipped: MXFP8 attention, shared-expert and main_proj weights, MXFP4 routed experts with MXFP8 activations (BF16 combine on DEP), BF16 gate, norms and heads, and the target's KV dtype. The old image (ATOM e5b74bc86) did the same: native draft linears, MXFP8 activations on MXFP4 experts, draft KV in the target pool. Between the two commits only kernels changed for the draft (draft tail #4104, sharded argmax #3939, AITER BF16 draft return ROCm/aiter#9076), not its data types.

中文

Draft 数据类型:无变化。 DSpark draft(deepseek-ai/DeepSeek-V4.1-Flash 中的 mtp.0–mtp.2,3 级,128 个路由专家 top-3)的存储方式与目标的 MoE 层相同(读取自第 44–46 个分片的 safetensors 头):

部分 数据类型
Attention wq_a/wq_b/wkv/wo_a/wo_b、共享专家 w1/w2/w3、main_proj FP8 E4M3,32×32 UE8M0(F8_E8M0)块缩放
路由专家 MXFP4(I8 打包的 FP4,每 32 个元素一个 E8M0 缩放)
路由 gate 权重、norm、mtp.2 markov/confidence head BF16
attn_sink、gate bias、mHC(hc_*) F32
Embedding 和 LM head 与目标共享(BF16)

在 ATOM 10e8c1ea6(镜像对应的版本)中,draft 按骨干网络的规则构建 MoE 量化配置,线性层保持原生格式(dspark.py#L290-L297);recipe 未设置 --online_quant_config,因此不做任何转换。路由专家在 MXFP4 权重上使用 MXFP8 激活(deepseek_v41/moe.py#L76);在 moe-backend mega(DEP4、DEP8)下 draft MoE 同样走 MegaMoE a8w4 方法(model_ops/moe.py#L2871、#L2746),AITER ed1163f82 对 draft 布局返回 BF16 行且不做 P2P 量化(mega_moe_config.py#L71、#L105、#L1374)。draft 层不参与 AITER_MEGA_SHARED_IN 的共享专家交接(deepseek_v4/init.py#L3201、flydsl_mega_experts.py#L295),因此保留自己的 FP8 共享专家。

KV:draft_kv_dtype 默认为 auto(config.py#L1745、#L2048);V4.1 draft 使用目标的 KV 池,--spec-decode-kv-cache-dtype 会被拒绝(config.py#L3384)。在 auto 下 draft 读取 BF16 窗口(dspark.py#L711-L721),窗口在目标 KV 为 fp8 时是 MXFP8,在 TP4 c8/c16 时是 BF16(v41_pool_geometry.py#L179、dspark.py#L520)。draft LM head 为 BF16;DP 分片的 draft argmax(ROCm/ATOM#3939)结果逐位一致。

因此 draft 按发布精度运行:MXFP8 的 attention、共享专家和 main_proj 权重,MXFP4 路由专家配 MXFP8 激活(DEP 下以 BF16 合并),BF16 的 gate、norm 和 head,以及目标的 KV 数据类型。旧镜像(ATOM e5b74bc86)的处理相同:draft 线性层保持原生、MXFP4 专家配 MXFP8 激活、draft KV 位于目标池中。两个提交之间 draft 只有内核变化(draft 尾部 #4104、分片 argmax #3939、AITER draft BF16 返回 ROCm/aiter#9076),数据类型没有变化。

@SemiAnalysisAI SemiAnalysisAI deleted a comment from github-actions Bot Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants