-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinference_batch.sh
30 lines (23 loc) · 1008 Bytes
/
inference_batch.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
#!/bin/bash
#SBATCH --job-name=matching-array
#SBATCH --account=st-benbr-1-gpu
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem=32G
#SBATCH --time=1:00:00
#SBATCH --gpus-per-node=1
#SBATCH --output=outputs/inference_out_%A_%a.txt
#SBATCH --error=outputs/inference_err_%A_%a.txt
#SBATCH [email protected]
#SBATCH --mail-type=ALL
module load gcc/9.4.0 python/3.8.10 py-virtualenv/16.7.6
module load http_proxy
source ~/matching/bin/activate
cd $SLURM_SUBMIT_DIR
classifier=classifier_checkpoints.txt
vae=vae_checkpoints.txt
checkpoint_classifier=results/checkpoints/CLASSIFIERGEXADT$SLURM_ARRAY_TASK_ID-v1.ckpt
checkpoint_vae=results/checkpoints/VAEGEXADT$SLURM_ARRAY_TASK_ID-v1.ckpt
python3 inference.py --checkpoint=$checkpoint_classifier --dataset=GEXADT
python3 inference.py --checkpoint=$checkpoint_vae --dataset=GEXADT