Remove boilerplate missed by #46820 (#46956)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-06-29 08:11:17 +08:00
committed by GitHub
parent 0472436541
commit 311ad689ad
6 changed files with 1 additions and 35 deletions
-1
View File
@@ -336,7 +336,6 @@ class DeepseekV32ForCausalLM(DeepseekV2ForCausalLM):
def set_moe_parameters(self):
# Same as the base, but keyed on the MoE block type rather than the
# decoder-layer type (DeepseekV32DecoderLayer is a plain nn.Module).
self.expert_weights = []
self.num_expert_groups = getattr(self.config, "n_group", 1)
self.moe_layers = []
self.moe_mlp_layers = []
-1
View File
@@ -175,7 +175,6 @@ class DeepseekV32MTP(nn.Module, DeepseekV2MixtureOfExperts):
self.set_moe_parameters()
def set_moe_parameters(self):
self.expert_weights = []
self.num_moe_layers = self.config.num_nextn_predict_layers
self.num_expert_groups = self.config.n_group
self.moe_layers = []