Skip to content

Commit

Permalink
fix tolerance for a bloom slow test (#17634)
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada committed Jun 14, 2022
1 parent 120649b commit d453ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/bloom/test_modeling_bloom.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def test_hidden_states_transformers(self):
}

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)

Expand Down

0 comments on commit d453ea6

Please sign in to comment.