mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-06-02 02:31:19 +08:00
[Bugfix] Allow dynamic number of patches for llava_onevision (#23525)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
0cb7b065c3
commit
ebafb0936d
@ -75,7 +75,7 @@ class LlavaOnevisionImagePixelInputs(TensorSchema):
|
|||||||
|
|
||||||
pixel_values: Annotated[
|
pixel_values: Annotated[
|
||||||
Union[torch.Tensor, list[torch.Tensor]],
|
Union[torch.Tensor, list[torch.Tensor]],
|
||||||
TensorShape("bn", "np", 3, "h", "w"),
|
TensorShape("bn", "np", 3, "h", "w", dynamic_dims={"np"}),
|
||||||
]
|
]
|
||||||
|
|
||||||
image_sizes: Annotated[Optional[torch.Tensor], TensorShape("bn", 2)]
|
image_sizes: Annotated[Optional[torch.Tensor], TensorShape("bn", 2)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user