Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c69ea5ef
Unverified
Commit
c69ea5ef
authored
Jul 24, 2020
by
Sam Shleifer
Committed by
GitHub
Jul 24, 2020
Browse files
[CI] Don't test apex (#6021)
parent
a884b7fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
examples/seq2seq/test_bash_script.py
examples/seq2seq/test_bash_script.py
+1
-2
examples/seq2seq/test_seq2seq_examples.py
examples/seq2seq/test_seq2seq_examples.py
+1
-1
No files found.
examples/seq2seq/test_bash_script.py
View file @
c69ea5ef
...
@@ -55,9 +55,8 @@ def test_train_mbart_cc25_enro_script():
...
@@ -55,9 +55,8 @@ def test_train_mbart_cc25_enro_script():
if
CUDA_AVAILABLE
:
if
CUDA_AVAILABLE
:
gpus
=
1
# torch.cuda.device_count()
gpus
=
1
# torch.cuda.device_count()
else
:
else
:
bash_script
=
bash_script
.
replace
(
"--fp16"
,
""
)
gpus
=
0
gpus
=
0
bash_script
=
bash_script
.
replace
(
"--fp16"
,
""
)
testargs
=
(
testargs
=
(
[
"finetune.py"
]
[
"finetune.py"
]
+
bash_script
.
split
()
+
bash_script
.
split
()
...
...
examples/seq2seq/test_seq2seq_examples.py
View file @
c69ea5ef
...
@@ -43,7 +43,7 @@ CHEAP_ARGS = {
...
@@ -43,7 +43,7 @@ CHEAP_ARGS = {
"student_decoder_layers"
:
1
,
"student_decoder_layers"
:
1
,
"val_check_interval"
:
1.0
,
"val_check_interval"
:
1.0
,
"output_dir"
:
""
,
"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
,
"no_teacher"
:
False
,
"fp16_opt_level"
:
"O1"
,
"fp16_opt_level"
:
"O1"
,
"gpus"
:
1
if
CUDA_AVAILABLE
else
0
,
"gpus"
:
1
if
CUDA_AVAILABLE
else
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment