Repository navigation
Update Minimax M3 FP4 vllm #1978
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 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
fe7d1cf
Add 2-gpu configs to search space
wzhao18 734b60a
update search space
wzhao18 b1d1910
update
wzhao18 514494e
update
wzhao18 e02cc19
update
wzhao18 4aab647
update
wzhao18 317de36
Merge branch 'main' into wzhao/minimax-m3-fp4-update
wzhao18 f9289e4
Merge remote-tracking branch 'origin/main' into HEAD
adibarra 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
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 8k1k entry
{ tp: 2, ep: 4, dp-attn: true, conc-start: 64, conc-end: 256 }at line 12950 mislabels EP: withdp-attn: true,minimaxm3_fp4_b200.shlaunches vLLM with--tensor-parallel-size=1 --data-parallel-size=$TP --enable-expert-paralleland never passesEP_SIZE, so world_size = TP×1 = 2 and vLLM runs with EP=2 — butprocess_result.pyreadsEP_SIZEfrom env and records the result as ep=4, poisoning cross-config comparisons on the leaderboard. It is also the only entry in the file whereep > tpandep != 1; every other dp-attn row hasep == tp. Likely a typo — eithertp: 4, ep: 4, dp-attn: true(matching the sibling row on line 12949) ortp: 2, ep: 2, dp-attn: true.Extended reasoning...
What's wrong
Line 12950 adds:
- { tp: 2, ep: 4, dp-attn: true, conc-start: 64, conc-end: 256 }The
ep: 4label on this row is a lie: the actual runtime will use EP=2. Here is the code path.Trigger path
1. Shell launcher —
benchmarks/single_node/fixed_seq_len/minimaxm3_fp4_b200.sh:37-43:When
DP_ATTENTION=true,EP_SIZEis used only for the elif's boolean check — it is never forwarded to vLLM via--expert-parallel-size. vLLM derives EP from world_size = data-parallel-size × tensor-parallel-size = TP × 1.2. Slurm allocation —
runners/launch_b200-dgxc.sh:435requests--gres=gpu:$TP= 2 GPUs. Only 2 physical GPUs are allocated, so EP=4 is physically impossible on this node.3. Result labeling —
utils/process_result.py:110-118readsEP_SIZEdirectly from env and records it as theepfield.utils/matrix_logic/generate_sweep_configs.py:483-484propagates the YAMLepinto that env var. Nothing corrects for the dp-attn case, so the label survives verbatim.Step-by-step proof for this entry
TP=2,EP_SIZE=4,DP_ATTENTION=true.gpu:$TP).--tensor-parallel-size=1 --data-parallel-size=2 --enable-expert-parallel.EP_SIZE=4is never referenced.process_result.pyreadsEP_SIZEfrom env → writesep: 4into the result JSON.Why validation doesn't catch this
utils/matrix_logic/validation.pySingleNodeSearchSpaceEntrypermitsepindependent oftp; there is noep <= tporep == tp for dp-attnconstraint. So this passes generate-sweep unnoticed.Uniqueness / typo signal
Across the entire
nvidia-master.yaml, this is the only entry withep > tpandep != 1. Every otherdp-attn: truerow hasep == tp(2/2, 4/4, 8/8). Combined with the row immediately above (tp: 4, ep: 4, dp-attn: true), the natural read is a typo where eithertpshould be 4 orepshould be 2.Fix
One-character YAML edit — pick whichever config the author actually intended: