mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 12:50:06 +06:00
Fix auto batch size finder test (#38125)
Ensure --auto_find_batch_size is the last test arg so indexing is correct
This commit is contained in:
parent
fe918d13b9
commit
1b00966395
@ -3300,8 +3300,8 @@ class TrainerIntegrationTest(TestCasePlus, TrainerIntegrationCommon):
|
||||
--learning_rate 2e-5
|
||||
--num_train_epochs 1
|
||||
--output_dir {tmpdir}
|
||||
--auto_find_batch_size 0
|
||||
--report_to none
|
||||
--auto_find_batch_size 0
|
||||
""".split()
|
||||
with self.assertRaises(RuntimeError):
|
||||
with patch.object(sys, "argv", testargs):
|
||||
|
Loading…
Reference in New Issue
Block a user