[Bugfix][GDN] Fix CuteDSL BF16 KKT inversion divergence (#53864)

Signed-off-by: Zoe923 <871844693@qq.com>
This commit is contained in:
Zoe923
2026-09-17 08:49:56 -07:00
committed by GitHub
parent 493d4b3c04
commit 6a7de3ba3a
2 changed files with 85 additions and 2 deletions
@@ -573,8 +573,8 @@ class Sm100ChunkUWKernel:
for i in cutlass.range_constexpr(4):
M[i] = _bf16x2_sub(_bf16x2_neg(eye[i]), M[i])
# 3 rounds of Newton-Schulz
for _ in cutlass.range_constexpr(3):
# The fourth round keeps correlated-key KKT blocks stable in BF16.
for _ in cutlass.range_constexpr(4):
# First MMA: -AiM = Ai @ (-M)
cute.copy(stsm_atom, Ai_bf16, sA_ldsm[None, (warp_id_, warp_id_)])
cute.arch.sync_warp()