Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vchiley committed Jan 13, 2024
1 parent 054cf15 commit 4845113
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/models/layers/test_flash_triton_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ def gen_bias(attn_impl: str):
'rope_impl'] == 'hf'

# special case that (likely) fails due to numerics
if clip_qkv and (qk_ln or qk_gn) and using_hf_rope and attn_type == 'grouped_query_attention':
if clip_qkv and (
qk_ln or qk_gn
) and using_hf_rope and attn_type == 'grouped_query_attention':
assert allclose_helper(p.grad, tp.grad, atol=2.e-2, rtol=2.e-2)
else:
assert allclose_helper(p.grad, tp.grad)
Expand Down

0 comments on commit 4845113

Please sign in to comment.