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:
Zachary Mueller
2022-04-08 10:03:56 -04:00
committed by GitHub
parent ab229663b5
commit d57da99237
11 changed files with 414 additions and 22 deletions

View File

@@ -587,6 +587,7 @@ jobs:
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,sentencepiece,testing,torch-speech]
- run: pip install -r examples/pytorch/_tests_requirements.txt
- run: pip install git+https://github.com/huggingface/accelerate
- save_cache:
key: v0.4-torch_examples-{{ checksum "setup.py" }}
paths: