-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_slurm.sh
More file actions
executable file
·23 lines (19 loc) · 854 Bytes
/
run_slurm.sh
File metadata and controls
executable file
·23 lines (19 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#SBATCH --gres=gpu:1
#SBATCH --partition gpgpuC
#SBATCH --mail-type=ALL # required to send email notifcations
#SBATCH --mail-user=kdb19 # required to send email notifcations - please replace 'your_username' with your college login name or email address
# script to run the training on the Imperial DoC Slurm Cluster (necessary for Longformer for larger GPUs)
configName=$1
trainData=$2
evalData=$3
echo "Config " $configName
echo "Train Data " $trainData
echo "Eval Data " $evalData
source /homes/${USER}/.bashrc
conda activate dissertation
source /vol/cuda/11.0.3-cudnn8.0.5.39/setup.sh
/usr/bin/nvidia-smi
cd /vol/bitbucket/${USER}/document-classification-transformers
#Add the path to your python script below, making sure the file exists, and any other commands
python main.py --config $configName --eval $evalData --train $trainData