Repository navigation
[AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DEP2 (MegaMoE) concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DEP2(MegaMoE)并发 128–384 点,256、384 启用 UMBP KV offloading - #5098
Fangzhou-Ai wants to merge 5 commits into
Conversation
…256 and c384, with UMBP KV offloading at 256 and 384 Attention DP2 with the MoE expert-parallel across both ranks on AITER MegaMoE over MoRI. Image, router, scheduler, UMBP service and every other engine setting are those of the DP2 (MoE tensor-parallel) points in the UMBP key, so the two keys differ only in the MoE parallelism and backend. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
|
Thanks for the contribution!
中文感谢你的贡献!
|
|
Claude finished @Fangzhou-Ai's task in 39s —— View job LGTM - no blocking issues found |
| # the one place the UMBP server and the engine workers both see its sockets. | ||
| container_mounts: &dep2_umbp_host_dir | ||
| /dev/shm: /umbp-host | ||
| frontend: &dep2_router | ||
| type: vllm-router | ||
| args: | ||
| policy: consistent_hash | ||
| prometheus-host: 127.0.0.1 | ||
| prometheus-port: 18000 | ||
| request-timeout-secs: 14400 | ||
| disable-retries: true | ||
| setup_script: vllm-router.sh | ||
| services: &dep2_umbp_server | ||
| - name: umbp-server | ||
| type: generic | ||
| start: before_workers | ||
| critical: true | ||
| preamble: mkdir -p /umbp-host/umbp |
There was a problem hiding this comment.
🔴 The c256 and c384 UMBP points can fail on a node when an earlier job there ran as a different user. Each job leaves a directory and socket under the host's /dev/shm, and nothing removes them. mkdir -p /umbp-host/umbp keeps the old 0755 directory, so the new owner cannot create the socket. The server then never logs the readiness line. Fix: give each job its own socket directory and remove it when the job ends, for example with a trap or a host-setup teardown. Both the server command and the kv-transfer-config endpoint must point to that directory.
Why this was flagged
The two UMBP overrides bind the host's /dev/shm to /umbp-host (agentic.yaml:295-296). The umbp-server preamble then runs mkdir -p /umbp-host/umbp (agentic.yaml:311), and the server binds a fixed path, unix:///umbp-host/umbp/standalone.grpc.sock (agentic.yaml:316). mi355x-amds runs with --container-remap-root (runners.yaml:802), so the directory belongs on the host to whoever submitted the job, and umask 022 makes it 0755. Nothing removes it: the recipe has no teardown, and hooks/mi355x-amds/setup.sh does not touch /dev/shm. Suppose a later c256 or c384 job lands on the same node under a different host uid. In that case mkdir is a no-op, the server cannot create or unlink its socket, and [StandaloneServer] listening never appears. With critical: true, the point then fails after up to the 1800 s readiness timeout, and keeps failing on that node until someone clears /dev/shm. On the base branch, no recipe writes host-side state there.
Verification: agentic.yaml:295-296 binds the host's /dev/shm to /umbp-host. agentic.yaml:311 runs mkdir -p /umbp-host/umbp. On a second job, -p succeeds silently on an existing directory and does not change its owner or mode. configs/runners.yaml:802 sets --container-remap-root. Nothing removes the directory or socket. The base has no umbp-host or /dev/shm use anywhere.
| # DEP2: attention DP2 with the MoE expert-parallel across both ranks, on AITER MegaMoE over | ||
| # MoRI. The topology, router, scheduler and engine settings are those of the DP2 points | ||
| # (MoE tensor-parallel across both ranks) in the UMBP key, so a pair of runs differs only | ||
| # in the MoE parallelism and backend. |
There was a problem hiding this comment.
🟡 (optional) Maintainers get new comments that break the mandatory AGENTS.md comment rules, and some point at DP2 points and a key that do not exist on this base. The comment at agentic.yaml:288-291 is a header describing the topology and override. So is the comment at amd-master.yaml:941-945. The "tuned without mono decode" lines are history about other points. Fix: delete both headers and reword the monokernel lines as a short reason for monokernel: null, which covers the 4 sites listed. Same pattern at 4 sites (agentic.yaml:288, agentic.yaml:345, agentic.yaml:387, amd-master.yaml:941). [also at: inferencex-e2e/configs/amd-master.yaml:945 - Maintainers get new header and provenance comments that the mandatory AGENTS.md comment rules forbid. The block above dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2 (amd-master.yaml:941-945) describes the key, its topology and where its settings came from.]
Why this was flagged
AGENTS.md "Comments (mandatory, every file)" bans header comments that describe a file, topology, config, recipe, override or section. It also bans history such as where code came from or past results. The new block at agentic.yaml:288-291 opens with "# DEP2: attention DP2 with the MoE expert-parallel..." above override_dep2_umbp_c256. amd-master.yaml:941-945 opens with "# DEP2 on two GPUs per server..." above the new key. agentic.yaml:345 and :387 say "The DP2 points were tuned without mono decode." Both headers and those lines describe things by reference to the DP2 points of key dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp. Neither that key nor any override_dp2_* override exists in this checkout; a repo-wide grep finds the name only in these new comments and the changelog. Readers are pointed at configs that are not there.
Verification: AGENTS.md:54-57 says: "No header comments describing a file, topology, config, recipe, override, or section." agentic.yaml:288-291 and amd-master.yaml:941-945 are such headers. agentic.yaml:343 and :387 say "# The DP2 points were tuned without mono decode." The referenced points and key do not exist on this base.
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=44000483656 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=44000483656 |
…ation 0.9 fits The sweep failed at c256 and c384 in init_device: free memory on startup was 216-218 GiB against 259.19 GiB requested (0.9 of 288 GiB) because the 64G MoRI symmetric heap is already allocated. 16G is vLLM's MegaMoE default for this model and covers the 8 GB MegaMoEV2 needs with a fused shared expert. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Resolve the perf-changelog.yaml conflict by keeping main's new entries and appending this PR's entry last. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Keep main's new perf-changelog entries and append this PR's entry last. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Adds DEP2 points for DeepSeek-V4.1-Flash FP4 AgentX on MI355X (vLLM) at concurrency 128, 256 and 384, so DEP2 can be compared head to head with the DP2 points in #5036 (MoE tensor-parallel across the two ranks, called DPATP2 here). Both keys run two GPUs per server with attention DP2. The only differences are the MoE parallelism and backend: DEP2 adds
enable-expert-parallelwith AITER MegaMoE over MoRI (moe-backend aiter_mega_moe,all2all-backend mori), where the DP2 key keeps the MoE tensor-parallel. The new config key isdsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2, so no existing key reruns.Everything else is copied from #5036's DP2 points: the image
nightly-60bd6dd2(digestsha256:67a3a0fb7989…, which carries #64715 UMBP, #66036 fp8 KV, #66644 MegaMoE and #67377 FlyDSL GEMMs), vllm-router 0.1.14 withconsistent_hash,prefill-schedule-interval 11,max-num-batched-tokens 16384, cudagraph capture up to 1024,kv-cache-dtype fp8_e4m3, no--monokernel, Engram tables in host memory, and the same KV policy: c128 without offloading and c256/c384 with UMBP (the same 449 GB node-localumbp_standalone_serverpool, host-directory socket mount andUMBPStoreConnectorstandalone settings, withkv_load_failure_policy: recompute). The two MegaMoE-specific additions areMORI_SHMEM_HEAP_SIZE: 64G(the value the DEP8 points use) andVLLM_RANDOMIZE_DP_DUMMY_INPUTS: 1.Draft: nothing here has been swept. No CI run and no run link yet, and I have not yet run this exact recipe on a node.
What I checked locally
python -m infx.matrix.planagainstmain) expands the key to exactly three points (c128 no offloading, c256 and c384 with UMBP) plus the c384 eval entry, as in [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036.override_dep2_*onto the base recipe with srtctl'sdeep_mergegives the intended engine arguments (TP1, DP2, expert parallelism,aiter_mega_moe,mori, 16384 batched tokens, interval 11, no monokernel, UMBP service and mount on c256/c384 only).Risks and open items
MORI_SHMEM_HEAP_SIZE: 64Gcomes from the DEP8 points; two ranks may need less.max-num-seqsis left at the engine default, as in the DP2 key, so the comparison does not change the admission limit.excludeof the known bad nodes (mia1-p01-g09,mia1-p01-g11) that [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036 adds torunners.yamlis not part of this PR; this PR relies on [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036 for it, or the sweep may land on those nodes.agentic.yaml,amd-master.yamland the changelog. If [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036 merges first, expect a trivial rebase.Change details
agentic.yaml: newoverride_dep2_umbp_c256,override_dep2_umbp_c384andoverride_dep2_c128. The UMBP server service, the/dev/shmmount and the router are defined once with YAML anchors in the c256 override and reused by c384 and c128, as in [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036.amd-master.yaml: new keydsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2, three search-space rows (tp: 2, ep: 2, dp-attn: true, concurrency 128, 256 and 384), image pinned by digest.perf-changelog.yaml: one appended entry.中文
为 MI355X 上的 DeepSeek-V4.1-Flash FP4 AgentX(vLLM)新增 DEP2 点位,并发 128、256 和 384,以便与 #5036 中的 DP2 点位(MoE 在两个 rank 间做张量并行,这里称为 DPATP2)直接对比。两个 key 都是每个服务器两张 GPU、attention DP2,唯一区别是 MoE 的并行方式与后端:DEP2 增加
enable-expert-parallel,并使用基于 MoRI 的 AITER MegaMoE(moe-backend aiter_mega_moe、all2all-backend mori),而 DP2 key 保持 MoE 张量并行。新增配置 key 为dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2,因此不会重跑任何已有 key。其余设置均与 #5036 的 DP2 点位一致:镜像
nightly-60bd6dd2(digestsha256:67a3a0fb7989…,包含 #64715 UMBP、#66036 fp8 KV、#66644 MegaMoE、#67377 FlyDSL GEMM)、vllm-router 0.1.14(consistent_hash)、prefill-schedule-interval 11、max-num-batched-tokens 16384、cudagraph 捕获上限 1024、kv-cache-dtype fp8_e4m3、不使用--monokernel、Engram 表放在主机内存,以及相同的 KV 策略:c128 不卸载,c256/c384 使用 UMBP(同样的 449 GB 节点本地umbp_standalone_server池、主机目录 socket 挂载和UMBPStoreConnectorstandalone 配置,kv_load_failure_policy: recompute)。MegaMoE 相关的两处新增是MORI_SHMEM_HEAP_SIZE: 64G(与 DEP8 点位相同)和VLLM_RANDOMIZE_DP_DUMMY_INPUTS: 1。草稿:尚未运行任何 sweep。 目前没有 CI 运行,也没有运行链接,这套配方也还没有在节点上实际运行过。
本地已检查
main运行python -m infx.matrix.plan)把该 key 展开为恰好三个点位(c128 不卸载,c256 和 c384 使用 UMBP)加上 c384 的 eval 条目,与 [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036 一致。deep_merge把每个override_dep2_*合并到基础配方后,得到预期的引擎参数。风险与待办
MORI_SHMEM_HEAP_SIZE: 64G取自 DEP8 点位,两个 rank 可能需要更少。max-num-seqs保持引擎默认值,与 DP2 key 一致,使对比不改变准入上限。runners.yaml中加入的已知坏节点exclude(mia1-p01-g09、mia1-p01-g11)不在本 PR 中;本 PR 依赖 [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036,否则 sweep 可能分配到这些节点。agentic.yaml、amd-master.yaml和 changelog 中相邻;若 [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DP2 concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DP2 并发 128–384 点,256、384 启用 UMBP KV offloading #5036 先合并,需要做一次简单的 rebase。AI model disclosure
Claude Sonnet 5.5 (
claude-sonnet-5-5), run through Claude Code, prepared the config and recipe changes and wrote this description. No delegated agents.🤖 Generated with Claude Code