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
f7dac83d
Unverified
Commit
f7dac83d
authored
Jun 29, 2024
by
Cody Yu
Committed by
GitHub
Jun 29, 2024
Browse files
[Kernel] Raise an exception in MoE kernel if the batch size is larger then 65k (#5939)
parent
7c01f706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+5
-0
No files found.
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
f7dac83d
...
@@ -423,6 +423,11 @@ def fused_experts(hidden_states: torch.Tensor,
...
@@ -423,6 +423,11 @@ def fused_experts(hidden_states: torch.Tensor,
M
,
_
=
hidden_states
.
shape
M
,
_
=
hidden_states
.
shape
E
,
N
,
_
=
w1
.
shape
E
,
N
,
_
=
w1
.
shape
if
M
>
65536
:
# https://github.com/vllm-project/vllm/issues/5938
raise
ValueError
(
"MoE kernel does not support more than 65536 tokens, "
f
"but got
{
M
}
"
)
if
override_config
:
if
override_config
:
config
=
override_config
config
=
override_config
else
:
else
:
...
...
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