-
Notifications
You must be signed in to change notification settings - Fork 0
/
startTraining.sh
75 lines (61 loc) · 2 KB
/
startTraining.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
echo "######### START TRAINING SCRIPT #########"
echo ''' ____ __ _ _ _
/ __ \ / _(_) | | |
| | | |_ _____ _ __| |_ _| |_| |_ ___ _ __
| | | \ \ / / _ \ `__| _| | __| __/ _ \ `__|
| |__| |\ V / __/ | | | | | |_| || __/ |
\____/ \_/ \___|_| |_| |_|\__|\__\___|_|
'''
echo ''
echo ''
# wait for 2 seconds
sleep 2
if [ -f 11_createDataset.py ]; then
echo "⏳ --> Start createDataset.py..."
python3 11_createDataset.py
echo "✅ --> Dataset createt!"
else
echo "❌ --> Could not find 11_createDataset.py!"
fi
echo ''
echo ''
#### Start training 21_GPT2_TrainingLoop.py ####
# wait for 2 seconds
sleep 2
if [ -f 21_GPT2_TrainingLoop.py ]; then
echo "⏳ --> Starting training 21_GPT2_TrainingLoop.py..."
echo "writing logfiles to log.txt"
python3 21_GPT2_TrainingLoop.py >> log.txt
echo "✅ --> Training 21_GPT2_TrainingLoop.py finished!"
else
echo "❌ --> Could not find 21_GPT2_TrainingLoop.py!"
fi
echo ''
echo ''
#### Start training 21_GPT2_TrainingLoopRap.py ####
# wait for 2 seconds
sleep 2
if [ -f 21_GPT2_TrainingLoopRap.py ]; then
echo "⏳ --> Starting training 21_GPT2_TrainingLoopRap.py..."
echo "writing logfiles to log.txt"
python3 21_GPT2_TrainingLoopRap.py >> log.txt
echo "✅ --> Training 21_GPT2_TrainingLoopRap.py finished!"
else
echo "❌ --> Could not find 21_GPT2_TrainingLoopRap.py!"
fi
echo ''
echo ''
#### Start training 21_GPT2_TrainingLoop.py ####
# wait for 2 seconds
sleep 2
if [ -f 21_GPT2_TrainingLoopTop.py ]; then
echo "⏳ --> Starting training 21_GPT2_TrainingLoopTop.py..."
echo "writing logfiles to log.txt"
python3 21_GPT2_TrainingLoopTop.py >> log.txt
echo "✅ --> Training 21_GPT2_TrainingLoopTop.py finished!"
else
echo "❌ --> Could not find 21_GPT2_TrainingLoopTop.py!"
fi
echo ''
echo ''
echo "######### Training finished! #########"