Update modeling_super_linear.py
Browse files353 unmodified lines354355356357358359149 unmodified lines509510511512513514515516353 unmodified linesoutput = 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)if get_prob:expert_probs = F.softmax(self.gate_outputs, dim=1)149 unmodified lineselse:out, self.moe_loss = self.moe(x)print(out.shape)if self.auto_regressive and self.max_horizon < self.inf_pred_len:#print("bitch")353 unmodified lines354355356357358359360361362149 unmodified lines512513514515516517353 unmodified linesoutput = 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 lineselse:out, self.moe_loss = self.moe(x)if self.auto_regressive and self.max_horizon < self.inf_pred_len:#print("bitch")
modeling_super_linear.py+3-2