Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
81ce2a4b
Unverified
Commit
81ce2a4b
authored
Dec 11, 2023
by
Woosuk Kwon
Committed by
GitHub
Dec 11, 2023
Browse files
[Minor] Fix type annotation in Mixtral (#2036)
parent
5dd80d37
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/mixtral.py
vllm/model_executor/models/mixtral.py
+1
-1
No files found.
vllm/model_executor/models/mixtral.py
View file @
81ce2a4b
...
...
@@ -251,7 +251,7 @@ class BlockSparseMoE(nn.Module):
return
column_indices_t
,
offsets_t
,
block_offsets_t
def
topology
(
self
,
x
:
torch
.
Tensor
,
padded_bins
:
torch
.
Tensor
)
->
stk
.
Matrix
:
padded_bins
:
torch
.
Tensor
)
->
"
stk.Matrix
"
:
padded_tokens
,
_
=
x
.
size
()
assert
padded_tokens
%
self
.
blocking
==
0
assert
self
.
ffn_dim_per_partition
%
self
.
blocking
==
0
...
...
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