Skip to content

Commit

Permalink
Fix PoliCheck (microsoft#18180)
Browse files Browse the repository at this point in the history
Fix PoliCheck by changing some words, which was from Triton flash
attention's original code.
  • Loading branch information
centwang authored Oct 31, 2023
1 parent 08dce54 commit 1c25fe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def _bwd_kernel_one_col_block(
dk = tl.zeros([BLOCK_N, BLOCK_HEADDIM], dtype=tl.float32)
# There seems to be some problem with Triton pipelining that makes results wrong for
# headdim=64, seqlen=(113, 255), bias_type='matrix'. In this case the for loop
# may have zero step, and pipelining with the bias matrix could screw it up.
# may have zero step, and pipelining with the bias matrix could cause the problem.
# So we just exit early.
if begin_m >= seqlen_q:
dv_ptrs = DV + (offs_n[:, None] * stride_dvn + offs_d[None, :])
Expand Down

0 comments on commit 1c25fe5

Please sign in to comment.