Fix mt5 test on AMD devices (#38081)

This commit is contained in:
ivarflakstad
2025-05-12 16:59:00 +02:00
committed by GitHub
parent 5c85018072
commit 8ea72d12a2

View File

@@ -1121,4 +1121,4 @@ class MT5IntegrationTest(unittest.TestCase):
mtf_score = -(labels.shape[-1] * loss.item()) mtf_score = -(labels.shape[-1] * loss.item())
EXPECTED_SCORE = -84.9127 EXPECTED_SCORE = -84.9127
self.assertTrue(abs(mtf_score - EXPECTED_SCORE) < 1e-4) self.assertLess(abs(mtf_score - EXPECTED_SCORE), 2e-4)