-
Notifications
You must be signed in to change notification settings - Fork 254
Add DSV4 B200 disaggregated Dynamo SGLang STP configuration / 新增 DSV4 B200 分离式 Dynamo SGLang STP 配置 #2560
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
RohitNagraj
wants to merge
3
commits into
main
Choose a base branch
from
dsv4-fp4-b200-dynamo-sglang-nscale
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.
+1,706
−7
Open
Add DSV4 B200 disaggregated Dynamo SGLang STP configuration / 新增 DSV4 B200 分离式 Dynamo SGLang STP 配置 #2560
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
158 changes: 158 additions & 0 deletions
158
...arks/multi_node/srt-slurm-recipes/sglang/deepseek-v4/8k1k/disagg-b200-1p1d-dep8-dep8.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,158 @@ | ||
| name: "disagg-b200-1p1d-dep8-dep8-c512" | ||
|
|
||
|
|
||
| model: | ||
| path: "deepseek-v4-pro" | ||
| container: "lmsysorg/sglang:nightly-dev-cu13-20260708-b3632494" | ||
| precision: "fp4" | ||
|
|
||
| dynamo: | ||
| hash: "92f5b3b8d7dd5ab9179d4b1034bd2c1c0803693e" | ||
| install: true | ||
|
|
||
| sbatch_directives: | ||
| cpus-per-task: "144" | ||
| mem: "0" | ||
|
|
||
| resources: | ||
| gpu_type: "b200" | ||
| gpus_per_node: 8 | ||
| prefill_nodes: 1 | ||
| prefill_workers: 1 | ||
| gpus_per_prefill: 8 | ||
| decode_nodes: 1 | ||
| decode_workers: 1 | ||
| gpus_per_decode: 8 | ||
|
|
||
| health_check: | ||
| max_attempts: 240 | ||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
| env: | ||
| DYN_ROUTER_LOAD_BLOCK_SIZE: "1" | ||
| args: | ||
| router-mode: "kv" | ||
| router-kv-overlap-score-weight: 0 | ||
| router-queue-threshold: 64 | ||
| router-temperature: 0.5 | ||
| no-kv-events: true | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| prefill_environment: | ||
| PYTHONUNBUFFERED: "1" | ||
| SGLANG_RADIX_FORCE_MISS: "1" | ||
| SGLANG_JIT_DEEPGEMM_FAST_WARMUP: "1" | ||
| SGLANG_ENABLE_THINKING: "1" | ||
| SGLANG_REASONING_EFFORT: "max" | ||
| SGLANG_OPT_SWA_SPLIT_LEAF_ON_INSERT: "1" | ||
| SGLANG_OPT_SWA_EVICT_DROP_PAGE_MARGIN: "1" | ||
| SGLANG_OPT_FIX_HASH_MEGA_MOE: "1" | ||
| SGLANG_OPT_USE_FAST_MASK_EP: "1" | ||
| SGLANG_OPT_FIX_MEGA_MOE_MEMORY: "1" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: "8192" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_FP4_ACTS: "1" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_MXF4_KIND: "1" | ||
| SGLANG_OPT_FIX_NEXTN_MEGA_MOE: "1" | ||
| SGLANG_OPT_USE_ONLINE_COMPRESS: "1" | ||
| SGLANG_OPT_FP8_WO_A_GEMM: "1" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| MC_FORCE_MNNVL: "1" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_OPT_SWA_RELEASE_LEAF_LOCK_AFTER_WINDOW: "1" | ||
| DYN_SKIP_SGLANG_LOG_FORMATTING: "1" | ||
| SGLANG_LOG_FORWARD_ITERS: "1" | ||
| SGLANG_LOG_MS: "1" | ||
| SGLANG_REQUEST_STATE_WAIT_TIMEOUT: "60" | ||
|
|
||
| decode_environment: | ||
| PYTHONUNBUFFERED: "1" | ||
| SGLANG_RADIX_FORCE_MISS: "1" | ||
| SGLANG_JIT_DEEPGEMM_FAST_WARMUP: "1" | ||
| SGLANG_ENABLE_THINKING: "1" | ||
| SGLANG_REASONING_EFFORT: "max" | ||
| SGLANG_OPT_SWA_SPLIT_LEAF_ON_INSERT: "1" | ||
| SGLANG_OPT_SWA_EVICT_DROP_PAGE_MARGIN: "1" | ||
| SGLANG_OPT_FIX_HASH_MEGA_MOE: "1" | ||
| SGLANG_OPT_USE_FAST_MASK_EP: "1" | ||
| SGLANG_OPT_FIX_MEGA_MOE_MEMORY: "1" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: "1280" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_FP4_ACTS: "1" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_MXF4_KIND: "1" | ||
| SGLANG_OPT_FIX_NEXTN_MEGA_MOE: "1" | ||
| SGLANG_OPT_USE_ONLINE_COMPRESS: "1" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| SGLANG_CLIP_MAX_NEW_TOKENS_ESTIMATION: "8" | ||
| MC_FORCE_MNNVL: "1" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_OPT_SWA_RELEASE_LEAF_LOCK_AFTER_WINDOW: "1" | ||
| DYN_SKIP_SGLANG_LOG_FORMATTING: "1" | ||
| SGLANG_LOG_FORWARD_ITERS: "1" | ||
| SGLANG_LOG_MS: "1" | ||
| SGLANG_REQUEST_STATE_WAIT_TIMEOUT: "60" | ||
|
|
||
| sglang_config: | ||
| prefill: | ||
| served-model-name: "deepseek-ai/DeepSeek-V4-Pro" | ||
| trust-remote-code: true | ||
| watchdog-timeout: 86400 | ||
| skip-tokenizer-init: true | ||
| stream-interval: 60 | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 8 | ||
| expert-parallel-size: 8 | ||
|
|
||
| enable-dp-attention: true | ||
| moe-a2a-backend: "megamoe" | ||
| deepep-config: '{"normal_dispatch":{"num_sms":88,"num_max_nvl_chunked_send_tokens":28,"num_max_nvl_chunked_recv_tokens":512},"normal_combine": {"num_sms":88,"num_max_nvl_chunked_send_tokens":16,"num_max_nvl_chunked_recv_tokens":512}}' | ||
| moe-dense-tp-size: 1 | ||
|
|
||
| disaggregation-mode: "prefill" | ||
| disaggregation-transfer-backend: mooncake | ||
|
|
||
| mem-fraction-static: 0.80 | ||
| max-running-requests: 1024 | ||
| chunked-prefill-size: 65536 | ||
|
|
||
| decode: | ||
| served-model-name: "deepseek-ai/DeepSeek-V4-Pro" | ||
| trust-remote-code: true | ||
| watchdog-timeout: 86400 | ||
| skip-tokenizer-init: true | ||
| stream-interval: 60 | ||
|
|
||
| load-balance-method: "total_requests" | ||
| moe-a2a-backend: "megamoe" | ||
|
|
||
| disaggregation-mode: "decode" | ||
| disaggregation-transfer-backend: mooncake | ||
| disaggregation-decode-polling-interval: 8 | ||
|
|
||
| mem-fraction-static: 0.94 | ||
| swa-full-tokens-ratio: 0.056 | ||
| context-length: 9216 | ||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 8 | ||
| expert-parallel-size: 8 | ||
| enable-dp-attention: true | ||
| enable-dp-lm-head: true | ||
| max-running-requests: 21504 | ||
| cuda-graph-max-bs: 1280 | ||
|
|
||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 8192 | ||
| osl: 1024 | ||
| concurrencies: "256x512" | ||
| req_rate: "inf" | ||
| use_chat_template: true |
145 changes: 145 additions & 0 deletions
145
...marks/multi_node/srt-slurm-recipes/sglang/deepseek-v4/8k1k/disagg-b200-1p1d-dep8-tp8.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| name: "disagg-b200-1p1d-dep8-tp8-4-c64" | ||
|
|
||
|
|
||
| model: | ||
| path: "deepseek-v4-pro" | ||
| container: "lmsysorg/sglang:nightly-dev-cu13-20260708-b3632494" | ||
| precision: "fp4" | ||
|
|
||
| dynamo: | ||
| hash: "92f5b3b8d7dd5ab9179d4b1034bd2c1c0803693e" | ||
| install: true | ||
|
|
||
| sbatch_directives: | ||
| cpus-per-task: "144" | ||
| mem: "0" | ||
|
|
||
| resources: | ||
| gpu_type: "b200" | ||
| gpus_per_node: 8 | ||
| prefill_nodes: 1 | ||
| prefill_workers: 1 | ||
| gpus_per_prefill: 8 | ||
| decode_nodes: 1 | ||
| decode_workers: 1 | ||
| gpus_per_decode: 8 | ||
|
|
||
| health_check: | ||
| max_attempts: 240 | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
| env: | ||
| DYN_ROUTER_LOAD_BLOCK_SIZE: "1" | ||
| args: | ||
| router-mode: "kv" | ||
| router-kv-overlap-score-weight: 0 | ||
| router-queue-threshold: 64 | ||
| router-temperature: 0.5 | ||
| no-kv-events: true | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| prefill_environment: | ||
| PYTHONUNBUFFERED: "1" | ||
| SGLANG_RADIX_FORCE_MISS: "1" | ||
| SGLANG_JIT_DEEPGEMM_FAST_WARMUP: "1" | ||
| SGLANG_ENABLE_THINKING: "1" | ||
| SGLANG_REASONING_EFFORT: "max" | ||
| SGLANG_OPT_SWA_SPLIT_LEAF_ON_INSERT: "1" | ||
| SGLANG_OPT_SWA_EVICT_DROP_PAGE_MARGIN: "1" | ||
| SGLANG_OPT_FIX_HASH_MEGA_MOE: "1" | ||
| SGLANG_OPT_USE_FAST_MASK_EP: "1" | ||
| SGLANG_OPT_FIX_MEGA_MOE_MEMORY: "1" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: "8192" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_FP4_ACTS: "1" | ||
| SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_MXF4_KIND: "1" | ||
| SGLANG_OPT_FIX_NEXTN_MEGA_MOE: "1" | ||
| SGLANG_OPT_USE_ONLINE_COMPRESS: "1" | ||
| SGLANG_OPT_FP8_WO_A_GEMM: "1" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| MC_FORCE_MNNVL: "1" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_OPT_SWA_RELEASE_LEAF_LOCK_AFTER_WINDOW: "1" | ||
| DYN_SKIP_SGLANG_LOG_FORMATTING: "1" | ||
| SGLANG_LOG_FORWARD_ITERS: "1" | ||
| SGLANG_LOG_MS: "1" | ||
| SGLANG_REQUEST_STATE_WAIT_TIMEOUT: "60" | ||
|
|
||
| decode_environment: | ||
| PYTHONUNBUFFERED: "1" | ||
| SGLANG_RADIX_FORCE_MISS: "1" | ||
| SGLANG_JIT_DEEPGEMM_FAST_WARMUP: "1" | ||
| SGLANG_ENABLE_THINKING: "1" | ||
| SGLANG_REASONING_EFFORT: "max" | ||
| SGLANG_OPT_SWA_SPLIT_LEAF_ON_INSERT: "1" | ||
| SGLANG_OPT_USE_JIT_NORM: "1" | ||
| SGLANG_OPT_USE_JIT_INDEXER_METADATA: "1" | ||
| SGLANG_OPT_USE_TOPK_V2: "1" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| MC_FORCE_MNNVL: "1" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_OPT_SWA_RELEASE_LEAF_LOCK_AFTER_WINDOW: "1" | ||
|
|
||
| sglang_config: | ||
| prefill: | ||
| served-model-name: "deepseek-ai/DeepSeek-V4-Pro" | ||
| trust-remote-code: true | ||
| watchdog-timeout: 86400 | ||
| skip-tokenizer-init: true | ||
| stream-interval: 60 | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 8 | ||
| expert-parallel-size: 8 | ||
|
|
||
| enable-dp-attention: true | ||
| moe-a2a-backend: "megamoe" | ||
| deepep-config: '{"normal_dispatch":{"num_sms":88,"num_max_nvl_chunked_send_tokens":28,"num_max_nvl_chunked_recv_tokens":512},"normal_combine": {"num_sms":88,"num_max_nvl_chunked_send_tokens":16,"num_max_nvl_chunked_recv_tokens":512}}' | ||
| moe-dense-tp-size: 1 | ||
|
|
||
| disaggregation-mode: "prefill" | ||
| disaggregation-transfer-backend: mooncake | ||
|
|
||
| mem-fraction-static: 0.80 | ||
| max-running-requests: 1024 | ||
| chunked-prefill-size: 65536 | ||
|
|
||
| decode: | ||
| served-model-name: "deepseek-ai/DeepSeek-V4-Pro" | ||
| model-path: "/model/" | ||
| trust-remote-code: true | ||
| disable-radix-cache: true | ||
|
|
||
| disaggregation-mode: "decode" | ||
| disaggregation-transfer-backend: mooncake | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 1 | ||
| expert-parallel-size: 1 | ||
|
|
||
| moe-runner-backend: "flashinfer_mxfp4" | ||
| disable-flashinfer-autotune: true | ||
|
|
||
| mem-fraction-static: 0.9 | ||
| max-running-requests: 1024 | ||
| cuda-graph-max-bs: 512 | ||
| swa-full-tokens-ratio: 0.1 | ||
| context-length: 16384 | ||
|
|
||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 8192 | ||
| osl: 1024 | ||
| concurrencies: "32x64" | ||
| req_rate: "inf" | ||
| use_chat_template: true | ||
Oops, something went wrong.
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
name:field indisagg-b200-1p1d-dep8-tp8.yamlis"disagg-b200-1p1d-dep8-tp8-4-c64", with a stray-4-segment that doesn't match this recipe's topology (1 prefill + 1 decode = 2 nodes) or the naming convention used by every other new B200 recipe in this PR (e.g.disagg-b200-1p4d-dep8-tp8-c64,disagg-b200-1p1d-tp8-tp8-c1). It looks like a copy-paste leftover from a GB200-style template where that suffix denotes total node count; harmless at runtime sincelaunch_b200-nscale-slurm.shoverwrites the name via sed beforesrtctlreads it, but worth cleaning up for consistency.Extended reasoning...
The
name:field on line 1 ofdisagg-b200-1p1d-dep8-tp8.yamlreads"disagg-b200-1p1d-dep8-tp8-4-c64". Every other new B200 recipe added in this PR follows a clean<topology>-c<concurrency>naming pattern with no extra numeric segment:disagg-b200-1p1d-dep8-dep8.yaml->disagg-b200-1p1d-dep8-dep8-c512,disagg-b200-1p1d-tp8-tp8.yaml->disagg-b200-1p1d-tp8-tp8-c1,disagg-b200-1p4d-dep8-tp8.yaml->disagg-b200-1p4d-dep8-tp8-c64, and so on through the 3p2d/4p2d/5p2d/6p2d files. This file alone inserts a stray-4-between the topology and the concurrency suffix.\n\nOn the existing GB200 recipes in this codebase, that kind of numeric segment is a real, intentional convention: it denotes total node count (prefill_nodes + decode_nodes), e.g. a GB200disagg-gb200-1p4d-dep8-tp8-10-c64.yaml-style file uses-10-because it sums to 10 nodes. Applying that same mental model here breaks down: this recipe'sresources:block setsprefill_nodes: 1anddecode_nodes: 1, i.e. 2 total nodes, not 4. So-4-isn't just inconsistent with sibling files in this PR, it's also the wrong number under the very convention it appears to be borrowed from — strong evidence this is a copy-paste leftover from a GB200-style template rather than a deliberate choice.\n\nProof by walkthrough: (1) opendisagg-b200-1p1d-dep8-tp8.yaml, line 1 isname: \"disagg-b200-1p1d-dep8-tp8-4-c64\"\". (2) Checkresources:in the same file:prefill_nodes: 1,decode_nodes: 1-> topology is 1p1d, 2 nodes total. (3) Compare to the siblingdisagg-b200-1p4d-dep8-tp8.yamlin the same PR, which hasprefill_nodes: 1,decode_nodes: 4(5 nodes total) and is nameddisagg-b200-1p4d-dep8-tp8-c64— no numeric node-count segment despite actually having more nodes. (4) There is therefore no consistent rule under which-4-belongs in the 1p1d file's name.\n\nWhy nothing currently prevents or catches this: recipe names are free-form YAML string values with no schema validation, and nothing inconfigs/nvidia-master.yamlor the sweep matrix reads thename:field for routing — the matrix entry innvidia-master.yamlreferences the recipe purely by itsCONFIG_FILEpath, not by the embedded name. And at runtime,runners/launch_b200-nscale-slurm.shexecutessed -i \"s/^name:.*/name: \\\"\\\\"/\" \"\\"\" before \"srtctl apply\"\" ever runs, unconditionally replacing whatever is on that line with the runner-generated name. So this typo has zero effect on job submission, GPU allocation, or benchmark results — it is purely a checked-in metadata string that a human reading the repo (or grepping recipe names) would see and find confusing.\n\nFix is trivial: change line 1 toname: "disagg-b200-1p1d-dep8-tp8-c64"`, matching the convention of every sibling file added in this PR. Given the complete absence of functional impact (confirmed by tracing the sed override in the launcher) and the triviality of the fix, this is cosmetic — nit severity, not a merge blocker.