Add tests for no_trainer and fix existing examples (#16656)
* Fixed some bugs involving saving during epochs * Added tests mimicking the existing examples tests * Added in json exporting to all `no_trainer` examples for consistency
This commit is contained in:
@@ -466,6 +466,7 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filters=None):
|
||||
# Example files are tested separately
|
||||
elif f.startswith("examples/pytorch"):
|
||||
test_files_to_run.append("examples/pytorch/test_pytorch_examples.py")
|
||||
test_files_to_run.append("examples/pytorch/test_accelerate_examples.py")
|
||||
elif f.startswith("examples/flax"):
|
||||
test_files_to_run.append("examples/flax/test_flax_examples.py")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user