[Bugfix] Fix image input for Pixtral-HF (#11741)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-01-08 10:17:16 +08:00
committed by GitHub
parent 5950f555a1
commit 91445c7bc8
4 changed files with 52 additions and 6 deletions
+9
View File
@@ -281,6 +281,15 @@ def flatten_bn(
...
@overload
def flatten_bn(
x: Union[List[torch.Tensor], torch.Tensor],
*,
concat: bool = False,
) -> Union[List[torch.Tensor], torch.Tensor]:
...
def flatten_bn(
x: Union[List[torch.Tensor], torch.Tensor],
*,