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
51af08ac
Commit
51af08ac
authored
Oct 04, 2025
by
zhuwenwen
Browse files
update deepseek_v2.py
parent
cf360956
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+5
-5
No files found.
vllm/model_executor/models/deepseek_v2.py
View file @
51af08ac
...
...
@@ -1039,10 +1039,7 @@ class DeepseekV2ForCausalLM(nn.Module, SupportsPP, MixtureOfExperts):
if
is_pp_missing_parameter
(
name_mapped
,
self
):
continue
try
:
param
=
params_dict
[
name_mapped
]
except
Exception
as
e
:
continue
param
=
params_dict
[
name_mapped
]
# We should ask the weight loader to return success or not
# here since otherwise we may skip experts with other
# available replicas.
...
...
@@ -1076,7 +1073,10 @@ class DeepseekV2ForCausalLM(nn.Module, SupportsPP, MixtureOfExperts):
if
is_pp_missing_parameter
(
name
,
self
):
continue
param
=
params_dict
[
name
]
try
:
param
=
params_dict
[
name
]
except
Exception
as
e
:
continue
weight_loader
=
getattr
(
param
,
"weight_loader"
,
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
...
...
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