-
Notifications
You must be signed in to change notification settings - Fork 315
fix(amd): enable DSpark speculative decoding for DeepSeek-V4-Pro-0813 MI355X disaggregated AgentX #3191
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
Closed
fix(amd): enable DSpark speculative decoding for DeepSeek-V4-Pro-0813 MI355X disaggregated AgentX #3191
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6060acb
fix(amd): use Pro-0813 golden acceptance for AgentX
cquil11 8fa6ee5
enable dspark
ichbinblau a6a97c3
align config and image with intenal sweep
ichbinblau ce07190
fix(amd): forward required AgentX client policy inputs
cquil11 5a5ad97
update perf-changelog.yaml
ichbinblau 329e7ea
docs: point perf-changelog pr-link to #3191
ichbinblau 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
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.
🟡 (optional) The new fail-fast guard for missing dspark_flags does not actually stop the run:
exit 1at line 389 runs insidebuild_server_config, which is only ever invoked via command substitution (PREFILL_SERVER_CONFIG=$(build_server_config ...)at line 454).exitthere only kills that subshell; with noset -ein this script and no$?check after the assignment, the script prints the FATAL line to stderr but keeps running with PREFILL_SERVER_CONFIG/DECODE_SERVER_CONFIG left empty (the function returns before reaching its finalecho "$full_config"), so the server launches with a broken/missing config instead of aborting. Fix: after eachbuild_server_configcall, check the exit status (e.g. `PREFILL_SERVER_CONFIG=$(build_server_config ...) …Extended reasoning...
…|| exit 1`) or have build_server_config return a status the caller checks, so a missing dspark_flags case (or any future error path in this function) actually halts the job for both the prefill and decode invocations at lines 454-455.
build_server_config is called via command substitution at lines 454-455, which bash always runs in a subshell. When SPEC_DECODING=draft_model and MODEL_DSPARK_FLAGS is empty, the function hits
exit 1at line 389 before it ever reaches the trailingecho "$full_config". That exit only terminates the subshell created for the command substitution; the parent server_sglang.sh script has noset -eand never inspects$?right after the assignment, so execution continues. PREFILL_SERVER_CONFIG (and likewise DECODE_SERVER_CONFIG from the second call) end up empty or truncated instead of containing --tp-size/base flags/etc. The script then proceeds to launch the sglang server with this incomplete config, producing a confusing downstream failure (or a badly configured server) instead of the clear early FATAL abort the PR intends for a model without…Verification: nit. The candidate's mechanism is factually correct. The new fail-fast guard at server_sglang.sh:387-389 does
exit 1inside build_server_config(), but that function is invoked only via command substitution — PREFILL_SERVER_CONFIG=$(build_server_config ...) at line 454 and DECODE_SERVER_CONFIG=$(build_server_config ...) at line 455 — which bash runs in a subshell. Theexit 1therefore… | nit.…