Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
3724d5f6
Unverified
Commit
3724d5f6
authored
Sep 15, 2024
by
Chris
Committed by
GitHub
Sep 15, 2024
Browse files
[Bugfix][Model] Fix Python 3.8 compatibility in Pixtral model by updating type annotations (#8490)
parent
50e9ec41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/pixtral.py
vllm/model_executor/models/pixtral.py
+1
-1
No files found.
vllm/model_executor/models/pixtral.py
View file @
3724d5f6
...
...
@@ -454,7 +454,7 @@ class Transformer(nn.Module):
return
x
def
position_meshgrid
(
patch_embeds_list
:
l
ist
[
torch
.
Tensor
],
)
->
torch
.
Tensor
:
def
position_meshgrid
(
patch_embeds_list
:
L
ist
[
torch
.
Tensor
],
)
->
torch
.
Tensor
:
positions
=
torch
.
cat
([
torch
.
stack
(
torch
.
meshgrid
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment