-
Notifications
You must be signed in to change notification settings - Fork 156
Add SGLANG_OPT_USE_MULTI_STREAM_OVERLAP=1 to SGLang DSv4 launch configs #1246
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
Open
yhyang201
wants to merge
2
commits into
main
Choose a base branch
from
add-multi-stream-overlap-dsv4-sglang
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
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
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.
🟡 This PR enables
SGLANG_OPT_USE_MULTI_STREAM_OVERLAP=1across 9 SGLang DSv4 launch configs (a perf-affecting toggle) but does not add a corresponding entry toperf-changelog.yaml. AGENTS.md (Updating Docker Images section) lists this as a MUST for env-var/configuration changes so thatrun-sweep.ymlis triggered on push-to-main and the perf delta is captured. Please add a perf-changelog entry coveringdsv4-fp4-b200-sglang,dsv4-fp4-b300-sglang*, and the disaggregated GB300 SGLang configs (precedent: PR #1187 at perf-changelog.yaml:1896, which added an analogous entry for otherSGLANG_OPT_*knobs).Extended reasoning...
What is the bug
This PR adds
SGLANG_OPT_USE_MULTI_STREAM_OVERLAP=1to 9 SGLang DSv4 launch configs:benchmarks/single_node/dsv4_fp4_b200.sh,dsv4_fp4_b300_sglang.sh,dsv4_fp4_b300_sglang_mtp.shconc1,conc512,conc512-20,conc1024,conc2048,conc16384), in bothprefill_environmentanddecode_environmentblocks.This is a performance-affecting environment toggle (multi-stream overlap), but no entry was added to
perf-changelog.yaml.Why this is a bug (the documented rule)
AGENTS.mdexplicitly couples env-var/configuration changes to aperf-changelog.yamlentry. The 'Updating Docker Images' section requires:AGENTS.mdfurther documents thatperf-changelog.yamlis the trigger for benchmark runs:So without an entry here, the push-to-main
run-sweep.ymlworkflow will not pick up the affected SGLang DSv4 configs, and the perf impact of enabling multi-stream overlap on these recipes will not be measured.Precedent for env-var-only entries
PR #1187 (
perf-changelog.yaml:1896) sets the precedent for env-var-only changes: its description states it 'Adds SGLANG_OPT_* env knobs (SWA_SPLIT_LEAF_ON_INSERT, USE_JIT_NORM, USE_JIT_INDEXER_METADATA, USE_TOPK_V2, USE_CUSTOM_ALL_REDUCE_V2)' — exactly analogous to this PR turning onSGLANG_OPT_USE_MULTI_STREAM_OVERLAP. PR #1209 added another env-var-only entry. The example block in AGENTS.md itself shows env-var-only descriptions (e.g. 'Add VLLM_MXFP4_USE_MARLIN=1 environment variable') with wildcard config-keys.Step-by-step proof
SGLANG_OPT_USE_MULTI_STREAM_OVERLAP=1(or the YAML equivalent). No file outsidebenchmarks/is modified.perf-changelog.yaml: the most recent entry references PR Add GB200 DSV4 Dynamo vLLM MTP2 recipes #1242 (matching the latest commitef5dee4). There is no entry referencing PR Add SGLANG_OPT_USE_MULTI_STREAM_OVERLAP=1 to SGLang DSv4 launch configs #1246 orSGLANG_OPT_USE_MULTI_STREAM_OVERLAP.perf-changelog.yamlentry whenever env vars / configuration parameters change.main,run-sweep.ymlfilters configs byperf-changelog.yamldiffs; the absence of a matching entry means the affected configs (dsv4-fp4-b200-sglang,dsv4-fp4-b300-sglang,dsv4-fp4-b300-sglang-mtp, and the GB300 disaggregated 8k1k SGLang configs) will not be re-benchmarked, so the perf delta from enabling multi-stream overlap is silently lost.Impact
Process violation, not a runtime bug. No code path breaks at runtime; the harm is that the team loses the automated perf measurement for the very change this PR is trying to introduce, defeating the point of the toggle.
How to fix
Add a single entry to
perf-changelog.yaml(modeled on the PR #1187 entry at line 1896) that lists the affected configs (or appropriate wildcards:dsv4-fp4-b200-sglang,dsv4-fp4-b300-sglang*, and the GB300 disaggregated SGLang 8k1k configs) with a description such as 'Add SGLANG_OPT_USE_MULTI_STREAM_OVERLAP=1 to SGLang DSv4 launch configs'.