Skip to content

Commit

Permalink
Change thresh in test (huggingface#27378)
Browse files Browse the repository at this point in the history
Change thresh
  • Loading branch information
muellerzr authored Nov 9, 2023
1 parent 085ea7e commit e9adb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pytorch/test_accelerate_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_run_ner_no_trainer(self):
run_command(self._launch_args + testargs)
result = get_results(tmp_dir)
self.assertGreaterEqual(result["eval_accuracy"], 0.75)
self.assertLess(result["train_loss"], 0.5)
self.assertLess(result["train_loss"], 0.6)
self.assertTrue(os.path.exists(os.path.join(tmp_dir, "epoch_0")))
self.assertTrue(os.path.exists(os.path.join(tmp_dir, "ner_no_trainer")))

Expand Down

0 comments on commit e9adb0c

Please sign in to comment.