Skip to content

Commit

Permalink
[Bugfix][CPU] Fix CPU embedding runner with tensor parallel (#10394)
Browse files Browse the repository at this point in the history
Signed-off-by: Isotr0py <[email protected]>
  • Loading branch information
Isotr0py authored Nov 17, 2024
1 parent 905d0f0 commit cf349c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vllm/worker/cpu_embedding_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def execute_model(

hidden_states = model_executable(**execute_model_kwargs)

# Only perform pooling in the driver worker.
if not self.is_driver_worker:
return []

return [
self.model.pooler(hidden_states=hidden_states,
pooling_metadata=model_input.pooling_metadata)
Expand Down

0 comments on commit cf349c4

Please sign in to comment.