-
Notifications
You must be signed in to change notification settings - Fork 19
/
train.sh
21 lines (21 loc) · 835 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
python3 train.py --embed_dim 768 \
--ff_embed_dim 3072 \
--num_heads 12 \
--layers 12 \
--dropout 0.1 \
--train_data data/toy\
--vocab data/toy_vocab\
--min_occur_cnt 50\
--batch_size 64\
--warmup_steps 10000\
--lr 1e-4\
--max_len 128\
--world_size 8\
--gpus 8\
--MASTER_ADDR localhost\
--MASTER_PORT 29556\
--start_rank 0\
--print_every 100\
--save_every 10000\
--save_dir ckpt\
--backend nccl