Skip to content

fix(nemotron_3.5_super): make P/D router topology and policy configurable - #3193

Merged
laszkiewiczp merged 3 commits into
mainfrom
plaszkiewicz/pd-router-dp-and-decode-policy
Sep 10, 2026
Merged

laszkiewiczp merged 3 commits into
mainfrom
plaszkiewicz/pd-router-dp-and-decode-policy

Conversation

@laszkiewiczp

@laszkiewiczp laszkiewiczp commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Two settings in sbatch_external_vllm.sh were hard-coded in a way that limited P/D deployment flexibility. Both showed up while tuning a prefill/decode deployment for Qwen3.8-Flash-Next on SWE-bench Pro.

…able

--intra-node-data-parallel-size was hard-coded to 1, so every node had to
serve tensor-parallel only; data-parallel serving measured roughly twice the
prefill throughput on Qwen3.8-Flash-Next.

--decode-policy was hard-coded to cache_aware, which sends every decode
request to the first node when requests share a prefix. Additional decode
nodes stayed idle and adding them changed nothing. It now defaults to
round_robin; set ROUTER_DECODE_POLICY to restore the old value.

Both settings, and the prefill policy, are read from the environment with
defaults that keep existing behaviour, apart from the decode policy noted
above. Startup now also fails when vllm-router exits, which previously left
every worker running behind an unreachable endpoint.

Signed-off-by: plaszkiewicz <plaszkiewicz@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer labels Sep 9, 2026
Comment thread benchmarks/nemotron_3.5_super/sbatch_external_vllm.sh Outdated
@yaoyu-33 yaoyu-33 added waiting-on-customer Waiting on the original author to respond and removed needs-review PR is ready for code review and waiting on a reviewer labels Sep 10, 2026
The first version of this change shipped round_robin as the new default,
which silently retuned every existing P/D deployment. The point is that the
policy is settable, not that the shipped value moves: every default in this
file now reproduces the hard-coded behaviour it replaced.

The Qwen3.8-Flash-Next SWE-bench Pro deployment that motivated round_robin
sets ROUTER_DECODE_POLICY itself, on the caller side.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: plaszkiewicz <plaszkiewicz@nvidia.com>
@laszkiewiczp

Copy link
Copy Markdown
Contributor Author

/ok to test d435e8b

@yaoyu-33 yaoyu-33 added needs-review PR is ready for code review and waiting on a reviewer and removed waiting-on-customer Waiting on the original author to respond labels Sep 10, 2026
@laszkiewiczp

Copy link
Copy Markdown
Contributor Author

/ok to test a993017

@laszkiewiczp
laszkiewiczp enabled auto-merge (squash) September 10, 2026 14:05
@laszkiewiczp
laszkiewiczp merged commit fddaf23 into main Sep 10, 2026
20 checks passed
@laszkiewiczp
laszkiewiczp deleted the plaszkiewicz/pd-router-dp-and-decode-policy branch September 10, 2026 14:07
jkyi-nvidia pushed a commit that referenced this pull request Sep 11, 2026
…able (#3193)

Two settings in `sbatch_external_vllm.sh` were hard-coded in a way that
limited P/D deployment flexibility. Both showed up while tuning a
prefill/decode deployment for Qwen3.8-Flash-Next on SWE-bench Pro.

---------

Signed-off-by: plaszkiewicz <plaszkiewicz@nvidia.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Junkeun Yi <jkyi@nvidia.com>

This branch was previously deployed

1 inactive deployment
public — a9930179 Deployed Sep 10, 2026 by copy-pr-bot[bot] via release / finalize / notify #2755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants