Update modeling_super_linear.py
Browse files354 unmodified lines355356357358359360361354 unmodified lines
load_balancing_loss = self.calculate_load_balancing_loss(self.gate_outputs, batch_size)
expert_probs = F.softmax(self.gate_outputs, dim=1) expert_probs = expert_probs[1,:] # Plot the expert probabilities import matplotlib.pyplot as pltmodeling_super_linear.py+1