Skip to content

Commit

Permalink
[Bugfix][Model] Fix Python 3.8 compatibility in Pixtral model by upda…
Browse files Browse the repository at this point in the history
…ting type annotations (vllm-project#8490)
  • Loading branch information
chrisociepa authored Sep 15, 2024
1 parent 50e9ec4 commit 3724d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/models/pixtral.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def forward(
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(
Expand Down

0 comments on commit 3724d5f

Please sign in to comment.