[Kimi-Linear] Remove duplicated code in kimi-linear (#17731)

This commit is contained in:
Yuan Luo
2026-01-26 14:20:24 +08:00
committed by GitHub
parent 7890a96f97
commit 1e8db18290

View File

@@ -340,7 +340,6 @@ class KimiDeltaAttention(nn.Module):
forget_gate = self.f_b_proj(self.f_a_proj(hidden_states)[0])[0]
beta = self.b_proj(hidden_states)[0].float()
# fused_kda_gate is fused to KimiLinearAttentionBackend with decode
beta = self.b_proj(hidden_states)[0].float()
if not forward_batch.forward_mode.is_decode():