Increase test tolerance for fast.layer_norm (#880)

This commit is contained in:
Angelos Katharopoulos 2024-03-22 12:10:27 -07:00 committed by GitHub
parent 9663c22fe9
commit fcda3a0e66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,7 +181,7 @@ class TestFast(mlx_tests.MLXTestCase):
return x return x
# Per dtype absolute tolerance # Per dtype absolute tolerance
tolerances = {mx.float32: 2e-6, mx.float16: 2e-3, mx.bfloat16: 2e-2} tolerances = {mx.float32: 3e-6, mx.float16: 3e-3, mx.bfloat16: 3e-2}
dtypes = [mx.float32, mx.float16, mx.bfloat16] dtypes = [mx.float32, mx.float16, mx.bfloat16]
epss = [1e-3, 1e-5] epss = [1e-3, 1e-5]