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
7c3a0741
Unverified
Commit
7c3a0741
authored
Aug 14, 2025
by
Isotr0py
Committed by
GitHub
Aug 14, 2025
Browse files
[Bugfix] Fix `PixtralHFImagePixelInputs` dynamic shape check (#22827)
Signed-off-by:
Isotr0py
<
mozf@mail2.sysu.edu.cn
>
parent
00e3f9da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
tests/models/multimodal/test_tensor_schema.py
tests/models/multimodal/test_tensor_schema.py
+1
-1
vllm/model_executor/models/llava.py
vllm/model_executor/models/llava.py
+3
-2
No files found.
tests/models/multimodal/test_tensor_schema.py
View file @
7c3a0741
vllm/model_executor/models/llava.py
View file @
7c3a0741
...
...
@@ -72,8 +72,9 @@ class PixtralHFImagePixelInputs(TensorSchema):
in which case the data is passed as a list instead of a batched tensor.
"""
type
:
Literal
[
"pixel_values_pixtral"
]
=
"pixel_values_pixtral"
pixel_values
:
Annotated
[
Union
[
torch
.
Tensor
,
list
[
torch
.
Tensor
]],
TensorShape
(
"bn"
,
"c"
,
"h"
,
"w"
)]
pixel_values
:
Annotated
[
Union
[
torch
.
Tensor
,
list
[
torch
.
Tensor
]],
TensorShape
(
"bn"
,
"c"
,
"h"
,
"w"
,
dynamic_dims
=
{
"h"
,
"w"
})]
class
LlavaImageEmbeddingInputs
(
TensorSchema
):
...
...
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