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
dc027d74
Commit
dc027d74
authored
Feb 13, 2026
by
王敏
Browse files
[feat]支持glm4_moe_mtp使用torch compile,实现mtp cudagraph模式
parent
838b4509
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/model_executor/models/glm4_moe_mtp.py
vllm/model_executor/models/glm4_moe_mtp.py
+2
-0
No files found.
vllm/model_executor/models/glm4_moe_mtp.py
View file @
dc027d74
...
...
@@ -49,6 +49,7 @@ from .glm4_moe import (
get_spec_layer_idx_from_weight_name
,
)
from
.utils
import
maybe_prefix
from
vllm.compilation.decorators
import
support_torch_compile
class
SharedHead
(
nn
.
Module
):
...
...
@@ -184,6 +185,7 @@ class Glm4MoeMultiTokenPredictor(nn.Module):
return
logits
@
support_torch_compile
class
Glm4MoeMTP
(
nn
.
Module
,
Glm4MixtureOfExperts
):
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
super
().
__init__
()
...
...
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