[FLA] Introduce Kimi Delta Attention(KDA) to VLLM (#27654)

Signed-off-by: lizhiyuan <lizhiyuan@moonshot.cn>
This commit is contained in:
Zhiyuan Li
2025-10-28 22:56:28 +08:00
committed by GitHub
parent 05e034f085
commit e88bdd60d9
5 changed files with 1451 additions and 58 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ def chunk_gated_delta_rule_fwd(
g = chunk_local_cumsum(g, chunk_size=64, cu_seqlens=cu_seqlens)
# obtain WY representation. u is actually the new v.
A = chunk_scaled_dot_kkt_fwd(
k=k, beta=beta, g_cumsum=g, cu_seqlens=cu_seqlens, output_dtype=torch.float32
k=k, beta=beta, g=g, cu_seqlens=cu_seqlens, output_dtype=torch.float32
)
A = solve_tril(A=A, cu_seqlens=cu_seqlens, output_dtype=k.dtype)
w, u = recompute_w_u_fwd(