Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment on lines +288 to +291

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.

🟡 (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.

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

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.

🔴 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.

# 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'
25 changes: 25 additions & 0 deletions inferencex-e2e/configs/amd-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions inferencex-e2e/perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12941,3 +12941,12 @@
- "Place the B300 Dynamo + vLLM AgentX frontend on the allocation head for eval-only jobs."
- "Capture DSpark step sizes at multiples of five and six through 40 for aggregated TP4 concurrency 1."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4585

- 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/5098
Loading