-
Notifications
You must be signed in to change notification settings - Fork 155
[co-authored with sglang community maintainers leads at radixark] [NVIDIA][SGLang][redo PR] B300 DeepSeek v4 FP4 SGLang: recipe-per-CONC split + DP-attn SWA tweak #1185
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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
DP_ATTENTION=truebranch (lines 81-89) buildsPARALLEL_ARGSwithout--moe-a2a-backend deepep, so the max-throughput recipe atconc=512runs withep_size=1(the default) instead ofep=4despitenvidia-master.yamldeclaring{ tp: 4, ep: 4, dp-attn: true }and the perf-changelog advertising "max-throughput (TP=4, EP=4, DP-attn + DeepEP)". Result filenames will carryep=4-dpa=truewhile sglang actually runs EP=1, mislabeling the artifact. To fix: add--moe-a2a-backend deepep(and drop--moe-runner-backend flashinfer_mxfp4, which is the non-EP backend) to match the siblingdsv4_fp4_b300_sglang_mtp.sh(lines 86-91) anddsv4_fp4_b200.sh(lines 63-69).Extended reasoning...
What the bug is
The DP-attention branch in
benchmarks/single_node/dsv4_fp4_b300_sglang.shbuildsPARALLEL_ARGSlike this:The
--moe-a2a-backend deepepflag is missing. Per the YAML comment added by this same PR (.github/configs/nvidia-master.yaml:1854):Without that flag, sglang leaves
ep_sizeat the default of1, so the run never actually exercises EP=4 + DeepEP.How it manifests / step-by-step proof
{ tp: 4, ep: 4, dp-attn: true, conc-start: 512, conc-end: 512 }. The orchestrator setsTP=4,EP_SIZE=4,DP_ATTENTION=true,CONC=512in env.DP_ATTENTION=truebranch and assemblesPARALLEL_ARGSwithout--moe-a2a-backend deepep.sglang serveis invoked with--tp 4 --dp-size 4 --enable-dp-attention --moe-runner-backend flashinfer_mxfp4 --deepep-config ...but no--moe-a2a-backend deepep. Sglang therefore leavesep_size=1(default) and the--deepep-configis dead config because no DeepEP backend was selected.benchmark-tmpl.yml:146) bakesEP_SIZEandDP_ATTENTIONinto the result filename viaep${EP_SIZE}anddpa=${DP_ATTENTION}suffixes — so the output carriesep=4-dpa=trueeven though the runtime is actually EP=1.Why existing code does not prevent it
Nothing in this script reads
EP_SIZEor asserts it against the actual sglang flags. The shell script just passes throughTPfrom env and constructs--dp-size "$TP";EP_SIZEonly appears in the result filename, never in the launch command. The two sister scripts get this right —dsv4_fp4_b300_sglang_mtp.sh:89anddsv4_fp4_b200.sh:66both pass--moe-a2a-backend deepepand omit--moe-runner-backend flashinfer_mxfp4in their DP-attention branches, because deepep handles MoE on its own.Impact
The recipe-per-CONC max-throughput row at
conc=512(the headline row of this PR) does not actually exercise the configuration the YAML and perf-changelog advertise. The artifact filenames are mislabeled (ep=4-dpa=truevs. actual EP=1), so any downstream pareto analysis comparing this row againstdsv4-fp4-b200-sglang's real EP=8 + DeepEP run will draw incorrect conclusions about B300 vs B200. This defeats the entire purpose of the recipe-per-CONC split that this PR introduces.Suggested fix
Mirror the sister scripts: add
--moe-a2a-backend deepepand drop--moe-runner-backend flashinfer_mxfp4in theDP_ATTENTION=truebranch. The TP-onlyelsebranch correctly keepsflashinfer_mxfp4. Alternatively, if the intent really is no DeepEP for B300, update the YAML row toep: 1and the perf-changelog to drop the "+ DeepEP" claim — but the former is the obviously-correct fix given the YAML comment and sister scripts.