-
Notifications
You must be signed in to change notification settings - Fork 27
/
run_test.sh
81 lines (66 loc) · 2.02 KB
/
run_test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/bash
SHELL_FOLDER=$(dirname $(readlink -f "$0"))
BZ_PER_DEVICE=${1:-32}
DTYPE=${2:-'fp32'}
export WORKSPACE=/home/leinao/lyon_test/gluon-nlp/scripts/bert
export DATA_DIR=/datasets/bert/mxnet/wiki_128_npy_part_0
export NODE1=10.11.0.2
export NODE2=10.11.0.3
export NODE3=10.11.0.4
export NODE4=10.11.0.5
export PORT=22
echo "BZ_PER_DEVICE >> ${BZ_PER_DEVICE}"
i=1
while [ $i -le 5 ]
do
rm -rf ckpt_dir
bash $SHELL_FOLDER/pretrain.sh bert_base ${BZ_PER_DEVICE} 200 0 1 $DTYPE ${i}
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Finished Test Case ${i}!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "
let i++
sleep 20s
done
i=1
while [ $i -le 5 ]
do
rm -rf ckpt_dir
bash $SHELL_FOLDER/pretrain.sh bert_base ${BZ_PER_DEVICE} 200 0,1 1 $DTYPE ${i}
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Finished Test Case ${i}!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "
let i++
sleep 20s
done
i=1
while [ $i -le 5 ]
do
rm -rf ckpt_dir
bash $SHELL_FOLDER/pretrain.sh bert_base ${BZ_PER_DEVICE} 200 0,1,2,3 1 $DTYPE ${i}
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Finished Test Case ${i}!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "
let i++
sleep 20s
done
i=1
while [ $i -le 5 ]
do
rm -rf ckpt_dir
bash $SHELL_FOLDER/pretrain.sh bert_base ${BZ_PER_DEVICE} 200 0,1,2,3,4,5,6,7 1 $DTYPE ${i}
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Finished Test Case ${i}!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "
let i++
sleep 20s
done
i=1
while [ $i -le 5 ]
do
rm -rf ckpt_dir
bash $SHELL_FOLDER/pretrain.sh bert_base ${BZ_PER_DEVICE} 200 0,1,2,3,4,5,6,7 2 $DTYPE ${i}
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Finished Test Case ${i}!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "
let i++
sleep 20s
done
i=1
while [ $i -le 5 ]
do
rm -rf ckpt_dir
bash $SHELL_FOLDER/pretrain.sh bert_base ${BZ_PER_DEVICE} 200 0,1,2,3,4,5,6,7 4 $DTYPE ${i}
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Finished Test Case ${i}!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "
let i++
sleep 20s
done