From 21509825df0fcc1130685b0698431d7a895f321c Mon Sep 17 00:00:00 2001 From: Fangzhou Ai Date: Mon, 16 Nov 2026 15:24:21 +0000 Subject: [PATCH 1/3] feat(amd): add DSv4.1-Flash MI355X vLLM DEP2 AgentX points at c128, c256 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 Signed-off-by: Fangzhou Ai --- .../vllm/mi355x-fp4-mtp/agentic.yaml | 110 ++++++++++++++++++ inferencex-e2e/configs/amd-master.yaml | 25 ++++ inferencex-e2e/perf-changelog.yaml | 9 ++ 3 files changed, 144 insertions(+) diff --git a/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml b/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml index e600332084..b5e4bce5cf 100644 --- a/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml +++ b/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml @@ -284,3 +284,113 @@ 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 + # 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: + MORI_SHMEM_HEAP_SIZE: 64G + 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: + MORI_SHMEM_HEAP_SIZE: 64G + VLLM_RANDOMIZE_DP_DUMMY_INPUTS: '1' + benchmark: + env: + CONC: '128' diff --git a/inferencex-e2e/configs/amd-master.yaml b/inferencex-e2e/configs/amd-master.yaml index ee6fbf74c1..964c470eea 100644 --- a/inferencex-e2e/configs/amd-master.yaml +++ b/inferencex-e2e/configs/amd-master.yaml @@ -938,6 +938,31 @@ dsv41flash-fp4-mi355x-vllm-agentic-dspark: - { tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2], srt-recipe: agentic.yaml } - { tp: 2, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2, 4, 8, 16, 32, 64], srt-recipe: agentic.yaml } +# DEP2 on two GPUs per server: attention DP2 with the MoE expert-parallel across both ranks +# on AITER MegaMoE over MoRI, at concurrency 128, 256 and 384, with UMBP KV offloading at +# 256 and 384. It uses the image and the engine settings of the DP2 (MoE tensor-parallel) +# key dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp, so the two keys differ only in the MoE +# parallelism and backend. +dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2: + # Carries vllm-project/vllm#64715 (UMBP standalone for DeepSeek-V4.1-Flash), #66036 + # (per-tensor fp8_e4m3 KV for sparse MLA), #66644 (AITER MegaMoE) and #67377 (AITER + # FlyDSL dense MXFP8 GEMMs); its MORI v1.2.3.post1 is built with UMBP. + image: vllm/vllm-openai-rocm:nightly-60bd6dd2edd175a1c55fd3488f871e4c3d2ef27d@sha256:67a3a0fb79893fc5a0fcff5f9b739ba8fec7e920875a12e0574c2e9f50cd814c + model: deepseek-ai/DeepSeek-V4.1-Flash + model-prefix: dsv41flash + runner: cluster:mi355x-amds + precision: fp4 + framework: vllm + multinode: false + srt-recipe-dir: dsv41flash/vllm/mi355x-fp4-mtp + scenarios: + agentic-coding: + - dram-utilization: 0.60 + search-space: + - { tp: 2, ep: 2, dp-attn: true, kv-offloading: none, spec-decoding: mtp, conc-list: [128], router: { name: vllm-router, version: "0.1.14" }, srt-recipe: agentic.yaml:override_dep2_c128 } + - { tp: 2, ep: 2, dp-attn: true, kv-offloading: dram, kv-offload-backend: { name: umbp, version: "1.2.3.post1" }, spec-decoding: mtp, conc-list: [256], router: { name: vllm-router, version: "0.1.14" }, srt-recipe: agentic.yaml:override_dep2_umbp_c256 } + - { tp: 2, ep: 2, dp-attn: true, kv-offloading: dram, kv-offload-backend: { name: umbp, version: "1.2.3.post1" }, spec-decoding: mtp, conc-list: [384], router: { name: vllm-router, version: "0.1.14" }, srt-recipe: agentic.yaml:override_dep2_umbp_c384 } + # Single-point TP8 c1 scan of DeepSeek-V4.1-Flash on MI355X with mono decode # (--monokernel) on the latest vLLM ROCm 10.0 nightly (2026-10-30), which carries # vllm-project/vllm#64101 (mono decode at TP8; earlier builds refuse --monokernel diff --git a/inferencex-e2e/perf-changelog.yaml b/inferencex-e2e/perf-changelog.yaml index d8f719bf8e..4cb03e5884 100644 --- a/inferencex-e2e/perf-changelog.yaml +++ b/inferencex-e2e/perf-changelog.yaml @@ -12918,3 +12918,12 @@ - "Concurrency 1 and 4 (latency_specialized decode backend) pick up the seungrokj/mum#28 levers through their defaults (all 1): VLLM_K31_BEAT_MARKOV, VLLM_K31_BEAT_DRAFTMETA, VLLM_K31_BEAT_K2SYNC, VLLM_K31_BEAT_EAGERPREP, VLLM_K31_BEAT_KDAK1 and VLLM_K3_INDEXER_SAMPLED_TOPK, plus VLLM_KIMI_SD_DSA_PROLOGUE_INDEXER at concurrency 1, where VLLM_KIMI_SD_DSA_PROLOGUE is on. Concurrency 16-48 use the stock decode backend, which ignores these flags." - "No change to layouts, draft token counts, capture sizes or the DSpark draft's data types." pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5089 + +- config-keys: + - dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2 + scenario-type: + - agentic-coding + description: + - "New key on vllm/vllm-openai-rocm:nightly-60bd6dd2edd175a1c55fd3488f871e4c3d2ef27d (2026-11-16, digest sha256:67a3a0fb79893fc5a0fcff5f9b739ba8fec7e920875a12e0574c2e9f50cd814c), the image of the DP2 key dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp (https://github.com/SemiAnalysisAI/InferenceX/pull/5036), which carries vllm-project/vllm#64715 (UMBP standalone mode for DeepSeek-V4.1-Flash on ROCm), #66036 (per-tensor fp8_e4m3 KV cache for sparse MLA on ROCm), #66644 (AITER MegaMoE) and #67377 (AITER FlyDSL dense MXFP8 GEMMs). Its MORI v1.2.3.post1 is built with UMBP." + - "Add DEP2 at concurrency 128, 256 and 384 on two GPUs: attention DP2 with the MoE expert-parallel across both ranks (tensor-parallel-size 1, data-parallel-size 2, enable-expert-parallel) on AITER MegaMoE over MoRI (moe-backend aiter_mega_moe, all2all-backend mori), fronted by vllm-router 0.1.14 with consistent_hash. Every other setting is that of the DP2 points in the UMBP key, where the MoE is tensor-parallel across both ranks: prefill cadence (prefill-schedule-interval 11), no --monokernel, five-token DSpark, block size 128, the MXFP4 sparse-logits indexer, Engram tables in host memory, max-num-batched-tokens 16384, cudagraph capture up to 1024 and kv-cache-dtype fp8_e4m3. Concurrency 128 runs without KV offloading; 256 and 384 offload KV to host DRAM through UMBPStoreConnector in standalone mode, with the same 449 GB node-local umbp_standalone_server pool and host-directory socket mount as the DP2 key." + pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/TBD From 5c75a20c019c5968e0f8a839e087216805449714 Mon Sep 17 00:00:00 2001 From: Fangzhou Ai Date: Mon, 16 Nov 2026 15:25:46 +0000 Subject: [PATCH 2/3] chore(amd): set the DEP2 changelog entry's pr-link to #5098 Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Fangzhou Ai --- inferencex-e2e/perf-changelog.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inferencex-e2e/perf-changelog.yaml b/inferencex-e2e/perf-changelog.yaml index 4cb03e5884..6e2525c4df 100644 --- a/inferencex-e2e/perf-changelog.yaml +++ b/inferencex-e2e/perf-changelog.yaml @@ -12926,4 +12926,4 @@ description: - "New key on vllm/vllm-openai-rocm:nightly-60bd6dd2edd175a1c55fd3488f871e4c3d2ef27d (2026-11-16, digest sha256:67a3a0fb79893fc5a0fcff5f9b739ba8fec7e920875a12e0574c2e9f50cd814c), the image of the DP2 key dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp (https://github.com/SemiAnalysisAI/InferenceX/pull/5036), which carries vllm-project/vllm#64715 (UMBP standalone mode for DeepSeek-V4.1-Flash on ROCm), #66036 (per-tensor fp8_e4m3 KV cache for sparse MLA on ROCm), #66644 (AITER MegaMoE) and #67377 (AITER FlyDSL dense MXFP8 GEMMs). Its MORI v1.2.3.post1 is built with UMBP." - "Add DEP2 at concurrency 128, 256 and 384 on two GPUs: attention DP2 with the MoE expert-parallel across both ranks (tensor-parallel-size 1, data-parallel-size 2, enable-expert-parallel) on AITER MegaMoE over MoRI (moe-backend aiter_mega_moe, all2all-backend mori), fronted by vllm-router 0.1.14 with consistent_hash. Every other setting is that of the DP2 points in the UMBP key, where the MoE is tensor-parallel across both ranks: prefill cadence (prefill-schedule-interval 11), no --monokernel, five-token DSpark, block size 128, the MXFP4 sparse-logits indexer, Engram tables in host memory, max-num-batched-tokens 16384, cudagraph capture up to 1024 and kv-cache-dtype fp8_e4m3. Concurrency 128 runs without KV offloading; 256 and 384 offload KV to host DRAM through UMBPStoreConnector in standalone mode, with the same 449 GB node-local umbp_standalone_server pool and host-directory socket mount as the DP2 key." - pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/TBD + pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5098 From 0591ddd8d75a776aae0ff0514fa713c99aeb6ef6 Mon Sep 17 00:00:00 2001 From: Fangzhou Ai Date: Tue, 17 Nov 2026 01:37:40 +0000 Subject: [PATCH 3/3] fix(amd): shrink the DEP2 MoRI shmem heap to 16G so gpu-memory-utilization 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 Signed-off-by: Fangzhou Ai --- .../dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml b/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml index b5e4bce5cf..656ca1f790 100644 --- a/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml +++ b/inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml @@ -348,7 +348,11 @@ override_dep2_umbp_c256: 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: - MORI_SHMEM_HEAP_SIZE: 64G + # 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: @@ -389,7 +393,11 @@ override_dep2_c128: prefill-schedule-interval: 11 kv-cache-dtype: fp8_e4m3 env: - MORI_SHMEM_HEAP_SIZE: 64G + # 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: