Skip to content

Support pipeline parallel in V1 Engine #1700

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

Merged
merged 1 commit into from
Jul 11, 2025
Merged

Conversation

weiguihua2
Copy link
Contributor

@weiguihua2 weiguihua2 commented Jul 9, 2025

What this PR does / why we need it?

This patch supports pipeline parallel in V1 Engine

Does this PR introduce any user-facing change?

Yes, users can run PP in V1

How was this patch tested?

Manully test

Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.42%. Comparing base (c30ddb8) to head (c4f5426).
Report is 112 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1700       +/-   ##
===========================================
+ Coverage   27.39%   54.42%   +27.02%     
===========================================
  Files          56       80       +24     
  Lines        6191    10007     +3816     
===========================================
+ Hits         1696     5446     +3750     
- Misses       4495     4561       +66     
Flag Coverage Δ
unittests 54.42% <ø> (+27.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Yikun Yikun changed the title [cherry-pick]engineV1 support pipeline parallel Support pipeline parallel in V1 Engine Jul 10, 2025
@MengqingCao
Copy link
Collaborator

MengqingCao commented Jul 10, 2025

overall lgtm, please add an e2e test for pp, thanks!

@wangxiyuan
Copy link
Collaborator

wangxiyuan commented Jul 10, 2025

yes, the e2e test should be added at least. A simple one with qwen3-0.6b + PP=2 in multicard is welcome

@pytest.mark.parametrize("pp_size", PIPELINE_PARALLELS)
def test_models(model: str, tp_size: int, pp_size: int) -> None:
# Create an LLM.
llm = LLM(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I recommand to use tests.conftest.VllmRunner, as we don't need to do the resource clear by hand

Signed-off-by: weiguihua2 <weiguihua2@huawei.com>
@wangxiyuan wangxiyuan merged commit aa4240c into vllm-project:main Jul 11, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants