-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit_job.sh
33 lines (25 loc) · 875 Bytes
/
submit_job.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
#!/bin/bash
#SBATCH --nodes 1
#SBATCH --gpus-per-node=v100:1 # request a GPU
#SBATCH --tasks-per-node=1
#SBATCH --cpus-per-task=8 # change this parameter to 2,4,6,... and increase "--num_workers" accordingly to see the effect on performance
#SBATCH --mem=75G
#SBATCH --time=14:00:00
#SBATCH --output=compute_canada_output/%j.out
#SBATCH --account=def-dclausi
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
#SBATCH --mail-type=REQUEUE
module purge
module load python/3.9.6
echo "Loading module done"
source ~/env7_ai4arctic/bin/activate
echo "Activating virtual environment done"
#cd /project/def-dclausi/share/whale/mmwhale/
cd $HOME/projects/def-dclausi/AI4arctic/$USER
echo "starting training..."
export WANDB_MODE=offline
python quickstart.py $1
python test_upload.py $1 $CHECKPOINT