Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
9ba41558
Unverified
Commit
9ba41558
authored
May 28, 2024
by
Robert Shaw
Committed by
GitHub
May 28, 2024
Browse files
[BugFix] Fix Embedding Models with TP>1 (#5075)
parent
d4f39859
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/worker/embedding_model_runner.py
vllm/worker/embedding_model_runner.py
+4
-0
No files found.
vllm/worker/embedding_model_runner.py
View file @
9ba41558
...
...
@@ -79,6 +79,10 @@ class EmbeddingModelRunner(ModelRunner):
execute_model_kwargs
.
update
({
"image_input"
:
multi_modal_input
})
hidden_states
=
model_executable
(
**
execute_model_kwargs
)
# Only perform pooling in the driver worker.
if
not
self
.
is_driver_worker
:
return
None
return
self
.
model
.
pooler
(
hidden_states
=
hidden_states
,
pooling_metadata
=
pooling_metadata
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment