-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_training.sh
31 lines (26 loc) · 942 Bytes
/
setup_training.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
#!/bin/bash
#SBATCH --partition training
#SBATCH --gres gpu:3090:1
#SBATCH -o Experiment_2_5_all_relations.out
#SBATCH --job-name=Experiment_2_5_all_relations
#SBATCH --mail-type ALL
#SBATCH --mail-user xxx@student.xxx.de
export PYTHONUNBUFFERED='x'
# create venv
python -m venv env
source env/bin/activate
pip install --upgrade setuptools
pip install --no-cache-dir torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117
pip install pyg-lib torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.13.0+cu117.html
pip install torch-geometric -f https://data.pyg.org/whl/torch-1.13.0+cu111.html
pip install torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-1.13.0+cu117.html
pip install transformers
pip install torch-geometric-temporal
pip install torchmetrics
pip install notebook
pip install matplotlib
pip install pandas
# run training
srun python train.py
echo 'Finished'
exit 0