Skip to content

feat: add vllm enable_expert_parallel - #997

Merged
terrykong merged 3 commits into
mainfrom
yukih/add-vllm-ep-param
Aug 28, 2025
Merged

terrykong merged 3 commits into
mainfrom
yukih/add-vllm-ep-param

Conversation

@yuki-97

@yuki-97 yuki-97 commented Aug 27, 2025 •

Copy link
Copy Markdown
Contributor

What does this PR do ?

This PR add vllm enable_expert_parallel to support using EP for generation.

  1. As @xxman-google mentioned, this will save memory of MoE models.
  2. This is a prerequisite of Enable vLLM PP and EP for DSV3 #908 and DeepSeek V3 GRPO: Optimize generation model parallelism #947.

Currently enable enable_expert_parallel won't speedup generation according to tests on DSV3.

  1. We can't take the benefit of DP since we didn't use vllm's DP and control it outside now.
  2. We use vllm's naive all2all backend, haven't support pplx and DeepEP backend.

Will support these in subsequent PRs.

Issues

Related #908.

Test Result on DSV3

image image

@yuki-97 yuki-97 added the CI:L1 Run doctests, unit tests, and functional tests label Aug 27, 2025
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
@yuki-97
yuki-97 force-pushed the yukih/add-vllm-ep-param branch from 1a4d08c to 6531fb2 Compare August 27, 2025 14:40
@yuki-97 yuki-97 added CI:L1 Run doctests, unit tests, and functional tests and removed CI:L1 Run doctests, unit tests, and functional tests labels Aug 27, 2025
@xxman-google

Copy link
Copy Markdown
Contributor

Thanks @yuki-97

@terrykong

Copy link
Copy Markdown
Collaborator

@yuki-97 lgtm. could you share in your PR description what model you tried it on just for posterity?

@parthchadha parthchadha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's add convergence/performance plots in the PR description.

@yuki-97

yuki-97 commented Aug 28, 2025

Copy link
Copy Markdown
Contributor Author

@terrykong @parthchadha plots are added in the PR description.

@terrykong
terrykong added this pull request to the merge queue Aug 28, 2025
Merged via the queue into main with commit 4923403 Aug 28, 2025
@terrykong
terrykong deleted the yukih/add-vllm-ep-param branch August 28, 2025 12:33
soodoshll pushed a commit to soodoshll/RL that referenced this pull request Aug 28, 2025
skirdey-inflection pushed a commit to skirdey-inflection/RL that referenced this pull request Aug 30, 2025
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Stanislav Kirdey <[email protected]>
soodoshll pushed a commit to soodoshll/RL that referenced this pull request Sep 4, 2025
PrinsYin pushed a commit to PrinsYin/RL that referenced this pull request Nov 30, 2025

This branch was previously deployed

1 inactive deployment
nemo-ci — 6531fb2f Deployed Aug 27, 2025 by yuki-97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants