Skip to content

Commit

Permalink
Update test_rotary_emb_internlm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzefeng92 authored Mar 28, 2024
1 parent f0eed5a commit 66d561a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_rotary_emb_internlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def RotaryEmbTestFloat16() -> bool:
)
res2 = ext.apply_rotary(input1, cos, sin, interleaved=interleaved, inplace=inplace)

# there is a little calculated error with ascend
# there is a little calculated error with ascend when dtype is float16
return torch.allclose(res1, res2, atol=1e-2, rtol=1e-3)

def RotaryEmbTestFloat32() -> bool:
Expand Down

0 comments on commit 66d561a

Please sign in to comment.