-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_sequential_train.py
57 lines (43 loc) · 1.36 KB
/
run_sequential_train.py
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
import os
import sys
import subprocess
def fine_tune_scheme(op):
tmp = {
'1': [
"sh -x ./run_ppl.sh usr_2step_fine_1M",
"sh -x ./run_ppl.sh usr_1M_1M",
"sh -x ./run_ppl.sh usr_2step_fine_500K",
"sh -x ./run_ppl.sh usr_1M_500K",
"sh -x ./run_ppl.sh usr_2step_fine_250K",
"sh -x ./run_ppl.sh usr_1M_250K",
"sh -x ./run_ppl.sh usr_2step_fine_200K",
"sh -x ./run_ppl.sh usr_1M_200K",
"sh -x ./run_ppl.sh usr_2step_fine_150K",
"sh -x ./run_ppl.sh usr_1M_150K",
"sh -x ./run_ppl.sh usr_2step_fine_100K",
"sh -x ./run_ppl.sh usr_1M_100K",
"sh -x ./run_ppl.sh usr_2step_fine_50K",
"sh -x ./run_ppl.sh usr_1M_50K",
],
'2':[
"sh -x ./run_2step_ft_250K_100K.sh 200000 200K",
"sh -x ./run_2step_ft_250K_100K.sh 150000 150K",
],
'3':[
"sh -x ./run_eval.sh",
"sh -x ./run_eval_tp.sh",
],
'4':[
"sh -x ./run_ppl.sh",
"sh -x ./run_eval.sh"
]
}
for cmd in tmp[op]:
print('-'*20)
print(cmd)
print('-'*20)
p = subprocess.Popen(cmd, shell=True)
p.wait()
print('\n'*2)
if __name__ == '__main__':
fine_tune_scheme(op=sys.argv[1])