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
8a7c4451
Commit
8a7c4451
authored
Mar 15, 2025
by
zhuwenwen
Browse files
update fused_moe.py
parent
37ef8dd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+2
-3
No files found.
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
8a7c4451
...
@@ -915,9 +915,8 @@ def invoke_fused_moe_kernel(A: torch.Tensor,
...
@@ -915,9 +915,8 @@ def invoke_fused_moe_kernel(A: torch.Tensor,
assert
A_scale
is
None
assert
A_scale
is
None
assert
B_scale
is
None
assert
B_scale
is
None
if
use_int4_w4a16
:
EM
=
sorted_token_ids
.
shape
[
0
]
EM
=
sorted_token_ids
.
shape
[
0
]
if
A
.
shape
[
0
]
<
config
[
"BLOCK_SIZE_M"
]:
elif
A
.
shape
[
0
]
<
config
[
"BLOCK_SIZE_M"
]:
# optimize for small batch_size.
# optimize for small batch_size.
# We assume that top_ids of each token is unique, so
# We assume that top_ids of each token is unique, so
# so num_valid_experts <= batch_size <= BLOCK_SIZE_M,
# so num_valid_experts <= batch_size <= BLOCK_SIZE_M,
...
...
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