[Bugfix][Model] Fix Python 3.8 compatibility in Pixtral model by updating type annotations (#8490)

This commit is contained in:
Chris
2024-09-15 06:20:05 +02:00
committed by GitHub
parent 50e9ec41fc
commit 3724d5f6b5

View File

@@ -454,7 +454,7 @@ class Transformer(nn.Module):
return x
def position_meshgrid(patch_embeds_list: list[torch.Tensor], ) -> torch.Tensor:
def position_meshgrid(patch_embeds_list: List[torch.Tensor], ) -> torch.Tensor:
positions = torch.cat([
torch.stack(
torch.meshgrid(