-
Notifications
You must be signed in to change notification settings - Fork 327
/
ds_block_large.sh
37 lines (35 loc) · 1.06 KB
/
ds_block_large.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
#! /bin/bash
script_path=$(realpath $BASH_SOURCE)
script_dir=$(dirname $script_path)
config_json="$script_dir/config_block_large.json"
gpt_options=" \
--block-lm \
--bert-prob 1.0 \
--avg-block-length 3 \
--experiment-name blocklm-large-blank \
--model-parallel-size ${MP_SIZE} \
--num-layers 24 \
--hidden-size 1024 \
--num-attention-heads 16 \
--seq-length 512 \
--max-position-embeddings 512 \
--save /root/data/checkpoints \
--train-iters 200000 \
--resume-dataloader \
--train-data bert-large \
--tokenizer-type BertWordPieceTokenizer \
--tokenizer-model-type bert-large-uncased \
--split 949,50,1 \
--distributed-backend nccl \
--lr-decay-style cosine \
--lr-decay-iters 160000 \
--lr-decay-ratio 0.05 \
--warmup .05 \
--checkpoint-activations \
--deepspeed-activation-checkpointing \
--fp16 \
"
gpt_options="${gpt_options}
--deepspeed \
--deepspeed_config ${config_json} \
"