-
Notifications
You must be signed in to change notification settings - Fork 219
[Klaud Cold] DSV4 MI355X vLLM disagg smoke test (8k1k conc=32) / DSV4 MI355X vLLM 分离式冒烟测试(8k1k conc=32) #2081
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
Closed
+173
−0
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # DeepSeek-V4-Pro disaggregated prefill/decode on MI355X via vLLM + MoRI-IO. | ||
| # Thin, model-agnostic launcher: all serving flags / env live in the | ||
| # DeepSeek-V4-Pro entry of amd_utils/models_vllm.yaml, and topology (P/D node | ||
| # counts, TP/EP) comes from amd-master.yaml. Identical in shape to the kimi / | ||
| # minimax vllm-disagg wrappers; only the model differs. | ||
|
|
||
| source "$(dirname "$0")/../benchmark_lib.sh" | ||
|
|
||
| check_env_vars \ | ||
| CONC_LIST \ | ||
| ISL \ | ||
| OSL \ | ||
| IMAGE \ | ||
| SPEC_DECODING \ | ||
| MODEL_PATH \ | ||
| PREFILL_NUM_WORKERS \ | ||
| PREFILL_TP \ | ||
| PREFILL_EP \ | ||
| PREFILL_DP_ATTN \ | ||
| DECODE_NUM_WORKERS \ | ||
| DECODE_TP \ | ||
| DECODE_EP \ | ||
| DECODE_DP_ATTN \ | ||
| PREFILL_NODES \ | ||
| DECODE_NODES \ | ||
| RANDOM_RANGE_RATIO \ | ||
| FRAMEWORK | ||
|
|
||
| if [[ -n "$SLURM_JOB_ID" ]]; then | ||
| echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" | ||
| fi | ||
|
|
||
| set -x | ||
|
|
||
| cd "$GITHUB_WORKSPACE/benchmarks/multi_node/amd_utils" || exit 1 | ||
|
|
||
| export TIME_LIMIT="08:00:00" | ||
| export MODEL_PATH=$MODEL_PATH | ||
| export MODEL_NAME=$MODEL_NAME | ||
| export CONTAINER_IMAGE=$IMAGE | ||
|
|
||
| # Same EP/DP booleans as kimik2.5_fp4_mi355x_vllm-disagg.sh → amd_utils/submit.sh | ||
| if [[ "${PREFILL_EP:-1}" -eq 1 ]]; then | ||
| export PREFILL_ENABLE_EP=false | ||
| else | ||
| export PREFILL_ENABLE_EP=true | ||
| fi | ||
|
|
||
| if [[ "$PREFILL_DP_ATTN" == "true" ]]; then | ||
| export PREFILL_ENABLE_DP=true | ||
| else | ||
| export PREFILL_ENABLE_DP=false | ||
| fi | ||
|
|
||
| if [[ "${DECODE_EP:-1}" -eq 1 ]]; then | ||
| export DECODE_ENABLE_EP=false | ||
| else | ||
| export DECODE_ENABLE_EP=true | ||
| fi | ||
|
|
||
| if [[ "$DECODE_DP_ATTN" == "true" ]]; then | ||
| export DECODE_ENABLE_DP=true | ||
| else | ||
| export DECODE_ENABLE_DP=false | ||
| fi | ||
|
|
||
| # Parameter order matches SGLang disagg submit.sh; arg 16 is optional NODELIST. | ||
| JOB_ID=$(bash ./submit.sh $PREFILL_NODES \ | ||
| $PREFILL_NUM_WORKERS \ | ||
| $DECODE_NODES \ | ||
| $DECODE_NUM_WORKERS \ | ||
| $ISL $OSL "${CONC_LIST// /x}" inf \ | ||
| ${PREFILL_ENABLE_EP} ${PREFILL_ENABLE_DP} \ | ||
| ${DECODE_ENABLE_EP} ${DECODE_ENABLE_DP} \ | ||
| ${PREFILL_TP} ${DECODE_TP} \ | ||
| ${RANDOM_RANGE_RATIO} \ | ||
| "${NODELIST:-}") | ||
|
|
||
| if [[ $? -ne 0 ]]; then | ||
| echo "Failed to submit job" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "$JOB_ID" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🟡 The new
dsv4-fp4-mi355x-vllm-disaggentry sets--moe-backend triton_unfusedand omitsVLLM_ROCM_USE_AITER_MOE=1, but the yaml comment, PR description, and perf-changelog all claim per-node flags 'reuse the aggregated recipe verbatim' / 'identical to the known-good aggregated run'. The current aggregated recipe (benchmarks/single_node/fixed_seq_len/dsv4_fp4_mi355x_vllm.sh, post-PR #1980) actually uses--moe-backend aiter+VLLM_ROCM_USE_AITER_MOE=1— the disagg entry looks pinned to the pre-#1980 backend. Either flip it toaiter+VLLM_ROCM_USE_AITER_MOE=1to actually match, or update the comment/perf-changelog to state the divergence is intentional (e.g. a conservative first bring-up).Extended reasoning...
What the bug is
The new disagg recipe added by this PR (
configs/amd-master.yamland theDeepSeek-V4-Proentry inbenchmarks/multi_node/amd_utils/models_vllm.yaml) claims — in three places — to reuse the validated single-node MI355X DSv4 recipe verbatim:--moe-backend triton_unfusedrequired for the FP4 expert format...)"--moe-backend triton_unfusedis REQUIRED for the FP4 MoE expert weight format; the auto backend doesn't register the FP4 scale params..."--moe-backend triton_unfusedfor the FP4 expert format...)"But this description is stale. As of PR #1980 (merged the same day as this PR), the aggregated recipe at
benchmarks/single_node/fixed_seq_len/dsv4_fp4_mi355x_vllm.shno longer usestriton_unfused. It uses AITER MoE:The aggregated recipe's own comment (lines 15-19) explicitly says: "Use the AITER MoE backend (VLLM_ROCM_USE_AITER_MOE=1 + --moe-backend aiter) for the FP4 MoE expert weights... The AITER MXFP4 path registers the FP4 scale parameters (w13_weight_scale / w2_weight_scale), so safetensors loads correctly and decode runs on the fused AITER experts instead of triton_unfused."
The new disagg entry, meanwhile, uses:
So the recipe was written against a pre-#1980 aggregated recipe.
Why the yaml comment's justification is stale
The comment justifies
triton_unfusedas REQUIRED because "the auto backend doesn't register the FP4 scale params and safetensors load raises KeyError". That was true for--moe-backend autobefore #1980 — but the aggregated recipe doesn't useauto, it usesaiterexplicitly, and the whole point of #1980 was that AITER MXFP4 DOES registerw13_weight_scale/w2_weight_scalecorrectly. The nightly image pinned here (nightly-f329ce405b…, 2026-07-04) is newer than the aggregated recipe's image, so AITER MoE support is present.Step-by-step proof
benchmarks/single_node/fixed_seq_len/dsv4_fp4_mi355x_vllm.shonmain— grep formoe-backend: matches line 79 (--moe-backend aiter). Grep forAITER_MOE: matches line 48 (export VLLM_ROCM_USE_AITER_MOE=1). No occurrences oftriton_unfusedin the file.benchmarks/multi_node/amd_utils/models_vllm.yamlat the newDeepSeek-V4-Problock —prefill_flagsanddecode_flagsboth contain--moe-backend triton_unfused. Theenvstring containsVLLM_ROCM_USE_AITER=1but notVLLM_ROCM_USE_AITER_MOE=1.git log --oneline -- benchmarks/single_node/fixed_seq_len/dsv4_fp4_mi355x_vllm.shandperf-changelog.yamlshow PR [AMD] DeepSeek-V4 FP4 MI355X vLLM STP: bump image to latest nightly / DeepSeek-V4 FP4 MI355X vLLM STP:升级镜像至最新 nightly #1980 with the entry: "Switch the MoE backend from triton_unfused to AITER MoE (VLLM_ROCM_USE_AITER_MOE=1 + --moe-backend aiter) for the FP4 experts."Impact
This is a smoke test (a single ISL/OSL, single
conc=32point) withfull-sweep-fail-faston, so runtime blast radius is bounded to that one job. Two outcomes are possible:triton_unfusedstill works on the pinned nightly → the disagg smoke perf number will be lower than the aggregated recipe it claims to mirror (AITER was chosen in [AMD] DeepSeek-V4 FP4 MI355X vLLM STP: bump image to latest nightly / DeepSeek-V4 FP4 MI355X vLLM STP:升级镜像至最新 nightly #1980 for perf reasons); the recorded baseline is misleading.triton_unfusedhas bitrotted on the newer nightly → the smoke job fails and CI catches it before merge.Either way, once the smoke test is expanded to a real conc sweep (per the yaml comment, that's the follow-up), the divergence from the aggregated recipe becomes a real perf-comparison gotcha.
How to fix
Pick one:
(a) Actually match the aggregated recipe (what the description promises):
and rewrite the yaml comment to say the AITER MXFP4 path registers the FP4 scale params (mirroring the aggregated recipe's own comment).
(b) Keep
triton_unfusedintentionally, but update the comment, PR description, and perf-changelog to explicitly state "the disagg recipe intentionally diverges from the aggregated recipe: it pins to the pre-#1980triton_unfusedpath as a conservative first bring-up before enabling AITER MoE + MoRIIO together" — so future readers aren't misled by the "verbatim / identical" claims.