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
48836525
Unverified
Commit
48836525
authored
Mar 28, 2018
by
Sergey Edunov
Committed by
GitHub
Mar 28, 2018
Browse files
Merge pull request #134 from hitvoice/master
Update training commands
parents
6268f20e
0a141e3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
data/README.md
data/README.md
+7
-4
No files found.
data/README.md
View file @
48836525
...
@@ -18,11 +18,12 @@ $ python preprocess.py --source-lang de --target-lang en \
...
@@ -18,11 +18,12 @@ $ 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
$ CUDA_VISIBLE_DEVICES=0 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 \
--label-smoothing 0.1 --force-anneal 200 \
--criterion label_smoothed_cross_entropy --label-smoothing 0.1 \
--lr-scheduler fixed --force-anneal 200 \
--arch fconv_iwslt_de_en --save-dir checkpoints/fconv
--arch fconv_iwslt_de_en --save-dir checkpoints/fconv
# Generate:
# Generate:
...
@@ -61,7 +62,8 @@ $ python preprocess.py --source-lang en --target-lang de \
...
@@ -61,7 +62,8 @@ $ python preprocess.py --source-lang en --target-lang de \
$ mkdir -p checkpoints/fconv_wmt_en_de
$ mkdir -p checkpoints/fconv_wmt_en_de
$ python train.py data-bin/wmt14_en_de \
$ python train.py data-bin/wmt14_en_de \
--lr 0.5 --clip-norm 0.1 --dropout 0.2 --max-tokens 4000 \
--lr 0.5 --clip-norm 0.1 --dropout 0.2 --max-tokens 4000 \
--label-smoothing 0.1 --force-anneal 50 \
--criterion label_smoothed_cross_entropy --label-smoothing 0.1 \
--lr-scheduler fixed --force-anneal 50 \
--arch fconv_wmt_en_de --save-dir checkpoints/fconv_wmt_en_de
--arch fconv_wmt_en_de --save-dir checkpoints/fconv_wmt_en_de
# Generate:
# Generate:
...
@@ -92,7 +94,8 @@ $ python preprocess.py --source-lang en --target-lang fr \
...
@@ -92,7 +94,8 @@ $ python preprocess.py --source-lang en --target-lang fr \
$ mkdir -p checkpoints/fconv_wmt_en_fr
$ mkdir -p checkpoints/fconv_wmt_en_fr
$ python train.py data-bin/wmt14_en_fr \
$ python train.py data-bin/wmt14_en_fr \
--lr 0.5 --clip-norm 0.1 --dropout 0.1 --max-tokens 3000 \
--lr 0.5 --clip-norm 0.1 --dropout 0.1 --max-tokens 3000 \
--label-smoothing 0.1 --force-anneal 50 \
--criterion label_smoothed_cross_entropy --label-smoothing 0.1 \
--lr-scheduler fixed --force-anneal 50 \
--arch fconv_wmt_en_fr --save-dir checkpoints/fconv_wmt_en_fr
--arch fconv_wmt_en_fr --save-dir checkpoints/fconv_wmt_en_fr
# Generate:
# Generate:
...
...
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