mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-10 07:27:08 +08:00
[Bugfix][CPU] Fix CPU embedding runner with tensor parallel (#10394)
Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
parent
905d0f0af4
commit
cf349c4a97
@ -66,6 +66,10 @@ class CPUEmbeddingModelRunner(
|
|||||||
|
|
||||||
hidden_states = model_executable(**execute_model_kwargs)
|
hidden_states = model_executable(**execute_model_kwargs)
|
||||||
|
|
||||||
|
# Only perform pooling in the driver worker.
|
||||||
|
if not self.is_driver_worker:
|
||||||
|
return []
|
||||||
|
|
||||||
return [
|
return [
|
||||||
self.model.pooler(hidden_states=hidden_states,
|
self.model.pooler(hidden_states=hidden_states,
|
||||||
pooling_metadata=model_input.pooling_metadata)
|
pooling_metadata=model_input.pooling_metadata)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user