[Bugfix] Fix Kimi-K2.5 NVFP4 checkpoints weight loading (#33876)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py
2026-02-05 18:29:54 +08:00
committed by GitHub
parent 59a5cb387a
commit a2522839d8
2 changed files with 15 additions and 5 deletions

View File

@@ -1485,7 +1485,7 @@ class DeepseekV2ForCausalLM(
param, "weight_loader", default_weight_loader
)
weight_loader(param, loaded_weight)
if not is_fusion_moe_shared_experts_layer:
if name is not None and not is_fusion_moe_shared_experts_layer:
loaded_params.add(name)
return loaded_params