Commit b79e20fe authored by zhuwenwen's avatar zhuwenwen
Browse files

skip load index weights error

parent 4b26fd42
...@@ -1428,7 +1428,11 @@ class DeepseekV2ForCausalLM(nn.Module, SupportsPP, MixtureOfExperts, ...@@ -1428,7 +1428,11 @@ class DeepseekV2ForCausalLM(nn.Module, SupportsPP, MixtureOfExperts,
if is_pp_missing_parameter(name, self): if is_pp_missing_parameter(name, self):
continue continue
param = params_dict[name] try:
param = params_dict[name]
except Exception as e:
print("params_dict[name] error in name:", name)
continue
weight_loader = getattr(param, "weight_loader", weight_loader = getattr(param, "weight_loader",
default_weight_loader) default_weight_loader)
weight_loader(param, loaded_weight) weight_loader(param, loaded_weight)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment