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
00bbf0bb
Commit
00bbf0bb
authored
Sep 29, 2025
by
zhuwenwen
Browse files
update moe_sum interface
parent
484fcfca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+3
-2
No files found.
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
00bbf0bb
...
@@ -1770,8 +1770,9 @@ def fused_experts_impl(
...
@@ -1770,8 +1770,9 @@ def fused_experts_impl(
if
envs
.
VLLM_USE_LIGHTOP
and
not
dpsk_fp16_quick
:
if
envs
.
VLLM_USE_LIGHTOP
and
not
dpsk_fp16_quick
:
from
lightop
import
op
as
op
from
lightop
import
op
as
op
op
.
moe_sum
(
intermediate_cache3
.
view
(
*
intermediate_cache3
.
size
()),
op
.
moe_sum
(
input
=
intermediate_cache3
.
view
(
*
intermediate_cache3
.
size
()),
out_hidden_states
[
begin_chunk_idx
:
end_chunk_idx
],
shared_output
[
begin_chunk_idx
:
end_chunk_idx
],
None
,
routed_scaling_factor
)
output
=
out_hidden_states
[
begin_chunk_idx
:
end_chunk_idx
],
bias
=
shared_output
[
begin_chunk_idx
:
end_chunk_idx
],
expert_mask
=
None
,
num_local_tokens
=
None
,
factor
=
routed_scaling_factor
)
# else:
# else:
# ops.moe_sum(intermediate_cache3.view(*intermediate_cache3.size()),
# ops.moe_sum(intermediate_cache3.view(*intermediate_cache3.size()),
# out_hidden_states[begin_chunk_idx:end_chunk_idx])
# out_hidden_states[begin_chunk_idx:end_chunk_idx])
...
...
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