Skip to content

Commit 292a478

Browse files
TimDettmersjustheuristic
authored andcommitted
set threshold
1 parent a07825a commit 292a478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def test_linear8bitlt_no_fp16_weights(threshold, memory_efficient_backward):
572572

573573
torch.testing.assert_allclose(b1.grad, grad_ref, rtol=0, atol=0.05 * scale)
574574
idx = torch.isclose(b1.grad, grad_ref, atol=0.01 * scale, rtol=0.1)
575-
assert (idx == 0).sum().item() <= b1.numel() * 0.0
575+
assert (idx == 0).sum().item() <= b1.numel() * 0.005
576576

577577

578578
def test_linear8bitlt_fp32_bias():

0 commit comments

Comments
 (0)