Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -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 = []
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user