mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix tolerance for a bloom slow test (#17634)
This commit is contained in:
parent
120649bf3a
commit
d453ea6120
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user