Update modeling_super_linear.py
Browse files353 unmodified lines354355356357358359360361362149 unmodified lines512513514512513515516517353 unmodified lines output = torch.sum(self.topk_gates.unsqueeze(2) * sparse_expert_outputs, dim=1)
load_balancing_loss = self.calculate_load_balancing_loss(self.gate_outputs, batch_size)
expert_probs = F.softmax(self.gate_outputs, dim=1) print(expert_probs.shape) if get_prob: expert_probs = F.softmax(self.gate_outputs, dim=1)149 unmodified lines else: out, self.moe_loss = self.moe(x)
print(out.shape)
if self.auto_regressive and self.max_horizon < self.inf_pred_len: #print("bitch")modeling_super_linear.py+3-2