forked from AI4PDLab/ProtRL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProtRL.sh
More file actions
56 lines (37 loc) · 1.15 KB
/
ProtRL.sh
File metadata and controls
56 lines (37 loc) · 1.15 KB
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 -l
##################
# slurm settings #
##################
# where to put stdout / stderr
#SBATCH --output=%j.out
#SBATCH --error=%j.err
#SBATCH --job-name=ProtRL
#SBATCH --time=24:00:00
#SBATCH --gres=gpu:a100:1
#SBATCH --partition=a100
#SBATCH --constraint=a100_80
set -e
set -u
set -o pipefail
source .env/bin/activate
label="4.2.1.1"
model_directory="AI4PD/ZymCTRL" # put the path to your local model or a Huggingface's repository (to be called with transformer's API)
max_iteration_num=30
echo RL for the enzyme class $label
for i in $(seq 0 $max_iteration_num);
do
echo Starting iteration $i
if [ $i != 0 ]; then
echo Train started
python train.py --iteration_num $i --label $label --model_dir $model_directory --max_iteration_num $max_iteration_num
fi
echo Sequence generation started
python seq_gen.py --iteration_num $i --label $label
echo dataset generation
python dataset_gen.py --iteration_num $i --label $label --model_dir $model_directory
python plot.py
done
###############
# end message #
###############
echo [$(date +"%Y-%m-%d %H:%M:%S")] finished on $(hostname)