-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_vanilla.sh
32 lines (31 loc) · 1.04 KB
/
train_vanilla.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
data_dir=wmt14_ende_bin
exp=vanilla
checkpoint_dir=checkpoints/$exp
plugin_path=convex-learning
nohup fairseq-train $data_dir \
--user-dir ${plugin_path} \
--fp16 \
--save-dir ${checkpoint_dir} \
--ddp-backend=legacy_ddp \
--task translation_lev \
--criterion nat_loss \
--arch nonautoregressive_transformer --left-pad-source --src-embedding-copy \
--noise full_mask \
--share-all-embeddings \
--optimizer adam --adam-betas '(0.9,0.98)' \
--lr 0.0005 --lr-scheduler inverse_sqrt \
--stop-min-lr '1e-09' --warmup-updates 10000 \
--warmup-init-lr '1e-07' --label-smoothing 0.1 \
--dropout 0.3 --weight-decay 0.01 \
--decoder-learned-pos \
--encoder-learned-pos \
--pred-length-offset \
--length-loss-factor 0.1 \
--apply-bert-init \
--log-format 'simple' --log-interval 100 \
--fixed-validation-seed 7 \
--max-tokens 8192 \
--update-freq 2 \
--save-interval-updates 10000 \
--keep-interval-updates 5 --keep-last-epochs 5 \
--max-update 300000 > logs/$exp.txt &