Skip to content

Commit

Permalink
[CI] Don't test apex (#6021)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshleifer committed Jul 24, 2020
1 parent a884b7f commit c69ea5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/seq2seq/test_bash_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def test_train_mbart_cc25_enro_script():
if CUDA_AVAILABLE:
gpus = 1 # torch.cuda.device_count()
else:
bash_script = bash_script.replace("--fp16", "")
gpus = 0

bash_script = bash_script.replace("--fp16", "")
testargs = (
["finetune.py"]
+ bash_script.split()
Expand Down
2 changes: 1 addition & 1 deletion examples/seq2seq/test_seq2seq_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"student_decoder_layers": 1,
"val_check_interval": 1.0,
"output_dir": "",
"fp16": CUDA_AVAILABLE,
"fp16": False, # TODO(SS): set this to CUDA_AVAILABLE if ci installs apex or start using native amp
"no_teacher": False,
"fp16_opt_level": "O1",
"gpus": 1 if CUDA_AVAILABLE else 0,
Expand Down

0 comments on commit c69ea5e

Please sign in to comment.