Adding modeling.py file
Browse files- modeling.py +2 -2
modeling.py
CHANGED
|
@@ -38,8 +38,8 @@ class MoLM(PreTrainedModel):
|
|
| 38 |
|
| 39 |
# Number of experts
|
| 40 |
self.num_experts = config.num_experts
|
| 41 |
-
print(f"Number of experts: {self.num_experts}")
|
| 42 |
-
print(f"Expert configurations: {config.expert_configs}")
|
| 43 |
assert len(config.expert_configs) == self.num_experts, "Number of expert configurations must match num_experts in config."
|
| 44 |
self.expert_configs = config.expert_configs
|
| 45 |
|
|
|
|
| 38 |
|
| 39 |
# Number of experts
|
| 40 |
self.num_experts = config.num_experts
|
| 41 |
+
# print(f"Number of experts: {self.num_experts}")
|
| 42 |
+
# print(f"Expert configurations: {config.expert_configs}")
|
| 43 |
assert len(config.expert_configs) == self.num_experts, "Number of expert configurations must match num_experts in config."
|
| 44 |
self.expert_configs = config.expert_configs
|
| 45 |
|