forked from nilshof01/SeqLP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain_test.sh
More file actions
63 lines (53 loc) · 2.16 KB
/
train_test.sh
File metadata and controls
63 lines (53 loc) · 2.16 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
57
58
59
60
61
62
63
#!/bin/sh
### General options
### –- specify queue --
#BSUB -q gpuv100
### -- set the job Name --
#BSUB -J initial_run
### -- ask for number of cores (default: 1) --
#BSUB -n 4
### -- Select the resources: 1 gpu in exclusive process mode --
#BSUB -gpu "num=1:mode=exclusive_process"
### -- set walltime limit: hh:mm -- maximum 24 hours for GPU-queues right now
#BSUB -W 1:00
# request 5GB of system-memory
#BSUB -R "rusage[mem=2GB]"
### -- set the email address --
#BSUB -u jobs.nilshof@outlook.de
### -- send notification at start --
#BSUB -B
### -- send notification at completion--
#BSUB -N
### -- Specify the output and error file. %J is the job-id --
### -- -o and -e mean append, -oo and -eo mean overwrite --
#BSUB -o job_output/test.out
#BSUB -e job_error/test.err
# -- end of LSF options --
#####MODULES##### - they are all loaded in .bashrc for me
#module swap binutils/2.34
#module swap gcc/8.4.0
#module swap python3/3.8.2
#module swap openblas/0.3.9
#module swap cuda/11.8
#module swap cudnn/v8.6.0.163-prod-cuda-11.X
#module swap ffmpeg/4.2.2
#module swap numpy/1.18.2-python-3.8.2-openblas-0.3.9
#module swap pandas/1.0.3-python-3.8.2
#module swap scipy/1.4.1-python-3.8.2
#module load matplotlib/3.2.1-python-3.8.2
##################
####INPUTS#####
store_dir="/work3/s220672/NLP_train/test_train"
run_name="test"
command_script_dir="/zhome/20/8/175218/NLP_train"
max_sequence_num=1000
save_single_csv=False
extra_model_config="/zhome/20/8/175218/NLP_train/serious_train/model_config_esm_t6.json"
extra_train_config="/zhome/20/8/175218/NLP_train/serious_train/train_config.json"
use_existing_data=False
model_type="esm"
mlm_probability=0.15
max_length=150 # max length of sequences - will be padded to this
###############
script_filename="/zhome/20/8/175218/SeqLP/src/seqlp/__main__.py"
/zhome/20/8/175218/SeqLP/.venv/bin/python3 $script_filename --command_script_dir $command_script_dir --run_name $run_name --store_dir $store_dir --max_sequence_num $max_sequence_num --save_single_csv $save_single_csv --extra_model_config $extra_model_config --extra_train_config $extra_train_config --model_type $model_type --mlm_probability $mlm_probability --max_length $max_length