[Bugfix] Fix PixtralHFImagePixelInputs dynamic shape check (#22827)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py 2025-08-14 17:35:43 +08:00 committed by GitHub
parent 00e3f9da46
commit 7c3a0741c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -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):