-
Notifications
You must be signed in to change notification settings - Fork 2
/
task0-trm-aug.sh
41 lines (34 loc) · 1001 Bytes
/
task0-trm-aug.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
#!/bin/bash
gpu=0
data_dir=task0-data/out
ckpt_dir=checkpoints/sigmorphon20-task0
aug_dir=task0-data/aug
lang=$1
arch=transformer
seed=$2
model_copy=$3
lr=0.001
scheduler=warmupinvsqr
max_steps=24000
warmup=4000
beta2=0.98
label_smooth=0.1
total_eval=24000
bs=400
# transformer
layers=4
hs=1024
embed_dim=256
nb_heads=4
dropout=${4:-0.3}
CUDA_VISIBLE_DEVICES=$gpu python src/train.py \
--dataset sigmorphon17task1 \
--train $aug_dir/$lang.aug \
--dev $data_dir/$lang.dev \
--test $data_dir/$lang.tst \
--model $ckpt_dir/$arch/$lang/aug/$model_copy/model-$lang \
--embed_dim $embed_dim --src_hs $hs --trg_hs $hs --dropout $dropout --nb_heads $nb_heads \
--label_smooth $label_smooth --total_eval $total_eval \
--src_layer $layers --trg_layer $layers --max_norm 1 --lr $lr --shuffle \
--arch $arch --gpuid 0 --estop 1e-8 --bs $bs --max_steps $max_steps \
--scheduler $scheduler --warmup_steps $warmup --cleanup_anyway --beta2 $beta2 --bestacc --seed $seed