-
Notifications
You must be signed in to change notification settings - Fork 2
/
trainNAT.sh
executable file
·63 lines (58 loc) · 1.64 KB
/
trainNAT.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
python train.py "data-bin/iwslt14_deen_jointdict" \
--arch cmlm_transformer_iwslt_en_de \
-s de \
-t en \
--optimizer adam \
--adam-betas '(0.9,0.98)' \
--criterion nat_loss \
--task translation_lev \
--label-smoothing 0.1 \
--noise random_mask \
--lr-scheduler inverse_sqrt \
--warmup-init-lr '1e-07' \
--lr 0.0005 \
--warmup-updates 10000 \
--dropout 0.3 \
--weight-decay 0.01 \
--decoder-learned-pos \
--encoder-learned-pos \
--apply-bert-init \
--share-all-embeddings \
--max-tokens 8192 \
--max-epoch 300 \
--fixed-validation-seed 7 \
--fp16 \
--save-dir ./results/checkpoints/IWSLTdeen_raw_CMLM_benchmark/ \
python InferenceIWSLT_valid.py IWSLTdeen_raw_CMLM_benchmark 80 300
python train.py "data-bin/iwslt14_deen_jointdict" \
--arch cmlm_transformer_iwslt_en_de \
-s de \
-t en \
--optimizer adam \
--adam-betas '(0.9,0.98)' \
--criterion nat_loss \
--task translation_lev \
--label-smoothing 0.1 \
--noise random_mask \
--lr-scheduler inverse_sqrt \
--warmup-init-lr '1e-07' \
--lr 0.0005 \
--warmup-updates 30000 \
--dropout 0.3 \
--weight-decay 0.01 \
--decoder-learned-pos \
--encoder-learned-pos \
--apply-bert-init \
--share-all-embeddings \
--max-tokens 8192 \
--max-epoch 300 \
--fixed-validation-seed 7 \
--fp16 \
--no-scale-embedding \
--insertCausalSelfAttn \
--concatPE \
--selfcorrection 0 \
--replacefactor 0.3 \
--save-dir ./results/checkpoints/IWSLTdeen_raw_CMLMC_L5D3_30k/ \
python InferenceIWSLT_valid.py IWSLTdeen_raw_CMLMC_L5D3_30k 150 300