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
2dff2e21
Unverified
Commit
2dff2e21
authored
Jul 31, 2025
by
Benjamin Chislett
Committed by
GitHub
Jul 31, 2025
Browse files
[Bugfix] Fix MTP weight loading (#21941)
parent
71470bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
vllm/model_executor/models/deepseek_mtp.py
vllm/model_executor/models/deepseek_mtp.py
+9
-0
No files found.
vllm/model_executor/models/deepseek_mtp.py
View file @
2dff2e21
...
...
@@ -182,6 +182,8 @@ class DeepSeekMTP(nn.Module, SupportsPP):
stacked_params_mapping
=
[
(
"gate_up_proj"
,
"gate_proj"
,
0
),
(
"gate_up_proj"
,
"up_proj"
,
1
),
(
"fused_qkv_a_proj"
,
"q_a_proj"
,
0
),
(
"fused_qkv_a_proj"
,
"kv_a_proj_with_mqa"
,
1
),
]
expert_params_mapping
=
FusedMoE
.
make_expert_params_mapping
(
...
...
@@ -212,6 +214,13 @@ class DeepSeekMTP(nn.Module, SupportsPP):
if
((
"mlp.experts."
in
name
)
and
name
not
in
params_dict
):
continue
name
=
name
.
replace
(
weight_name
,
param_name
)
# QKV fusion is optional, fall back to normal
# weight loading if it's not enabled
if
((
param_name
==
"fused_qkv_a_proj"
)
and
name
not
in
params_dict
):
continue
# Skip loading extra bias for GPTQ models.
if
name
.
endswith
(
".bias"
)
and
name
not
in
params_dict
:
continue
...
...
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