Skip to content
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

[Hardware][Gaudi][Bugfix] Fix HPU tensor parallelism, enable multiprocessing executor #12167

Merged

Conversation

kzawora-intel
Copy link
Contributor

@kzawora-intel kzawora-intel commented Jan 17, 2025

#11256 changed the input broadcasting flow a little bit, and in tensor parallel scenario we cannot assume that all workers will receive execute_model_req from the executor. Since broadcast from driver worker is now performed within LocalOrDistributedWorkerBase.prepare_input called by LocalOrDistributedWorkerBase.execute_model, for non-driver workers, we can expect execute_model_req to be None within HPUWorker.execute_model (which is essentially a wrapper around LocalOrDistributedWorkerBase.execute_model with some additional HPU-specific profiling sugar). Asserting that execute_model_req is not None breaks the tensor parallelism, and this PR fixes that. Additionally, it enables usage of multiprocessing executor on HPU, as it's fully functional on HPU (as introduced in #11030).

Signed-off-by: Konrad Zawora <[email protected]>
Copy link

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can do one of these:

  • Add ready label to the PR
  • Enable auto-merge.

🚀

@kzawora-intel kzawora-intel force-pushed the private/kzawora/tp_upstream_fix branch from 46d59ea to 68f1a43 Compare January 17, 2025 14:33
zhenwei-intel added a commit to zhenwei-intel/vllm that referenced this pull request Jan 22, 2025
@WoosukKwon WoosukKwon requested a review from youkaichao January 22, 2025 16:36
Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

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

LGTM. @youkaichao Can you take a second look?

Copy link
Member

@youkaichao youkaichao left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@youkaichao youkaichao enabled auto-merge (squash) January 22, 2025 17:25
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Jan 22, 2025
@youkaichao youkaichao disabled auto-merge January 22, 2025 18:06
@youkaichao youkaichao merged commit 96f6a75 into vllm-project:main Jan 22, 2025
33 of 40 checks passed
abmfy pushed a commit to abmfy/vllm-flashinfer that referenced this pull request Jan 24, 2025
abmfy pushed a commit to abmfy/vllm-flashinfer that referenced this pull request Jan 24, 2025
tjtanaa pushed a commit to EmbeddedLLM/vllm that referenced this pull request Jan 27, 2025
tjtanaa pushed a commit to EmbeddedLLM/vllm that referenced this pull request Jan 27, 2025
tjtanaa pushed a commit to EmbeddedLLM/vllm that referenced this pull request Jan 28, 2025
rasmith pushed a commit to rasmith/vllm that referenced this pull request Jan 30, 2025
Isotr0py pushed a commit to Isotr0py/vllm that referenced this pull request Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants