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
6c8a3c09
Unverified
Commit
6c8a3c09
authored
Sep 19, 2025
by
Michael Yao
Committed by
GitHub
Sep 18, 2025
Browse files
[Docs] Fix griffe warnings in vllm/multimodal (#25216)
Signed-off-by:
windsonsea
<
haifeng.yao@daocloud.io
>
parent
31a8a2a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
vllm/multimodal/inputs.py
vllm/multimodal/inputs.py
+3
-3
vllm/multimodal/utils.py
vllm/multimodal/utils.py
+3
-1
No files found.
vllm/multimodal/inputs.py
View file @
6c8a3c09
...
...
@@ -569,8 +569,8 @@ class MultiModalFieldConfig:
Args:
modality: The modality of the multi-modal item that uses this
keyword argument.
s
lices
: For each multi-modal item, the size of the slice
that
is used to extract the data corresponding to it.
s
ize_per_item
: For each multi-modal item, the size of the slice
that
is used to extract the data corresponding to it.
dim: The dimension to slice, default to 0.
Example:
...
...
@@ -590,7 +590,7 @@ class MultiModalFieldConfig:
```
Given:
s
lices
: [3, 4, 2]
s
ize_per_item
: [3, 4, 2]
dim: 1
Input:
...
...
vllm/multimodal/utils.py
View file @
6c8a3c09
...
...
@@ -395,7 +395,9 @@ def group_mm_kwargs_by_modality(
modality together into the same `MultiModalKwargs` instance.
Args:
mm_inputs: List of `MultiModalKwargsItem`.
mm_kwargs: List of `MultiModalKwargsItem`.
device: The device to place the grouped tensors on.
pin_memory: Whether to pin memory for faster host-to-device transfer.
Yields:
A tuple `(modality, num_items, grouped_kwargs)`.
...
...
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