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
82c0bf76
"docs/getting_started/faq.md" did not exist on "12a59959ed3a78a50f9b48b0ec6ccd6c862b22b4"
Commit
82c0bf76
authored
Jan 20, 2026
by
王敏
Browse files
[fix]解决glm4 moe + mtp精度异常
parent
4d70732e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
vllm/model_executor/models/glm4_moe_mtp.py
vllm/model_executor/models/glm4_moe_mtp.py
+11
-4
No files found.
vllm/model_executor/models/glm4_moe_mtp.py
View file @
82c0bf76
...
...
@@ -215,10 +215,17 @@ class Glm4MoeMTP(nn.Module, SupportsPP):
params_dict
=
dict
(
self
.
named_parameters
())
loaded_params
:
set
[
str
]
=
set
()
for
name
,
loaded_weight
in
weights
:
if
name
==
"lm_head.weight"
:
spec_layer
=
self
.
model
.
mtp_start_layer_idx
name
=
f
"model.layers.
{
spec_layer
}
.shared_head.head.weight"
elif
name
==
"model.embed_tokens.weight"
:
spec_layer
=
self
.
model
.
mtp_start_layer_idx
else
:
spec_layer
=
get_spec_layer_idx_from_weight_name
(
self
.
config
,
name
)
if
spec_layer
is
None
:
continue
name
=
self
.
_rewrite_spec_layer_name
(
spec_layer
,
name
)
for
(
param_name
,
weight_name
,
shard_id
)
in
stacked_params_mapping
:
# Skip non-stacked layers and experts (experts handled below).
if
weight_name
not
in
name
:
...
...
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