fix tolerance for a bloom slow test (#17634)
This commit is contained in:
@@ -723,7 +723,7 @@ class BloomEmbeddingTest(unittest.TestCase):
|
||||
}
|
||||
|
||||
if cuda_available:
|
||||
self.assertEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item())
|
||||
self.assertAlmostEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item(), places=4)
|
||||
else:
|
||||
self.assertAlmostEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item(), places=3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user