This repository was archived by the owner on Apr 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Yeswanthk/dsr1 workeronly agg #99
Open
yeswanthk-26
wants to merge
6
commits into
ishandhanani:main
Choose a base branch
from
yeswanthk-26:yeswanthk/dsr1-workeronly-agg
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
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4d6fde0
Add worker-only aggregated mode + DSR1 FP8 SGLang H100 recipes (tp8 pp2)
yeswanthk-26 56bfb21
Infer stock SGLang worker-only agg; add idle-GPU exemption; harden NA…
yeswanthk-26 a45a85f
Use effective frontend type for worker launch (direct vs router vs dy…
yeswanthk-26 4774ec2
Fix cargo_env location and recipe sbatch/timeout tweaks
yeswanthk-26 74947de
Dsr1 sglang fp8 h100 1k/1k, 8k/1k and 1k/8k
yeswanthk-26 0b69174
Add DSR1 FP8 H100 aggregated nsys profiling recipe (mount host nsys)
yeswanthk-26 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
72 changes: 72 additions & 0 deletions
72
recipies/h100/aggdsr1sglangfp8/dsr1-fp8-agg-workeronly-tp8-pp2_1K_1K.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,72 @@ | ||
| name: "h100-dsr1-fp8-agg-workeronly-tp8-pp2_1K_1K" | ||
|
|
||
| model: | ||
| path: "dsr1-0528" | ||
| container: "docker://lmsysorg/sglang:v0.5.8-cu130-runtime" | ||
| precision: "fp8" | ||
|
|
||
| resources: | ||
| gpu_type: "h100" | ||
| gpus_per_node: 8 | ||
| # TP*PP = 8*2 = 16 GPUs total → 2 nodes @ 8 GPUs each | ||
| agg_nodes: 2 | ||
| agg_workers: 1 | ||
| slurm: | ||
| time_limit: "02:00:00" | ||
|
|
||
| sbatch_directives: | ||
| # Prevent automatic cancellation during long model-load / warmup periods with idle GPUs. | ||
| # (Cluster reaper expects this JSON under --comment) | ||
| comment: >- | ||
| '{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"data_loading","description":"DeepSeek-R1 FP8 model load + warmup can keep some GPUs idle initially"}}' | ||
|
|
||
| frontend: | ||
| # Stock SGLang: | ||
| # - agg_workers=1 => worker-only (direct-to-worker) handled automatically under the hood | ||
| # - agg_workers>1 or disagg => router | ||
| type: sglang | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| aggregated_environment: | ||
| TORCH_CUDA_ARCH_LIST: "9.0" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
|
|
||
| sglang_config: | ||
| aggregated: | ||
| # srtctl mounts host model dir -> /model inside container | ||
| model-path: "/model/" | ||
| tokenizer-path: "/model/" | ||
| served-model-name: "deepseek-ai/DeepSeek-R1-0528" | ||
| trust-remote-code: true | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 1 | ||
| pipeline-parallel-size: 2 | ||
|
|
||
| disable-radix-cache: true | ||
| max-running-requests: 128 | ||
| cuda-graph-max-bs: 128 | ||
| chunked-prefill-size: 16000 | ||
| max-prefill-tokens: 16000 | ||
| mem-fraction-static: 0.70 | ||
| kv-cache-dtype: "auto" | ||
| attention-backend: "flashinfer" | ||
| stream-interval: 10 | ||
| decode-log-interval: 1 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1024 | ||
| osl: 1024 | ||
| concurrencies: "1x2x4x8x16x32x64x128x256x512" | ||
| req_rate: "inf" | ||
|
|
||
| # DSR1 can take a long time to load weights across 2 nodes. | ||
| # Health timeout controls how long srtctl waits for the worker to become ready (independent of SLURM time_limit). | ||
| health_check: | ||
| max_attempts: 720 # 720 * 10s = 7200s (matches 2:00:00 time limit) | ||
| interval_seconds: 10 | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
|
|
||
88 changes: 88 additions & 0 deletions
88
recipies/h100/aggdsr1sglangfp8/dsr1-fp8-agg-workeronly-tp8-pp2_1K_1K_nsys.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,88 @@ | ||
| name: "h100-dsr1-fp8-agg-workeronly-tp8-pp2_1K_1K_nsys" | ||
|
|
||
| model: | ||
| path: "dsr1-0528" | ||
| container: "docker://lmsysorg/sglang:v0.5.8-cu130-runtime" | ||
| precision: "fp8" | ||
|
|
||
| resources: | ||
| gpu_type: "h100" | ||
| gpus_per_node: 8 | ||
| # TP*PP = 8*2 = 16 GPUs total → 2 nodes @ 8 GPUs each | ||
| agg_nodes: 2 | ||
| agg_workers: 1 | ||
| slurm: | ||
| time_limit: "02:00:00" | ||
|
|
||
| sbatch_directives: | ||
| # Prevent automatic cancellation during long model-load / warmup periods with idle GPUs. | ||
| # (Cluster reaper expects this JSON under --comment) | ||
| comment: >- | ||
| '{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"data_loading","description":"DeepSeek-R1 FP8 model load + warmup can keep some GPUs idle initially"}}' | ||
|
|
||
| # Nsight Systems (nsys) is not shipped in the SGLang runtime container. | ||
| # Mount the site-provided Nsight Systems CLI into the container and put it on PATH. | ||
| environment: | ||
| PATH: "/opt/nsight/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
| LD_LIBRARY_PATH: "/opt/nsight/target-linux-x64:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu" | ||
|
|
||
| container_mounts: | ||
| "/lustre/fsw/portfolios/general/users/yeswanthk/nsight2025.6.1/opt/nvidia/nsight-systems-cli/2025.6.1": "/opt/nsight" | ||
|
|
||
| frontend: | ||
| # Stock SGLang: | ||
| # - agg_workers=1 => worker-only (direct-to-worker) handled automatically under the hood | ||
| # - agg_workers>1 or disagg => router | ||
| type: sglang | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| aggregated_environment: | ||
| TORCH_CUDA_ARCH_LIST: "9.0" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
|
|
||
| sglang_config: | ||
| aggregated: | ||
| # srtctl mounts host model dir -> /model inside container | ||
| model-path: "/model/" | ||
| tokenizer-path: "/model/" | ||
| served-model-name: "deepseek-ai/DeepSeek-R1-0528" | ||
| trust-remote-code: true | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 1 | ||
| pipeline-parallel-size: 2 | ||
|
|
||
| disable-radix-cache: true | ||
| max-running-requests: 128 | ||
| cuda-graph-max-bs: 128 | ||
| chunked-prefill-size: 16000 | ||
| max-prefill-tokens: 16000 | ||
| mem-fraction-static: 0.70 | ||
| kv-cache-dtype: "auto" | ||
| attention-backend: "flashinfer" | ||
| stream-interval: 10 | ||
| decode-log-interval: 1 | ||
|
|
||
| # Profiling and benchmarking are mutually exclusive. For nsys, set benchmark to manual. | ||
| benchmark: | ||
| type: "manual" | ||
|
|
||
| profiling: | ||
| type: "nsys" | ||
| isl: 1024 | ||
| osl: 1024 | ||
| # Keep this modest for profiling (nsys output size grows quickly with concurrency). | ||
| concurrency: 16 | ||
| aggregated: | ||
| start_step: 10 | ||
| stop_step: 30 | ||
|
|
||
| # DSR1 can take a long time to load weights across 2 nodes. | ||
| # Health timeout controls how long srtctl waits for the worker to become ready (independent of SLURM time_limit). | ||
| health_check: | ||
| max_attempts: 720 # 720 * 10s = 7200s (matches 2:00:00 time limit) | ||
| interval_seconds: 10 | ||
|
|
||
|
|
73 changes: 73 additions & 0 deletions
73
recipies/h100/aggdsr1sglangfp8/dsr1-fp8-agg-workeronly-tp8-pp2_1K_8K.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,73 @@ | ||
| name: "h100-dsr1-fp8-agg-workeronly-tp8-pp2_1K_8K" | ||
|
|
||
| model: | ||
| path: "dsr1-0528" | ||
| container: "docker://lmsysorg/sglang:v0.5.8-cu130-runtime" | ||
| precision: "fp8" | ||
|
|
||
| resources: | ||
| gpu_type: "h100" | ||
| gpus_per_node: 8 | ||
| # TP*PP = 8*2 = 16 GPUs total → 2 nodes @ 8 GPUs each | ||
| agg_nodes: 2 | ||
| agg_workers: 1 | ||
|
|
||
| slurm: | ||
| time_limit: "03:00:00" | ||
|
|
||
| sbatch_directives: | ||
| # Prevent automatic cancellation during long model-load / warmup periods with idle GPUs. | ||
| # (Cluster reaper expects this JSON under --comment) | ||
| comment: >- | ||
| '{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"data_loading","description":"DeepSeek-R1 FP8 model load + warmup can keep some GPUs idle initially"}}' | ||
|
|
||
| frontend: | ||
| # Stock SGLang: | ||
| # - agg_workers=1 => worker-only (direct-to-worker) handled automatically under the hood | ||
| # - agg_workers>1 or disagg => router | ||
| type: sglang | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| aggregated_environment: | ||
| TORCH_CUDA_ARCH_LIST: "9.0" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
|
|
||
| sglang_config: | ||
| aggregated: | ||
| # srtctl mounts host model dir -> /model inside container | ||
| model-path: "/model/" | ||
| tokenizer-path: "/model/" | ||
| served-model-name: "deepseek-ai/DeepSeek-R1-0528" | ||
| trust-remote-code: true | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 1 | ||
| pipeline-parallel-size: 2 | ||
|
|
||
| disable-radix-cache: true | ||
| max-running-requests: 128 | ||
| cuda-graph-max-bs: 128 | ||
| chunked-prefill-size: 16000 | ||
| max-prefill-tokens: 16000 | ||
| mem-fraction-static: 0.70 | ||
| kv-cache-dtype: "auto" | ||
| attention-backend: "flashinfer" | ||
| stream-interval: 10 | ||
| decode-log-interval: 1 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1024 | ||
| osl: 8192 | ||
| concurrencies: "1x2x4x8x16x32x64x128x176x256" | ||
| req_rate: "inf" | ||
|
|
||
| # DSR1 can take a long time to load weights across 2 nodes. | ||
| # Default health timeout (max_attempts * interval_seconds) was too short and caused premature job failure. | ||
| health_check: | ||
| max_attempts: 720 # 720 * 10s = 7200s (matches 2:00:00 time limit) | ||
| interval_seconds: 10 | ||
|
yeswanthk-26 marked this conversation as resolved.
yeswanthk-26 marked this conversation as resolved.
|
||
|
|
||
|
|
||
70 changes: 70 additions & 0 deletions
70
recipies/h100/aggdsr1sglangfp8/dsr1-fp8-agg-workeronly-tp8-pp2_8K_1K.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,70 @@ | ||
| name: "h100-dsr1-fp8-agg-workeronly-tp8-pp2_8K_1K" | ||
|
|
||
| model: | ||
| path: "dsr1-0528" | ||
| container: "docker://lmsysorg/sglang:v0.5.8-cu130-runtime" | ||
| precision: "fp8" | ||
|
|
||
| resources: | ||
| gpu_type: "h100" | ||
| gpus_per_node: 8 | ||
| # TP*PP = 8*2 = 16 GPUs total → 2 nodes @ 8 GPUs each | ||
| agg_nodes: 2 | ||
| agg_workers: 1 | ||
|
|
||
| sbatch_directives: | ||
| # Prevent automatic cancellation during long model-load / warmup periods with idle GPUs. | ||
| # (Cluster reaper expects this JSON under --comment) | ||
| comment: >- | ||
| '{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"data_loading","description":"DeepSeek-R1 FP8 model load + warmup can keep some GPUs idle initially"}}' | ||
|
|
||
| frontend: | ||
| # Stock SGLang: | ||
| # - agg_workers=1 => worker-only (direct-to-worker) handled automatically under the hood | ||
| # - agg_workers>1 or disagg => router | ||
| type: sglang | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| aggregated_environment: | ||
| TORCH_CUDA_ARCH_LIST: "9.0" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
|
|
||
| sglang_config: | ||
| aggregated: | ||
| # srtctl mounts host model dir -> /model inside container | ||
| model-path: "/model/" | ||
| tokenizer-path: "/model/" | ||
| served-model-name: "deepseek-ai/DeepSeek-R1-0528" | ||
| trust-remote-code: true | ||
|
|
||
| tensor-parallel-size: 8 | ||
| data-parallel-size: 1 | ||
| pipeline-parallel-size: 2 | ||
|
|
||
| disable-radix-cache: true | ||
| max-running-requests: 128 | ||
| cuda-graph-max-bs: 128 | ||
| chunked-prefill-size: 16000 | ||
| max-prefill-tokens: 16000 | ||
| mem-fraction-static: 0.70 | ||
| kv-cache-dtype: "auto" | ||
| attention-backend: "flashinfer" | ||
| stream-interval: 10 | ||
| decode-log-interval: 1 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 8192 | ||
| osl: 1024 | ||
| concurrencies: "1x2x64" | ||
| req_rate: "inf" | ||
|
|
||
| # DSR1 can take a long time to load weights across 2 nodes. | ||
| # Health timeout controls how long srtctl waits for the worker to become ready (independent of SLURM time_limit). | ||
| health_check: | ||
| max_attempts: 720 # 720 * 10s = 7200s (matches 2:00:00 time limit) | ||
| interval_seconds: 10 | ||
|
yeswanthk-26 marked this conversation as resolved.
|
||
|
|
||
|
|
||
|
yeswanthk-26 marked this conversation as resolved.
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.