Update modeling_super_linear.py
Browse files359 unmodified lines360361362363364363364365366367271 unmodified lines6396406416426426436441 unmodified line646647648650649650651359 unmodified lines self.topk_gates = F.softmax(self.topk_values, dim=1) batch_size = x.size(0) if x.shape[1] < 512: x = self.fourier_interp_dim1(x) '''if x.shape[1] < 512: x = self.fourier_interp_dim1(x)''' expert_outputs = torch.stack([self.experts[i](x) for i in range(self.num_experts)], dim=1)
topk_indices_expanded = topk_indices.unsqueeze(-1).expand(-1, -1, expert_outputs.size(2))271 unmodified lines # backbone expects (B, C, L) x_enc = inputs_embeds
if x_enc.shape[1] < 512:1 unmodified line #x_enc = self.fourier_interp_dim1(x_enc) pass
#self.backbone.inf_pred_len = 336
# backbone returns (B, pred_len, C) modeling_super_linear.py+2-4