-
Notifications
You must be signed in to change notification settings - Fork 104
test #917
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
base: main
Are you sure you want to change the base?
test #917
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -961,3 +961,10 @@ | |
| description: | ||
| - "Extend MiniMax M2.5 FP8 single-node config for H200 with vLLM v0.16.0 (TP8)" | ||
| pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/869 | ||
|
|
||
| - config-keys: | ||
| - dsr1-fp4-mi355x-sglang-disagg-mtp | ||
| - dsr1-fp8-mi355x-sglang-disagg-mtp | ||
| description: | ||
| - "test" | ||
| pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/XXX | ||
|
Comment on lines
+964
to
+970
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 The new perf-changelog entry has placeholder values: Extended reasoning...What the bug isThe perf-changelog entry added at lines 964-970 contains three placeholder values that are clearly not production-ready:
Config-keys scope analysisOne counterargument is that Step-by-step proof
ImpactIf merged as-is, the changelog would contain a broken PR link ( How to fix
Note: there are 5 pre-existing |
||
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.
🟡 Adding
--speculative-num-draft-tokens 3tomtp_flagshere is a no-op becauseserver.sh:289already appends--speculative-num-draft-tokens $((decode_mtp_size + 1))after expandingMODEL_MTP_FLAGS. Since SGLang uses argparse (last value wins), this YAML value is always silently overridden. Remove the flag from either the YAML or the dynamic computation inserver.shto avoid the duplication.Extended reasoning...
What the bug is
This PR adds
--speculative-num-draft-tokens 3to themtp_flagsfield for all 6 DeepSeek model configs inmodels.yaml. However, the consumer of this field —build_server_config()inserver.sh— already appends its own--speculative-num-draft-tokensdynamically, causing the flag to appear twice on the final command line.The specific code path
At
server.sh:289, when MTP is enabled (decode_mtp_size > 0), the function constructs:mtp_config="${MODEL_MTP_FLAGS} --speculative-num-steps ${decode_mtp_size} --speculative-num-draft-tokens $((decode_mtp_size + 1))"MODEL_MTP_FLAGSis populated from the YAMLmtp_flagsfield, which after this PR expands to:--speculative-algorithm NEXTN --speculative-eagle-topk 1 --speculative-num-draft-tokens 3So the resulting
mtp_configstring becomes:--speculative-algorithm NEXTN --speculative-eagle-topk 1 --speculative-num-draft-tokens 3 --speculative-num-steps 2 --speculative-num-draft-tokens 3The flag
--speculative-num-draft-tokensappears at positions from both YAML and the dynamic computation.Step-by-step proof with a concrete example
DECODE_MTP_SIZE=2(the common case).MODEL_MTP_FLAGS="--speculative-algorithm NEXTN --speculative-eagle-topk 1 --speculative-num-draft-tokens 3"(from YAML).server.sh:289computes$((decode_mtp_size + 1))=3.mtp_config="--speculative-algorithm NEXTN --speculative-eagle-topk 1 --speculative-num-draft-tokens 3 --speculative-num-steps 2 --speculative-num-draft-tokens 3".3, so no functional difference — but the duplication is still present.Now consider
DECODE_MTP_SIZE=1:MODEL_MTP_FLAGSstill contains--speculative-num-draft-tokens 3(hardcoded in YAML).server.sh:289computes$((1 + 1))=2.--speculative-num-draft-tokens 3 ... --speculative-num-draft-tokens 2.2, silently ignoring the YAML’s3.Why existing code doesn’t prevent it
There is no deduplication logic in
server.sh. The script simply concatenatesMODEL_MTP_FLAGSwith the dynamically computed flags. The YAML schema documentation does not warn against including flags thatserver.shalready manages.Impact
The YAML change is effectively dead code for the
server.shcode path (which is the only consumer ofmtp_flags— confirmed via grep). ForDECODE_MTP_SIZE=2there is no behavioral difference, but the duplication is misleading: it gives the false impression that the YAML controls this parameter, when in realityserver.shalways overrides it. For any other MTP size, the values would silently conflict.How to fix
Remove
--speculative-num-draft-tokens 3from themtp_flagsinmodels.yaml(preferred, since the dynamic computation inserver.shcorrectly derives it fromdecode_mtp_size). Alternatively, remove the dynamic--speculative-num-draft-tokenscomputation fromserver.sh:289if the intent is to let each model config control the value.