Skip to content

Commit 091c0bd

Browse files
committed
push new templates
1 parent 1cc53b7 commit 091c0bd

File tree

2 files changed

+49
-5
lines changed

2 files changed

+49
-5
lines changed

scripts/templates/generate_dataset.sh.j2

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
#!/bin/bash
2+
#SBATCH -c 16 # Number of cores (-c)
3+
#SBATCH -t 0-3:00 # Runtime in D-HH:MM, minimum of 10 minutes
4+
#SBATCH -p sapphire # Partition to submit to
5+
#SBATCH --mem=32000 # Memory pool for all cores (see also --mem-per-cpu)
6+
#SBATCH -o job_outputs/myoutput_%j.out # File to which STDOUT will be written, %j inserts jobid
7+
#SBATCH -e job_outputs/myerrors_%j.err # File to which STDERR will be written, %j inserts jobid
28

39
# Dataset generation script for {{ experiment_name }}
10+
mkdir -p job_outputs
11+
12+
# Load modules
13+
module load ncf/1.0.0-fasrc01
14+
module load miniconda3/py310_22.11.1-1-linux_x64-ncf
15+
module load cuda/12.2.0-fasrc01
16+
17+
# Activate conda env
18+
source ~/.bashrc
19+
conda activate ten
420

521
# DEFINE EXP ARGUMENTS
622
LIFTERS=({{ lifters | join(' ') }})

scripts/templates/train_etnn.sh.j2

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
#!/bin/bash
2+
#SBATCH -c 24 # Number of cores (-c)
3+
#SBATCH -t 0-70:00 # Runtime in D-HH:MM, minimum of 10 minutes
4+
#SBATCH -p gpu # Partition to submit to
5+
#SBATCH --gres=gpu:nvidia_a100-sxm4-80gb:1
6+
#SBATCH --mem=200000 # Memory pool for all cores (see also --mem-per-cpu)
7+
#SBATCH -o job_outputs/myoutput_%j.out # File to which STDOUT will be written, %j inserts jobid
8+
#SBATCH -e job_outputs/myerrors_%j.err # File to which STDERR will be written, %j inserts jobid
29

10+
# Load modules
11+
module load ncf/1.0.0-fasrc01
12+
module load miniconda3/py310_22.11.1-1-linux_x64-ncf
13+
module load cuda/12.2.0-fasrc01
14+
15+
# Activate conda env
16+
source ~/.bashrc
17+
conda activate ten
318
# Training script for {{ experiment_name }}
419

520
# DEFINE EXP ARGUMENTS
@@ -13,7 +28,7 @@ CONNECTIVITY="{{ connectivity }}"
1328
NUM_HIDDEN={{ num_hidden }}
1429

1530
# Constants
16-
EPOCHS=350
31+
EPOCHS=1000
1732
BATCH_SIZE=96
1833
WEIGHT_DECAY=1e-16
1934
MIN_LR=0
@@ -25,6 +40,10 @@ SPLITS="egnn"
2540
TARGET_NAMES_0=("alpha")
2641
TARGET_NAMES_1=("mu" "alpha" "homo" "lumo" "gap" "r2")
2742
TARGET_NAMES_2=("zpve" "U0" "U" "H" "G" "Cv")
43+
TARGET_NAMES_3=("mu" "alpha" "homo" "lumo" "gap" "r2" "zpve" "U0" "U" "H" "G" "Cv")
44+
TARGET_NAMES_4=("mu" "alpha" "homo" "lumo")
45+
TARGET_NAMES_5=("gap" "r2" "zpve" "U0")
46+
TARGET_NAMES_6=("U" "H" "G" "Cv")
2847

2948
# Check if an argument is provided; if not, use 0 as the default option
3049
OPTION=${1:-0}
@@ -40,8 +59,20 @@ case $OPTION in
4059
2)
4160
TARGET_NAMES=("${TARGET_NAMES_2[@]}")
4261
;;
62+
3)
63+
TARGET_NAMES=("${TARGET_NAMES_3[@]}")
64+
;;
65+
4)
66+
TARGET_NAMES=("${TARGET_NAMES_4[@]}")
67+
;;
68+
5)
69+
TARGET_NAMES=("${TARGET_NAMES_5[@]}")
70+
;;
71+
6)
72+
TARGET_NAMES=("${TARGET_NAMES_6[@]}")
73+
;;
4374
*)
44-
echo "Invalid option. Please provide 0, 1, or 2."
75+
echo "Invalid option. Please provide 0, 1, 2, 3, 4, 5, or 6."
4576
exit 1
4677
;;
4778
esac
@@ -79,9 +110,6 @@ do
79110
--run_name "${EXP_NAME} ${TARGET_NAME}" \
80111
{% if triangles_only == true %} --triangles_only {% endif %} \
81112
{% if use_geometry == false %} --no_geometry {% endif %} &
82-
83-
# Wait for 30 minutes before moving to the next iteration
84-
sleep 1800
85113
done
86114

87115
# Wait for all background jobs to finish

0 commit comments

Comments
 (0)