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 and Jeffwan committed Sep 19, 2024
1 parent c503313 commit 272712d
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 272712d

Please sign in to comment.