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
13cdc021
Unverified
Commit
13cdc021
authored
Oct 02, 2025
by
Matthew Bonanni
Committed by
GitHub
Oct 02, 2025
Browse files
Fix MTP with deepep_low_latency (#25904)
Signed-off-by:
Matthew Bonanni
<
mbonanni@redhat.com
>
parent
502640c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
vllm/model_executor/layers/fused_moe/layer.py
vllm/model_executor/layers/fused_moe/layer.py
+16
-2
No files found.
vllm/model_executor/layers/fused_moe/layer.py
View file @
13cdc021
...
...
@@ -1899,6 +1899,15 @@ class FusedMoE(CustomOp):
staged_hidden_states
.
copy_
(
hidden_states
,
non_blocking
=
True
)
staged_router_logits
.
copy_
(
router_logits
,
non_blocking
=
True
)
# If there are shared experts but we are not using a modular kernel,
# the shared experts must be called here
if
(
not
isinstance
(
self
.
quant_method
.
fused_experts
,
FusedMoEModularKernel
)
and
self
.
shared_experts
is
not
None
):
shared_output
=
self
.
shared_experts
(
staged_hidden_states
)
else
:
shared_output
=
None
# Matrix multiply.
final_hidden_states
=
self
.
quant_method
.
apply
(
layer
=
self
,
...
...
@@ -1922,8 +1931,13 @@ class FusedMoE(CustomOp):
logical_replica_count
=
self
.
logical_replica_count
,
)
assert
self
.
shared_experts
is
None
or
isinstance
(
final_hidden_states
,
tuple
)
if
shared_output
is
not
None
:
assert
not
isinstance
(
final_hidden_states
,
tuple
)
assert
self
.
shared_experts
is
not
None
final_hidden_states
=
(
shared_output
,
final_hidden_states
,
)
if
self
.
zero_expert_num
is
not
None
and
self
.
zero_expert_num
>
0
:
assert
isinstance
(
final_hidden_states
,
tuple
)
...
...
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