-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·56 lines (53 loc) · 1.27 KB
/
run.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
#!/bin/bash
if [[ $1 == 'train' ]]; then
echo 'Run training...'
python train.py \
--cuda \
--data /datadrive/$2 \
--dataset $2 \
--model_size $3 \
--n_ctx 1024 \
--dropout 0.0 \
--dropatt 0.0 \
--optim adam \
--clip 1.0 \
--batch_size 512 \
--mini_batch_size 8 \
--warmup_step 500 \
--max_step 250000 \
--n_gpus $4 \
--eval_batch_size 2 \
--max_eval_steps 2 \
--max_epoch 10000 \
--local \
--note $5 \
--eval_interval $6 \
--limit_train_batches $7
elif [[ $1 == 'ft' ]]; then
echo 'Run fine-tuning...'
python train.py \
--cuda \
--data /datadrive/$2 \
--dataset $2 \
--model_size $3 \
--n_ctx 1024 \
--dropout 0.0 \
--dropatt 0.0 \
--optim adam \
--clip 1.0 \
--batch_size 512 \
--mini_batch_size 8 \
--warmup_step 50 \
--max_step 2000 \
--n_gpus $4 \
--eval_batch_size 2 \
--max_eval_steps 2 \
--max_epoch 100 \
--local \
--finetune 1 \
--note $5 \
--eval_interval $6 \
--limit_train_batches $7
else
echo 'unknown argment 1'
fi