Repository navigation
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
Conversation
|
Thanks for the contribution!
中文感谢你的贡献!
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
25ef583 to
356120c
Compare
There was a problem hiding this comment.
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-mtpisdsv41flash-fp4-mi355x-atom-agentic-dspark(amd-master.yaml:1155,1163). No row uses anoverride_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."
| - &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}' |
There was a problem hiding this comment.
🟡 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.
1514e1d to
6bc9fe4
Compare
6bc9fe4 to
8df2d9e
Compare
8df2d9e to
df25d57
Compare
…8-c512, DEP4 c64, TP4 and TP8 points Co-Authored-By: Claude Opus 5.5 <[email protected]>
df25d57 to
5f164bb
Compare
|
中文
|
|
中文
|
- 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]>
|
Draft data types: no change. The DSpark draft (
At ATOM KV: 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 中文Draft 数据类型:无变化。 DSpark draft(
在 ATOM KV: 因此 draft 按发布精度运行:MXFP8 的 attention、共享专家和 main_proj 权重,MXFP4 路由专家配 MXFP8 激活(DEP 下以 BF16 合并),BF16 的 gate、norm 和 head,以及目标的 KV 数据类型。旧镜像(ATOM |
DeepSeek-V4.1-Flash ATOM AgentX (MI355X): move to
rocm/atom-dev:nightly_202612031117and 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 masterimageand the AToMesh frontendcontainer_image. This is the official ATOM nightly, used as published: no patches, overlays or rebuilt kernels.Points (3600 s, seed 42)
ATOM_PREFILL_DECODE_INTERVAL=1000000; c2, c4: interval 192moe-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 StoreRemoved: 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-lengthor 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.ymlrun 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)
ATOM_PREFILL_DECODE_INTERVAL=1000000;c2、c4:interval 192moe-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