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
dynamo
Commits
069434b4
Unverified
Commit
069434b4
authored
Oct 06, 2025
by
Kris Hung
Committed by
GitHub
Oct 06, 2025
Browse files
fix: Fix vllm multimodal tests (#3361)
Signed-off-by:
krishung5
<
krish@nvidia.com
>
parent
de6fdf0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
examples/multimodal/components/processor.py
examples/multimodal/components/processor.py
+4
-1
examples/multimodal/components/worker.py
examples/multimodal/components/worker.py
+9
-11
tests/serve/test_vllm.py
tests/serve/test_vllm.py
+1
-0
No files found.
examples/multimodal/components/processor.py
View file @
069434b4
...
@@ -229,10 +229,13 @@ class Processor(ProcessMixIn):
...
@@ -229,10 +229,13 @@ class Processor(ProcessMixIn):
"content"
:
prompt
,
"content"
:
prompt
,
}
}
# Set stream=True - the http frontend will handle aggregation of
# streamed chunks into a single http response, or stream them
# back as SSE responses based on the stream flag in the request.
chat_request
=
ChatCompletionRequest
(
chat_request
=
ChatCompletionRequest
(
model
=
raw_request
.
model
,
model
=
raw_request
.
model
,
messages
=
[
msg
],
messages
=
[
msg
],
stream
=
raw_request
.
stream
,
stream
=
True
,
max_tokens
=
raw_request
.
max_tokens
,
max_tokens
=
raw_request
.
max_tokens
,
temperature
=
raw_request
.
temperature
,
temperature
=
raw_request
.
temperature
,
request_id
=
str
(
uuid
.
uuid4
()),
request_id
=
str
(
uuid
.
uuid4
()),
...
...
examples/multimodal/components/worker.py
View file @
069434b4
...
@@ -266,21 +266,19 @@ class VllmPDWorker(VllmBaseWorker):
...
@@ -266,21 +266,19 @@ class VllmPDWorker(VllmBaseWorker):
request
=
vLLMMultimodalRequest
.
model_validate
(
request
)
request
=
vLLMMultimodalRequest
.
model_validate
(
request
)
logger
.
debug
(
f
"Received PD request: {{ id:
{
request
.
request_id
}
}}."
)
logger
.
debug
(
f
"Received PD request: {{ id:
{
request
.
request_id
}
}}."
)
embeddings
,
descriptor
=
None
,
None
# Process embeddings using the connector
# Create a descriptor based on the embedding shape.
embeddings
=
torch
.
empty
(
request
.
embeddings_shape
,
dtype
=
self
.
EMBEDDINGS_DTYPE
,
device
=
self
.
EMBEDDINGS_DEVICE
,
)
descriptor
=
connect
.
Descriptor
(
embeddings
)
if
(
if
(
request
.
multimodal_input
.
image_url
is
None
request
.
multimodal_input
.
image_url
is
None
and
request
.
multimodal_input
.
video_url
is
None
and
request
.
multimodal_input
.
video_url
is
None
):
):
# Process embeddings using the connector
# Create a descriptor based on the embedding shape.
embeddings
=
torch
.
empty
(
request
.
embeddings_shape
,
dtype
=
self
.
EMBEDDINGS_DTYPE
,
device
=
self
.
EMBEDDINGS_DEVICE
,
)
descriptor
=
connect
.
Descriptor
(
embeddings
)
if
descriptor
is
None
:
if
descriptor
is
None
:
raise
RuntimeError
(
raise
RuntimeError
(
"Descriptor is None in PD worker - cannot process embeddings"
"Descriptor is None in PD worker - cannot process embeddings"
...
...
tests/serve/test_vllm.py
View file @
069434b4
...
@@ -169,6 +169,7 @@ vllm_configs = {
...
@@ -169,6 +169,7 @@ vllm_configs = {
],
],
repeat_count
=
1
,
repeat_count
=
1
,
expected_response
=
[
"rabbit"
],
expected_response
=
[
"rabbit"
],
temperature
=
0.7
,
)
)
],
],
),
),
...
...
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