We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 126570f commit e9d3b66Copy full SHA for e9d3b66
1 file changed
tests/gpu/torch/quantization/test_hadamard.py
@@ -43,7 +43,7 @@ def test_hadamard_transform(dim):
43
assert torch.allclose(xxt_h, xxt, atol=0.05)
44
x_h_fp32 = normalized_hadamard_transform(x, rotate_fp32=True)
45
xxt_h_fp32 = x_h_fp32 @ x_h_fp32.T
46
- assert torch.allclose(xxt_h_fp32, xxt, atol=0.001)
+ assert torch.allclose(xxt_h_fp32, xxt, atol=0.05)
47
48
49
@pytest.mark.parametrize(
@@ -83,6 +83,6 @@ def test_kv_rotate(rotate_fp32):
83
},
84
):
85
output_test1 = model(dummy_input)
86
- assert not torch.allclose(output_ref, output_test1, atol=0.001)
+ assert not torch.allclose(output_ref, output_test1, atol=0.05)
87
88
mtq.unregister(SDPAAttention)
0 commit comments