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
a1cb6e98
Unverified
Commit
a1cb6e98
authored
Dec 23, 2020
by
Sylvain Gugger
Committed by
GitHub
Dec 23, 2020
Browse files
Adapt to new name of `label_smoothing_factor` training arg (#9282)
parent
bcc87c63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
examples/seq2seq/test_finetune_trainer.py
examples/seq2seq/test_finetune_trainer.py
+1
-1
examples/seq2seq/train_distil_marian_enro.sh
examples/seq2seq/train_distil_marian_enro.sh
+1
-1
examples/seq2seq/train_distil_marian_enro_tpu.sh
examples/seq2seq/train_distil_marian_enro_tpu.sh
+1
-1
No files found.
examples/seq2seq/test_finetune_trainer.py
View file @
a1cb6e98
...
...
@@ -153,7 +153,7 @@ class TestFinetuneTrainer(TestCasePlus):
--save_steps
{
str
(
eval_steps
)
}
--eval_steps
{
str
(
eval_steps
)
}
--sortish_sampler
--label_smoothing 0.1
--label_smoothing
_factor
0.1
--adafactor
--task translation
--tgt_lang ro_RO
...
...
examples/seq2seq/train_distil_marian_enro.sh
View file @
a1cb6e98
...
...
@@ -34,5 +34,5 @@ python finetune_trainer.py \
--do_train
--do_eval
--do_predict
\
--evaluation_strategy
steps
\
--predict_with_generate
--logging_first_step
\
--task
translation
--label_smoothing
0.1
\
--task
translation
--label_smoothing
_factor
0.1
\
"
$@
"
examples/seq2seq/train_distil_marian_enro_tpu.sh
View file @
a1cb6e98
...
...
@@ -35,5 +35,5 @@ python xla_spawn.py --num_cores $TPU_NUM_CORES \
--do_train
--do_eval
\
--evaluation_strategy
steps
\
--prediction_loss_only
\
--task
translation
--label_smoothing
0.1
\
--task
translation
--label_smoothing
_factor
0.1
\
"
$@
"
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