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
80679f10
Unverified
Commit
80679f10
authored
Nov 06, 2025
by
Lukas Geiger
Committed by
GitHub
Nov 06, 2025
Browse files
[Core][MM] Use non-blocking CPU-GPU copy of multimodal data (#28141)
Signed-off-by:
Lukas Geiger
<
lukas.geiger94@gmail.com
>
parent
43ecd0a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/multimodal/utils.py
vllm/multimodal/utils.py
+3
-1
No files found.
vllm/multimodal/utils.py
View file @
80679f10
...
...
@@ -444,7 +444,9 @@ def group_mm_kwargs_by_modality(
if
device
is
not
None
:
mm_kwargs_group
=
json_map_leaves
(
lambda
x
:
x
.
to
(
device
=
device
)
if
isinstance
(
x
,
torch
.
Tensor
)
else
x
,
lambda
x
:
x
.
to
(
device
=
device
,
non_blocking
=
True
)
if
isinstance
(
x
,
torch
.
Tensor
)
else
x
,
mm_kwargs_group
,
)
else
:
...
...
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