Skip to content

Commit

Permalink
[FlexAttention] Update tolerance for failing test (pytorch#135035)
Browse files Browse the repository at this point in the history
Summary: Address: T198937061

Test Plan: buck2 test 'fbcode//mode/opt' fbcode//caffe2/test/inductor:flex_attention -- --exact 'caffe2/test/inductor:flex_attention - test_no_q_info_compile_False (caffe2.test.inductor.test_flex_attention.TestBlockMask)' --run-disabled

Differential Revision: D62137797

Pull Request resolved: pytorch#135035
Approved by: https://github.com/Chillee
  • Loading branch information
drisspg authored and pytorchmergebot committed Sep 3, 2024
1 parent e7731b3 commit 272f3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/inductor/test_flex_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ def causal_mask(b, h, q_idx, kv_idx):
*inputs, is_causal=True
)

torch.testing.assert_close(causal_mask_out, sdpa_mask_out, atol=1e-3, rtol=0.0)
torch.testing.assert_close(causal_mask_out, sdpa_mask_out, atol=5e-3, rtol=0.0)


common_utils.instantiate_parametrized_tests(TestFlexAttention)
Expand Down

0 comments on commit 272f3b9

Please sign in to comment.