mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 12:50:06 +06:00
Fix mt5 test on AMD devices (#38081)
This commit is contained in:
parent
5c85018072
commit
8ea72d12a2
@ -1121,4 +1121,4 @@ class MT5IntegrationTest(unittest.TestCase):
|
||||
mtf_score = -(labels.shape[-1] * loss.item())
|
||||
|
||||
EXPECTED_SCORE = -84.9127
|
||||
self.assertTrue(abs(mtf_score - EXPECTED_SCORE) < 1e-4)
|
||||
self.assertLess(abs(mtf_score - EXPECTED_SCORE), 2e-4)
|
||||
|
Loading…
Reference in New Issue
Block a user