-
Notifications
You must be signed in to change notification settings - Fork 39
/
train.sh
executable file
·26 lines (26 loc) · 1.03 KB
/
train.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
CUDA_VISIBLE_DEVICES=1 \
python3 -u train.py --embed_dim 768 \
--ff_embed_dim 3072 \
--num_heads 12 \
--layers 12 \
--dropout 0.2 \
--train_data ./data/train.txt \
--dev_data ./data/dev.txt \
--vocab ./data/vocab.txt \
--min_occur_cnt 1 \
--batch_size 32 \
--warmup_steps 8000 \
--lr 0.5 \
--weight_decay 0 \
--smoothing 0.1 \
--max_len 300 \
--min_len 10 \
--world_size 1 \
--gpus 1 \
--start_rank 0 \
--MASTER_ADDR localhost \
--MASTER_PORT 28512 \
--print_every 100 \
--save_every 1000 \
--save_dir ckpt \
--backend nccl