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:
ivarflakstad 2025-05-14 14:12:04 +02:00 committed by GitHub
parent fe918d13b9
commit 1b00966395
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):