Repository navigation
[NOT RATE MATCHED]Add NVFP4 WideEP disaggregated DEP8/DEP16/DEP32 recipes for Qwen3.5-397B-A17B #167
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
[NOT RATE MATCHED]Add NVFP4 WideEP disaggregated DEP8/DEP16/DEP32 recipes for Qwen3.5-397B-A17B #167
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8ce6a17
Add Qwen3.5 NVFP4 WideEP DeepEP+CuteDSL_v1 recipe
xiaoweiw-nv e8fdb79
Rename setup script to qwen35-nvfp4-wideep-setup.sh
xiaoweiw-nv b632564
Split disagg recipes by cc to right-size prefill workers
xiaoweiw-nv 646fead
Drop dynamo warmup timeout bump
xiaoweiw-nv 43d5292
Add field to pin etcd cpus
xiaoweiw-nv 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/bin/bash | ||
| # Bump dynamo prefill warmup timeout 1800s -> 7200s. | ||
| # Multi-prefill (4P, 8P) cold-start exceeds the upstream 1800s default on first run | ||
| # (flashinfer autotune / DeepEP compile cache). 7200s is a safety margin; subsequent | ||
| # runs with primed caches complete in <600s. | ||
| # Idempotent: re-runs detect sentinel and skip. | ||
| set -euo pipefail | ||
| set -x | ||
|
|
||
| DYNAMO_INIT_LLM="/usr/local/lib/python3.12/dist-packages/dynamo/sglang/init_llm.py" | ||
|
|
||
| if [[ ! -f "${DYNAMO_INIT_LLM}" ]]; then | ||
| echo "FATAL: ${DYNAMO_INIT_LLM} not found in container" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| python3 - "${DYNAMO_INIT_LLM}" <<'PY' | ||
| import sys, pathlib | ||
| p = pathlib.Path(sys.argv[1]) | ||
| src = p.read_text() | ||
| sentinel = "WARMUP_TIMEOUT_BUMP_APPLIED" | ||
| if sentinel in src: | ||
| print(f"already patched: {p}") | ||
| sys.exit(0) | ||
| needle = "await asyncio.wait_for(_do_warmup(), timeout=1800)" | ||
| replacement = "await asyncio.wait_for(_do_warmup(), timeout=7200) # WARMUP_TIMEOUT_BUMP_APPLIED: 1800 -> 7200 for multi-prefill" | ||
| if needle not in src: | ||
| print(f"FATAL: needle not found in {p}", file=sys.stderr) | ||
| sys.exit(2) | ||
| new = src.replace(needle, replacement, 1) | ||
| p.write_text(new) | ||
| pycache_dir = p.parent / '__pycache__' | ||
| if pycache_dir.exists(): | ||
| for pyc in pycache_dir.glob('init_llm*.pyc'): | ||
| pyc.unlink() | ||
| print(f"removed stale {pyc}") | ||
| print(f"PATCHED {p}: warmup timeout bumped 1800s -> 7200s") | ||
| PY | ||
|
|
||
| echo "=== Warmup timeout bump complete ===" | ||
174 changes: 174 additions & 0 deletions
174
recipes/qwen3.5/nvfp4/disagg/stp_prefix_off/dep4-dep16-highcc.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,174 @@ | ||
| # Qwen3.5-397B-A17B-NVFP4 2P1D disaggregated benchmark on GB200 (high cc). | ||
| # Topology: 2 prefill workers (1 node each, DEP4) + 1 decode worker (4 nodes, DEP16) = 6 nodes / 24 GPUs. | ||
| # Prefill: trtllm_mha + flashinfer_trtllm MoE runner. Each worker stays DEP4. | ||
| # Decode: trtllm_mha + flashinfer_cutedsl MoE runner + DeepEP low_latency. DEP16 across 4 nodes. | ||
| # Setup script bumps dynamo prefill warmup timeout 1800s -> 7200s (needed for multi-prefill cold start). | ||
| # Post-process: export_node_metrics emits gen_throughput.csv + per-node CSVs. | ||
| # cc sweep 2048..4096. One DEP4 prefill worker sustains ~89K tok/s input; cc>=2048 needs | ||
| # 2 workers (top out ~100K tok/s at cc=4096). For cc<=1024 use dep4-dep16-lowcc.yaml. | ||
|
|
||
| name: "nvfp4-disagg-dep4-dep16-highcc" | ||
|
|
||
| setup_script: qwen35-nvfp4-wideep-setup.sh | ||
|
xiaoweiw-nv marked this conversation as resolved.
Resolved
|
||
|
|
||
| dynamo: | ||
| hash: 4e4006138bb9dde377a2bb2cacbcc65aaa616ac1 | ||
|
|
||
| model: | ||
| path: "qwen3.5-nvfp4" | ||
| container: "dev" | ||
| precision: "nvfp4" | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
|
|
||
| resources: | ||
| gpu_type: "gb200" | ||
| gpus_per_node: 4 | ||
| prefill_nodes: 2 | ||
| decode_nodes: 4 | ||
| prefill_workers: 2 | ||
| decode_workers: 1 | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| prefill_environment: | ||
| NO_COLOR: "1" | ||
| PYTHONUNBUFFERED: "1" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| NCCL_NVLS_ENABLE: "1" | ||
| MC_FORCE_MNNVL: "1" | ||
| SGLANG_ENABLE_FLASHINFER_GEMM: "true" | ||
| SGLANG_DG_CACHE_DIR: "/configs/deepgemm-cache" | ||
| FLASHINFER_WORKSPACE_BASE: "/configs/flashinfer-cache" | ||
| FLASHINFER_DISABLE_VERSION_CHECK: "1" | ||
| SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK: "1" | ||
| SGLANG_DISAGGREGATION_HEARTBEAT_MAX_FAILURE: "100000" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| SGLANG_USE_MESSAGE_QUEUE_BROADCASTER: "0" | ||
| SGLANG_HEALTH_STARTING_OK: "1" | ||
| SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION: "0" | ||
|
|
||
| decode_environment: | ||
| NO_COLOR: "1" | ||
| PYTHONUNBUFFERED: "1" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| NCCL_NVLS_ENABLE: "1" | ||
| MC_FORCE_MNNVL: "1" | ||
| MC_TE_METRIC: "true" | ||
| SGLANG_ENABLE_FLASHINFER_GEMM: "true" | ||
| SGLANG_DG_CACHE_DIR: "/configs/deepgemm-cache" | ||
| FLASHINFER_WORKSPACE_BASE: "/configs/flashinfer-cache" | ||
| FLASHINFER_DISABLE_VERSION_CHECK: "1" | ||
| SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK: "1" | ||
| SGLANG_DISAGGREGATION_HEARTBEAT_MAX_FAILURE: "100000" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_DECODE_BOOTSTRAP_TIMEOUT: "1000" | ||
| SGLANG_HACK_SEQ_BOOTSTRAP_ROOM: "1" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| SGLANG_USE_MESSAGE_QUEUE_BROADCASTER: "0" | ||
| SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK: "1024" | ||
| SGLANG_HEALTH_CHECK_TIMEOUT: "1800" | ||
| SGLANG_HEALTH_STARTING_OK: "1" | ||
| SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION: "0" | ||
|
|
||
| sglang_config: | ||
| prefill: | ||
| served-model-name: "nvidia/Qwen3.5-397B-A17B-NVFP4" | ||
| model-path: "/model/" | ||
| trust-remote-code: true | ||
| port: 5000 # avoid ephemeral port range (9000-65000) self-connect on rpc_port=port+236 | ||
| disable-flashinfer-autotune: true | ||
|
|
||
| attention-backend: "trtllm_mha" | ||
| quantization: "modelopt_fp4" | ||
| kv-cache-dtype: "fp8_e4m3" | ||
| moe-runner-backend: "flashinfer_trtllm" | ||
| page-size: 64 | ||
|
|
||
| # DEP4 per prefill worker (1 node, 4 GPUs) | ||
| tensor-parallel-size: 4 | ||
| data-parallel-size: 4 | ||
| expert-parallel-size: 4 | ||
| enable-dp-attention: true | ||
| enable-dp-lm-head: true | ||
| moe-dense-tp-size: 1 | ||
|
|
||
| mamba-scheduler-strategy: "no_buffer" | ||
| mamba-track-interval: 2048 | ||
| mamba-ssm-dtype: "bfloat16" | ||
|
|
||
| disaggregation-mode: "prefill" | ||
| disaggregation-bootstrap-port: 31000 | ||
| disable-radix-cache: true | ||
|
|
||
| mem-fraction-static: 0.80 | ||
| chunked-prefill-size: 65536 | ||
| context-length: 2020 | ||
|
|
||
| load-balance-method: "round_robin" | ||
| watchdog-timeout: 1000000 | ||
| disable-cuda-graph: true | ||
| log-level: "info" | ||
|
|
||
| decode: | ||
| served-model-name: "nvidia/Qwen3.5-397B-A17B-NVFP4" | ||
| model-path: "/model/" | ||
| trust-remote-code: true | ||
|
|
||
| attention-backend: "trtllm_mha" | ||
| quantization: "modelopt_fp4" | ||
| kv-cache-dtype: "fp8_e4m3" | ||
| moe-runner-backend: "flashinfer_cutedsl" | ||
| page-size: 64 | ||
|
|
||
| # DEP16 decode: TP16 + DP16 + EP16 + dp-attention across 4 nodes | ||
| tensor-parallel-size: 16 | ||
| data-parallel-size: 16 | ||
| expert-parallel-size: 16 | ||
| enable-dp-attention: true | ||
| enable-dp-lm-head: true | ||
| moe-dense-tp-size: 1 | ||
|
|
||
| mamba-scheduler-strategy: "no_buffer" | ||
| mamba-track-interval: 128 | ||
| mamba-ssm-dtype: "bfloat16" | ||
|
|
||
| moe-a2a-backend: "deepep" | ||
| deepep-mode: "low_latency" | ||
| ep-dispatch-algorithm: "static" | ||
| eplb-algorithm: "deepseek" | ||
| prefill-round-robin-balance: true | ||
|
|
||
| disaggregation-mode: "decode" | ||
| disaggregation-bootstrap-port: 31000 | ||
| disable-radix-cache: true | ||
|
|
||
| mem-fraction-static: 0.75 | ||
| chunked-prefill-size: 4096 | ||
| context-length: 8192 | ||
| cuda-graph-max-bs: 512 | ||
| max-running-requests: 4096 # sized to top of cc sweep | ||
| max-mamba-cache-size: 4096 | ||
| watchdog-timeout: 1000000 | ||
|
|
||
| decode-log-interval: 1 | ||
| stream-interval: 50 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1000 | ||
| osl: 1000 | ||
| concurrencies: "2048x4096" | ||
| req_rate: "inf" | ||
| random_range_ratio: 1.0 | ||
| export_node_metrics: true | ||
174 changes: 174 additions & 0 deletions
174
recipes/qwen3.5/nvfp4/disagg/stp_prefix_off/dep4-dep16-lowcc.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,174 @@ | ||
| # Qwen3.5-397B-A17B-NVFP4 1P1D disaggregated benchmark on GB200 (low cc). | ||
| # Topology: 1 prefill worker (1 node, DEP4) + 1 decode worker (4 nodes, DEP16) = 5 nodes / 20 GPUs. | ||
| # Prefill: trtllm_mha + flashinfer_trtllm MoE runner. DEP4. | ||
| # Decode: trtllm_mha + flashinfer_cutedsl MoE runner + DeepEP low_latency. DEP16 across 4 nodes. | ||
| # Setup script bumps dynamo prefill warmup timeout 1800s -> 7200s (needed for multi-prefill cold start). | ||
| # Post-process: export_node_metrics emits gen_throughput.csv + per-node CSVs. | ||
| # cc sweep 1..1024. One DEP4 prefill worker sustains ~89K tok/s input, above | ||
| # top output here (~48K tok/s at cc=1024). For cc>=2048 use dep4-dep16-highcc.yaml. | ||
|
|
||
| name: "nvfp4-disagg-dep4-dep16-lowcc" | ||
|
|
||
| setup_script: qwen35-nvfp4-wideep-setup.sh | ||
|
|
||
| dynamo: | ||
| hash: 4e4006138bb9dde377a2bb2cacbcc65aaa616ac1 | ||
|
|
||
| model: | ||
| path: "qwen3.5-nvfp4" | ||
| container: "dev" | ||
| precision: "nvfp4" | ||
|
|
||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
|
|
||
| resources: | ||
| gpu_type: "gb200" | ||
| gpus_per_node: 4 | ||
| prefill_nodes: 1 | ||
| decode_nodes: 4 | ||
| prefill_workers: 1 | ||
| decode_workers: 1 | ||
|
|
||
| backend: | ||
| type: sglang | ||
|
|
||
| prefill_environment: | ||
| NO_COLOR: "1" | ||
| PYTHONUNBUFFERED: "1" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| NCCL_NVLS_ENABLE: "1" | ||
| MC_FORCE_MNNVL: "1" | ||
| SGLANG_ENABLE_FLASHINFER_GEMM: "true" | ||
| SGLANG_DG_CACHE_DIR: "/configs/deepgemm-cache" | ||
| FLASHINFER_WORKSPACE_BASE: "/configs/flashinfer-cache" | ||
| FLASHINFER_DISABLE_VERSION_CHECK: "1" | ||
| SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK: "1" | ||
| SGLANG_DISAGGREGATION_HEARTBEAT_MAX_FAILURE: "100000" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| SGLANG_USE_MESSAGE_QUEUE_BROADCASTER: "0" | ||
| SGLANG_HEALTH_STARTING_OK: "1" | ||
| SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION: "0" | ||
|
|
||
| decode_environment: | ||
| NO_COLOR: "1" | ||
| PYTHONUNBUFFERED: "1" | ||
| TORCH_DISTRIBUTED_DEFAULT_TIMEOUT: "1800" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| NCCL_NVLS_ENABLE: "1" | ||
| MC_FORCE_MNNVL: "1" | ||
| MC_TE_METRIC: "true" | ||
| SGLANG_ENABLE_FLASHINFER_GEMM: "true" | ||
| SGLANG_DG_CACHE_DIR: "/configs/deepgemm-cache" | ||
| FLASHINFER_WORKSPACE_BASE: "/configs/flashinfer-cache" | ||
| FLASHINFER_DISABLE_VERSION_CHECK: "1" | ||
| SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK: "1" | ||
| SGLANG_DISAGGREGATION_HEARTBEAT_MAX_FAILURE: "100000" | ||
| SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000" | ||
| SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000" | ||
| SGLANG_DECODE_BOOTSTRAP_TIMEOUT: "1000" | ||
| SGLANG_HACK_SEQ_BOOTSTRAP_ROOM: "1" | ||
| SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True" | ||
| SGLANG_USE_MESSAGE_QUEUE_BROADCASTER: "0" | ||
| SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK: "1024" | ||
| SGLANG_HEALTH_CHECK_TIMEOUT: "1800" | ||
| SGLANG_HEALTH_STARTING_OK: "1" | ||
| SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION: "0" | ||
|
|
||
| sglang_config: | ||
| prefill: | ||
| served-model-name: "nvidia/Qwen3.5-397B-A17B-NVFP4" | ||
| model-path: "/model/" | ||
| trust-remote-code: true | ||
| port: 5000 # avoid ephemeral port range (9000-65000) self-connect on rpc_port=port+236 | ||
| disable-flashinfer-autotune: true | ||
|
|
||
| attention-backend: "trtllm_mha" | ||
| quantization: "modelopt_fp4" | ||
| kv-cache-dtype: "fp8_e4m3" | ||
| moe-runner-backend: "flashinfer_trtllm" | ||
| page-size: 64 | ||
|
|
||
| # DEP4 per prefill worker (1 node, 4 GPUs) | ||
| tensor-parallel-size: 4 | ||
| data-parallel-size: 4 | ||
| expert-parallel-size: 4 | ||
| enable-dp-attention: true | ||
| enable-dp-lm-head: true | ||
| moe-dense-tp-size: 1 | ||
|
|
||
| mamba-scheduler-strategy: "no_buffer" | ||
| mamba-track-interval: 2048 | ||
| mamba-ssm-dtype: "bfloat16" | ||
|
|
||
| disaggregation-mode: "prefill" | ||
| disaggregation-bootstrap-port: 31000 | ||
| disable-radix-cache: true | ||
|
|
||
| mem-fraction-static: 0.80 | ||
| chunked-prefill-size: 65536 | ||
| context-length: 2020 | ||
|
|
||
| load-balance-method: "round_robin" | ||
| watchdog-timeout: 1000000 | ||
| disable-cuda-graph: true | ||
| log-level: "info" | ||
|
|
||
| decode: | ||
| served-model-name: "nvidia/Qwen3.5-397B-A17B-NVFP4" | ||
| model-path: "/model/" | ||
| trust-remote-code: true | ||
|
|
||
| attention-backend: "trtllm_mha" | ||
| quantization: "modelopt_fp4" | ||
| kv-cache-dtype: "fp8_e4m3" | ||
| moe-runner-backend: "flashinfer_cutedsl" | ||
| page-size: 64 | ||
|
|
||
| # DEP16 decode: TP16 + DP16 + EP16 + dp-attention across 4 nodes | ||
| tensor-parallel-size: 16 | ||
| data-parallel-size: 16 | ||
| expert-parallel-size: 16 | ||
| enable-dp-attention: true | ||
| enable-dp-lm-head: true | ||
| moe-dense-tp-size: 1 | ||
|
|
||
| mamba-scheduler-strategy: "no_buffer" | ||
| mamba-track-interval: 128 | ||
| mamba-ssm-dtype: "bfloat16" | ||
|
|
||
| moe-a2a-backend: "deepep" | ||
| deepep-mode: "low_latency" | ||
| ep-dispatch-algorithm: "static" | ||
| eplb-algorithm: "deepseek" | ||
| prefill-round-robin-balance: true | ||
|
|
||
| disaggregation-mode: "decode" | ||
| disaggregation-bootstrap-port: 31000 | ||
| disable-radix-cache: true | ||
|
|
||
| mem-fraction-static: 0.75 | ||
| chunked-prefill-size: 4096 | ||
| context-length: 8192 | ||
| cuda-graph-max-bs: 512 | ||
| max-running-requests: 1024 # sized to top of cc sweep | ||
| max-mamba-cache-size: 1024 | ||
| watchdog-timeout: 1000000 | ||
|
|
||
| decode-log-interval: 1 | ||
| stream-interval: 50 | ||
|
|
||
| benchmark: | ||
| type: "sa-bench" | ||
| isl: 1000 | ||
| osl: 1000 | ||
| concurrencies: "1x2x4x8x16x32x64x128x256x512x1024" | ||
| req_rate: "inf" | ||
| random_range_ratio: 1.0 | ||
| export_node_metrics: true |
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.