mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 05:34:57 +08:00
[Bugfix] Fix PixtralHFImagePixelInputs dynamic shape check (#22827)
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
parent
00e3f9da46
commit
7c3a0741c6
@ -153,4 +153,4 @@ def test_model_tensor_schema(model_arch: str, vllm_runner: type[VllmRunner],
|
|||||||
if hasattr(model, method_name):
|
if hasattr(model, method_name):
|
||||||
getattr(model, method_name)(**mm_kwargs)
|
getattr(model, method_name)(**mm_kwargs)
|
||||||
|
|
||||||
vllm_model.apply_model(validate_model_input)
|
vllm_model.apply_model(validate_model_input)
|
||||||
@ -72,8 +72,9 @@ class PixtralHFImagePixelInputs(TensorSchema):
|
|||||||
in which case the data is passed as a list instead of a batched tensor.
|
in which case the data is passed as a list instead of a batched tensor.
|
||||||
"""
|
"""
|
||||||
type: Literal["pixel_values_pixtral"] = "pixel_values_pixtral"
|
type: Literal["pixel_values_pixtral"] = "pixel_values_pixtral"
|
||||||
pixel_values: Annotated[Union[torch.Tensor, list[torch.Tensor]],
|
pixel_values: Annotated[
|
||||||
TensorShape("bn", "c", "h", "w")]
|
Union[torch.Tensor, list[torch.Tensor]],
|
||||||
|
TensorShape("bn", "c", "h", "w", dynamic_dims={"h", "w"})]
|
||||||
|
|
||||||
|
|
||||||
class LlavaImageEmbeddingInputs(TensorSchema):
|
class LlavaImageEmbeddingInputs(TensorSchema):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user