Skip to content

Commit

Permalink
Fix copy-paste error in hopper tests (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesvant authored Oct 15, 2024
1 parent a5a7527 commit c1d146c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hopper/test_flash_attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,4 +536,4 @@ def _gen_unused_masks(padding_mask, add_unused, max_seq_len, bs, device):
if d <= 128:
assert (dq - dq_ref).abs().max().item() < 1e-4 or (dq - dq_ref).abs().max().item() <= 3 * (dq_pt - dq_ref).abs().max().item()
assert (dk - dk_ref).abs().max().item() < 1e-4 or (dk - dk_ref).abs().max().item() <= 3 * (dk_pt - dk_ref).abs().max().item()
assert (dk - dk_ref).abs().max().item() < 1e-4 or (dv - dv_ref).abs().max().item() <= 3 * (dv_pt - dv_ref).abs().max().item()
assert (dv - dv_ref).abs().max().item() < 1e-4 or (dv - dv_ref).abs().max().item() <= 3 * (dv_pt - dv_ref).abs().max().item()

0 comments on commit c1d146c

Please sign in to comment.