-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain.bash
More file actions
24 lines (18 loc) · 841 Bytes
/
train.bash
File metadata and controls
24 lines (18 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash -l
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=16
#SBATCH --gres=gpu:1
#SBATCH --time=48:00:00
#SBATCH --account=plgevent-gpu-gh200
#SBATCH --partition=plgrid-gpu-gh200
#SBATCH --output=out/job-%j.out
#SBATCH --error=out/job-%j.err
CONFIG_DATASET="/net/scratch/hscra/plgrid/plgjeziorek/DVS_Filtering/configs/dataset/nimagenet.yaml"
DATASET_PATH="/net/storage/pr3/plgrid/plgg_dvs_phd/N-miniImageNet_filtered40000"
# IMPORTANT: load the modules for machine learning tasks and libraries
ml ML-bundle/24.06a
# create and activate the virtual environment
source /net/scratch/hscra/plgrid/plgjeziorek/dvs_fil/bin/activate
export SSL_CERT_FILE=/net/scratch/hscra/plgrid/plgjeziorek/dvs_fil/lib/python3.11/site-packages/certifi/cacert.pem
python train.py -cd "$CONFIG_DATASET" -d "$DATASET_PATH" -m "vit"