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
OpenDAS
Fairseq
Commits
0a141e3f
Unverified
Commit
0a141e3f
authored
Mar 29, 2018
by
Runqi Yang
Committed by
GitHub
Mar 29, 2018
Browse files
Update training command for IWSLT14
specify a single GPU setup for IWSLT14
parent
435ed351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
data/README.md
data/README.md
+2
-2
No files found.
data/README.md
View file @
0a141e3f
...
@@ -18,9 +18,9 @@ $ python preprocess.py --source-lang de --target-lang en \
...
@@ -18,9 +18,9 @@ $ python preprocess.py --source-lang de --target-lang en \
--trainpref $TEXT/train --validpref $TEXT/valid --testpref $TEXT/test \
--trainpref $TEXT/train --validpref $TEXT/valid --testpref $TEXT/test \
--destdir data-bin/iwslt14.tokenized.de-en
--destdir data-bin/iwslt14.tokenized.de-en
# Train the model:
# Train the model
(better for a single GPU setup)
:
$ mkdir -p checkpoints/fconv
$ mkdir -p checkpoints/fconv
$ python train.py data-bin/iwslt14.tokenized.de-en \
$
CUDA_VISIBLE_DEVICES=0
python train.py data-bin/iwslt14.tokenized.de-en \
--lr 0.25 --clip-norm 0.1 --dropout 0.2 --max-tokens 4000 \
--lr 0.25 --clip-norm 0.1 --dropout 0.2 --max-tokens 4000 \
--criterion label_smoothed_cross_entropy --label-smoothing 0.1 \
--criterion label_smoothed_cross_entropy --label-smoothing 0.1 \
--lr-scheduler fixed --force-anneal 200 \
--lr-scheduler fixed --force-anneal 200 \
...
...
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