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
4ba48b79
Unverified
Commit
4ba48b79
authored
Feb 19, 2026
by
Biswa Panda
Committed by
GitHub
Feb 19, 2026
Browse files
feat: add model field to multimodal protocol for LoRA identity (#6382)
parent
46d9f448
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
components/src/dynamo/vllm/multimodal_handlers/multimodal_pd_worker_handler.py
.../vllm/multimodal_handlers/multimodal_pd_worker_handler.py
+1
-0
components/src/dynamo/vllm/multimodal_utils/protocol.py
components/src/dynamo/vllm/multimodal_utils/protocol.py
+2
-0
examples/multimodal/components/processor.py
examples/multimodal/components/processor.py
+1
-0
examples/multimodal/utils/protocol.py
examples/multimodal/utils/protocol.py
+2
-0
No files found.
components/src/dynamo/vllm/multimodal_handlers/multimodal_pd_worker_handler.py
View file @
4ba48b79
...
@@ -155,6 +155,7 @@ class MultimodalPDWorkerHandler(BaseWorkerHandler):
...
@@ -155,6 +155,7 @@ class MultimodalPDWorkerHandler(BaseWorkerHandler):
),
),
sampling_params
=
sampling_params
,
sampling_params
=
sampling_params
,
request_id
=
request_id
,
request_id
=
request_id
,
model
=
raw_request
.
get
(
"model"
),
multimodal_inputs
=
multimodal_groups
,
multimodal_inputs
=
multimodal_groups
,
)
)
...
...
components/src/dynamo/vllm/multimodal_utils/protocol.py
View file @
4ba48b79
...
@@ -175,6 +175,8 @@ class MultiModalGroup(BaseModel):
...
@@ -175,6 +175,8 @@ class MultiModalGroup(BaseModel):
class
vLLMMultimodalRequest
(
vLLMGenerateRequest
):
class
vLLMMultimodalRequest
(
vLLMGenerateRequest
):
model_config
=
ConfigDict
(
arbitrary_types_allowed
=
True
)
model_config
=
ConfigDict
(
arbitrary_types_allowed
=
True
)
# LoRA adapter name (matches the name used in load_lora)
model
:
Optional
[
str
]
=
None
# Decode-only worker can have None for multimodal_inputs
# Decode-only worker can have None for multimodal_inputs
multimodal_inputs
:
Optional
[
List
[
MultiModalGroup
]]
=
Field
(
default_factory
=
list
)
multimodal_inputs
:
Optional
[
List
[
MultiModalGroup
]]
=
Field
(
default_factory
=
list
)
# Add these fields for Qwen VL (mRoPE) decode-only worker
# Add these fields for Qwen VL (mRoPE) decode-only worker
...
...
examples/multimodal/components/processor.py
View file @
4ba48b79
...
@@ -143,6 +143,7 @@ class Processor(ProcessMixIn):
...
@@ -143,6 +143,7 @@ class Processor(ProcessMixIn):
engine_prompt
=
engine_prompt
,
engine_prompt
=
engine_prompt
,
sampling_params
=
sampling_params
,
sampling_params
=
sampling_params
,
request_id
=
request_id
,
request_id
=
request_id
,
model
=
raw_request
.
model
,
multimodal_input
=
multimodal_input
,
multimodal_input
=
multimodal_input
,
)
)
...
...
examples/multimodal/utils/protocol.py
View file @
4ba48b79
...
@@ -156,6 +156,8 @@ class MultiModalInput(BaseModel):
...
@@ -156,6 +156,8 @@ class MultiModalInput(BaseModel):
class
vLLMMultimodalRequest
(
vLLMGenerateRequest
):
class
vLLMMultimodalRequest
(
vLLMGenerateRequest
):
model_config
=
ConfigDict
(
arbitrary_types_allowed
=
True
)
model_config
=
ConfigDict
(
arbitrary_types_allowed
=
True
)
# LoRA adapter name (matches the name used in load_lora)
model
:
Optional
[
str
]
=
None
multimodal_input
:
Optional
[
MultiModalInput
]
=
Field
(
default_factory
=
MultiModalInput
)
multimodal_input
:
Optional
[
MultiModalInput
]
=
Field
(
default_factory
=
MultiModalInput
)
image_grid_thw
:
Optional
[
List
[
Any
]]
=
None
image_grid_thw
:
Optional
[
List
[
Any
]]
=
None
embeddings_shape
:
Optional
[
embeddings_shape
:
Optional
[
...
...
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