Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,114 @@ override_tp2_c64:
benchmark:
env:
CONC: '64'

override_dep8_c256:
frontend:
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
roles:
agg:
gpus: 8
args:
tensor-parallel-size: 1
data-parallel-size: 8
enable-expert-parallel: true
all2all-backend: mori
moe-backend: aiter_mega_moe
engram-config: '{"cpu_offload":false,"embedding_across_dp":true}'
max-num-seqs: 128
max-num-batched-tokens: 32768
prefill-schedule-interval: 96
long-prefill-token-threshold: 8192
max-cudagraph-capture-size: 1024
# Per-tensor-scale FP8 KV cache for sparse MLA (vllm-project/vllm#66036).
kv-cache-dtype: fp8_e4m3
# Mono decode is off for the data-parallel layout.
monokernel: null
env:
MORI_SHMEM_HEAP_SIZE: 64G
VLLM_RPC_TIMEOUT: '600000'
VLLM_RANDOMIZE_DP_DUMMY_INPUTS: '1'
benchmark:
env:
CONC: '256'

override_dep8_c512:
frontend:
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
roles:
agg:
gpus: 8
args:
tensor-parallel-size: 1
data-parallel-size: 8
enable-expert-parallel: true
all2all-backend: mori
moe-backend: aiter_mega_moe
engram-config: '{"cpu_offload":false,"embedding_across_dp":true}'
max-num-seqs: 128
max-num-batched-tokens: 32768
prefill-schedule-interval: 96
long-prefill-token-threshold: 8192
max-cudagraph-capture-size: 1024
# Per-tensor-scale FP8 KV cache for sparse MLA (vllm-project/vllm#66036).
kv-cache-dtype: fp8_e4m3
# Mono decode is off for the data-parallel layout.
monokernel: null
env:
MORI_SHMEM_HEAP_SIZE: 64G
VLLM_RPC_TIMEOUT: '600000'
VLLM_RANDOMIZE_DP_DUMMY_INPUTS: '1'
benchmark:
env:
CONC: '512'

override_dep8_c1024:
frontend:
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
roles:
agg:
gpus: 8
args:
tensor-parallel-size: 1
data-parallel-size: 8
enable-expert-parallel: true
all2all-backend: mori
moe-backend: aiter_mega_moe
engram-config: '{"cpu_offload":false,"embedding_across_dp":true}'
max-num-seqs: 160
max-num-batched-tokens: 32768
prefill-schedule-interval: 96
long-prefill-token-threshold: 8192
max-cudagraph-capture-size: 1024
# Per-tensor-scale FP8 KV cache for sparse MLA (vllm-project/vllm#66036).
kv-cache-dtype: fp8_e4m3
# Mono decode is off for the data-parallel layout.
monokernel: null
env:
MORI_SHMEM_HEAP_SIZE: 64G
VLLM_RPC_TIMEOUT: '600000'
VLLM_RANDOMIZE_DP_DUMMY_INPUTS: '1'
benchmark:
env:
CONC: '1024'
17 changes: 17 additions & 0 deletions inferencex-e2e/configs/amd-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,23 @@ dsv41flash-fp4-mi355x-vllm-agentic-dspark-tp8-c1:
search-space:
- { tp: 8, kv-offloading: none, spec-decoding: mtp, conc-list: [1], srt-recipe: agentic.yaml }

# TP1 x DP8 with expert parallelism over the 8 ranks, behind a consistent-hash router so multi-turn
# sessions keep their prefix-cache hits.
Comment on lines +960 to +961

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.

🟡 nit (optional): Maintainers get comments that AGENTS.md forbids. The comment above dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8 (amd-master.yaml:960) is a header that describes the topology. AGENTS.md bans those for configs, recipes and overrides. Fix: keep only the why, e.g. one line above router: saying consistent hashing keeps a multi-turn session's prefix-cache hits on one rank. Drop the "TP1 x DP8 with expert parallelism" topology text. Likewise "Mono decode is off for the data-parallel layout." (agentic.yaml:315, 352, 389) restates monokernel: null. It should say why mono decode cannot run at DP8, or be removed.

Why this was flagged

AGENTS.md "Comments (mandatory, every file)" says: "No header comments describing a file, topology, config, recipe, override, or section" and "never restate the code". The new comment at inferencex-e2e/configs/amd-master.yaml:960-961 opens with "TP1 x DP8 with expert parallelism over the 8 ranks". That restates the search-space row (tp: 8, ep: 8, dp-attn: true) and the recipe's parallel settings, so it is a topology header on a config key. In inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/dsv41flash/vllm/mi355x-fp4-mtp/agentic.yaml:315, 352 and 389, "# Mono decode is off for the data-parallel layout." only says what monokernel: null does. It gives no reason, such as a kernel limit at DP or a measured failure. This is a convention slip, not a runtime failure. These comments are new in this diff, so the base branch does not have them.

Verification: AGENTS.md:54-58 says: "No header comments describing a file, topology, config, recipe, override, or section" and "never restate the code". The diff adds a header at inferencex-e2e/configs/amd-master.yaml:960-961 whose first clause, "TP1 x DP8 with expert parallelism over the 8 ranks", describes the topology. Nothing at runtime breaks.

dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8:
image: vllm/vllm-openai-rocm:nightly-9bc16ae6a34b1e0fe260e8d12b98568478bf38c3@sha256:1f70fc06f38a18ae5e6ba1e25d9f59fd6f9fd79080d03a6dfdbb84f2bca33052
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: 8, ep: 8, dp-attn: true, kv-offloading: none, spec-decoding: mtp, conc-list: [256, 512, 1024], router: { name: vllm-router, version: "0.1.14" }, srt-recipe: agentic.yaml }

minimaxm31flash-fp4-mi355x-vllm-agentic-dspark:
image: vllm/vllm-openai-rocm:minimax-m31-flash-75bc8cf1@sha256:f8e8ab239e5edb7c3070c5802fc7fc0cbb889513bf81183dfc98ce1c77e1dfe1
model: amd/MiniMax-M3.1-Flash-Quark-MXFP4
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 @@ -12898,3 +12898,12 @@
- "Sweep the B200 Wan2.2-T2V-A14B vLLM-Omni baseline on 1, 2, 4 and 8 GPUs at C1 on the same wan22.yaml release-v1 workload, so the dashboard shows a GPU-count curve."
- "Deployment per count: 1 GPU runs both CFG branches with Ulysses 1 and no VAE patch parallelism; 2 GPUs CFG parallel 2 x Ulysses 1; 4 GPUs CFG parallel 2 x Ulysses 2; 8 GPUs keeps CFG parallel 2 x Ulysses 4. Tiled VAE patch parallelism spans every GPU from 2 GPUs up."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5084

- config-keys:
- dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8
scenario-type: [agentic-coding]
description:
- "Add DeepSeek-V4.1-Flash FP4 AgentX on MI355X at DEP8 (TP1 x DP8 with expert parallelism over the 8 ranks) behind a consistent-hash vLLM router at concurrency 256, 512 and 1024, on vllm/vllm-openai-rocm:nightly-9bc16ae6 (index digest sha256:1f70fc06f38a18ae5e6ba1e25d9f59fd6f9fd79080d03a6dfdbb84f2bca33052), with the per-tensor-scale FP8 KV cache (--kv-cache-dtype fp8_e4m3, vllm-project/vllm#66036)."
- "Experts run on AITER MegaMoE over MoRI (--moe-backend aiter_mega_moe, --all2all-backend mori). Prefill uses the engine's cadence scheduling (prefill-schedule-interval 96, 32768-token budget, long-prefill-token-threshold 8192) with max-num-seqs 128 (160 at concurrency 1024), as in the B300 recipe. The cross-DP delayer (vllm-project/vllm#65655) is not used."
- "Engram tables stay in HBM, sharded across the DP ranks (engram-config {\"cpu_offload\":false,\"embedding_across_dp\":true}), as in the B300 DEP8 recipe: host-offloaded tables are read through small-page host mappings and made prefill Engram lookups take 54 to 110 ms per layer on MI355X."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5056
Loading