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
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2150982
5c75a20
0591ddd
171cb8d
b3de574
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -284,3 +284,121 @@ override_tp2_c64: | |
| benchmark: | ||
| env: | ||
| CONC: '64' | ||
|
|
||
| # 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. | ||
| override_dep2_umbp_c256: | ||
| # Each srtctl step has its own mount namespace; a node-local host directory is | ||
| # 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 | ||
|
Comment on lines
+294
to
+311
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 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. Why this was flaggedThe two UMBP overrides bind the host's /dev/shm to /umbp-host (agentic.yaml:295-296). The umbp-server preamble then runs Verification: agentic.yaml:295-296 binds the host's |
||
| # The server binary ships inside the MORI package and loads its libraries from there. | ||
| command: | ||
| - bash | ||
| - -c | ||
| - P=$(python3 -c 'import mori, os; print(os.path.dirname(mori.__file__))') && LD_LIBRARY_PATH=$P:$LD_LIBRARY_PATH exec $P/umbp_standalone_server unix:///umbp-host/umbp/standalone.grpc.sock | ||
| env: | ||
| UMBP_STANDALONE_ADDRESS: unix:///umbp-host/umbp/standalone.grpc.sock | ||
| # TOTAL_CPU_DRAM_GB in bytes. | ||
| UMBP_DRAM_CAPACITY: '449000000000' | ||
| # The mi355x-amds host setup releases hugepages, so the pool uses 4 KiB pages. | ||
| UMBP_DRAM_USE_HUGEPAGES: '0' | ||
| UMBP_SSD_ENABLED: '0' | ||
| # The readiness line below is logged at INFO; the default level is WARN. | ||
| MORI_UMBP_LOG_LEVEL: INFO | ||
| readiness: | ||
| log: | ||
| pattern: '\[StandaloneServer\] listening' | ||
| # Faulting in a ~450 GB pool on 4 KiB pages takes several minutes. | ||
| timeout_seconds: 1800 | ||
| roles: | ||
| agg: &dep2_umbp_agg | ||
| gpus: 2 | ||
| args: | ||
| tensor-parallel-size: 1 | ||
| data-parallel-size: 2 | ||
| enable-expert-parallel: true | ||
| all2all-backend: mori | ||
| moe-backend: aiter_mega_moe | ||
| engram-config: '{"cpu_offload":true}' | ||
| max-cudagraph-capture-size: 1024 | ||
| max-num-batched-tokens: 16384 | ||
| # The DP2 points were tuned without mono decode. | ||
| monokernel: null | ||
| prefill-schedule-interval: 11 | ||
| # Per-tensor fp8 KV rows (vllm-project/vllm#66036) instead of the block-scaled | ||
| # fp8_ds_mla record; the DSpark draft layers share the same cache dtype. | ||
| kv-cache-dtype: fp8_e4m3 | ||
| kv-transfer-config: '{"kv_connector":"UMBPStoreConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"mode":"standalone","endpoint":"unix:///umbp-host/umbp/standalone.grpc.sock"}}' | ||
| env: | ||
| # The MoRI symmetric heap is allocated before vLLM checks that gpu-memory-utilization | ||
| # (0.9 of 288 GiB) is still free. 64G left 216 GiB free against 259 GiB requested and the | ||
| # engine failed to start; 16G is vLLM's own MegaMoE default for this model and the 8 GB | ||
| # MegaMoEV2 needs with a fused shared expert fits twice over. | ||
| MORI_SHMEM_HEAP_SIZE: 16G | ||
| VLLM_RANDOMIZE_DP_DUMMY_INPUTS: '1' | ||
| benchmark: | ||
| env: | ||
| CONC: '256' | ||
| KV_OFFLOADING: 'dram' | ||
| TOTAL_CPU_DRAM_GB: '449' | ||
|
|
||
| override_dep2_umbp_c384: | ||
| container_mounts: *dep2_umbp_host_dir | ||
| frontend: *dep2_router | ||
| setup_script: vllm-router.sh | ||
| services: *dep2_umbp_server | ||
| roles: | ||
| agg: *dep2_umbp_agg | ||
| benchmark: | ||
| env: | ||
| CONC: '384' | ||
| KV_OFFLOADING: 'dram' | ||
| TOTAL_CPU_DRAM_GB: '449' | ||
|
|
||
| override_dep2_c128: | ||
| frontend: *dep2_router | ||
| setup_script: vllm-router.sh | ||
| roles: | ||
| agg: | ||
| gpus: 2 | ||
| args: | ||
| tensor-parallel-size: 1 | ||
| data-parallel-size: 2 | ||
| enable-expert-parallel: true | ||
| all2all-backend: mori | ||
| moe-backend: aiter_mega_moe | ||
| engram-config: '{"cpu_offload":true}' | ||
| max-cudagraph-capture-size: 1024 | ||
| max-num-batched-tokens: 16384 | ||
| # The DP2 points were tuned without mono decode. | ||
| monokernel: null | ||
| prefill-schedule-interval: 11 | ||
| kv-cache-dtype: fp8_e4m3 | ||
| env: | ||
| # The MoRI symmetric heap is allocated before vLLM checks that gpu-memory-utilization | ||
| # (0.9 of 288 GiB) is still free. 64G left 216 GiB free against 259 GiB requested and the | ||
| # engine failed to start; 16G is vLLM's own MegaMoE default for this model and the 8 GB | ||
| # MegaMoEV2 needs with a fused shared expert fits twice over. | ||
| MORI_SHMEM_HEAP_SIZE: 16G | ||
| VLLM_RANDOMIZE_DP_DUMMY_INPUTS: '1' | ||
| benchmark: | ||
| env: | ||
| CONC: '128' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 (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 abovedsv41flash-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.