[Examples] Fixes inconsistency around eval vs val and predict vs test (#11380)

* added changes for uniformity

* modified files

* corrected typo

* fixed qa scripts

* fix typos

* fixed predict typo in qa no trainer

* fixed test file

* reverted trainer changes

* reverted trainer changes in custom exmaples

* updated readme

* added changes in deepspeed test

* added changes for predict and eval
This commit is contained in:
Bhadresh Savani
2021-04-26 17:24:31 +01:00
committed by GitHub
parent 7959d83599
commit 1d30ec95c7
19 changed files with 288 additions and 276 deletions

View File

@@ -578,7 +578,7 @@ class TestDeepSpeedWithLauncher(TestCasePlus):
args.extend(
"""
--do_eval
--max_val_samples 100
--max_eval_samples 100
--per_device_eval_batch_size 2
""".split()
)
@@ -620,7 +620,7 @@ class TestDeepSpeedWithLauncher(TestCasePlus):
--do_train
--do_eval
--max_train_samples 10
--max_val_samples 10
--max_eval_samples 10
--per_device_train_batch_size 5
--per_device_eval_batch_size 5
--num_train_epochs 1

View File

@@ -191,7 +191,7 @@ class TestTrainerExt(TestCasePlus):
--output_dir {output_dir}
--overwrite_output_dir
--max_train_samples 8
--max_val_samples 8
--max_eval_samples 8
--max_source_length {max_len}
--max_target_length {max_len}
--val_max_target_length {max_len}