mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
higher tol
This commit is contained in:
parent
c384e4cbc6
commit
89d91a7c00
@ -572,7 +572,7 @@ class TestQuantized(mlx_tests.MLXTestCase):
|
|||||||
out_down = mm(params, x, wq)
|
out_down = mm(params, x, wq)
|
||||||
params[p][idx] += eps
|
params[p][idx] += eps
|
||||||
num_ds = (out_up - out_down) / (2 * eps)
|
num_ds = (out_up - out_down) / (2 * eps)
|
||||||
self.assertAlmostEqual(dparams[p][idx], num_ds, delta=1e-2)
|
self.assertAlmostEqual(dparams[p][idx], num_ds, delta=2e-2)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user