mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-25 18:01:50 +08:00
[Bugfix] Enable dynamic_dims for different embeds shape (#31223)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
ca6a95ba25
commit
dd424571c8
@ -111,7 +111,7 @@ class AudioFlamingo3EmbeddingInputs(TensorSchema):
|
||||
|
||||
audio_embeds: Annotated[
|
||||
list[torch.Tensor],
|
||||
TensorShape("bn", "naf", "hs"),
|
||||
TensorShape("bn", "naf", "hs", dynamic_dims={"naf"}),
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -139,7 +139,7 @@ class MiniCPMVImageEmbeddingInputs(TensorSchema):
|
||||
type: Literal["image_embeds"]
|
||||
image_embeds: Annotated[
|
||||
torch.Tensor | list[torch.Tensor],
|
||||
TensorShape("bn", "ns", "hs"),
|
||||
TensorShape("bn", "ns", "hs", dynamic_dims={"ns"}),
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ class Qwen2AudioEmbeddingInputs(TensorSchema):
|
||||
|
||||
audio_embeds: Annotated[
|
||||
list[torch.Tensor],
|
||||
TensorShape("bn", "naf", "hs"),
|
||||
TensorShape("bn", "naf", "hs", dynamic_dims={"naf"}),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user