forked from lkhphuc/pytorch-3d-point-cloud-generation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sbatch.sh
26 lines (23 loc) · 759 Bytes
/
sbatch.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
#!/bin/bash
#SBATCH --job-name="Sbatch Example"
#SBATCH --output=job_%j.out
#SBATCH --mail-type=ALL
#SBATCH [email protected]
#SBATCH --partition=teaching
#SBATCH --nodes=1
#SBATCH --gres=gpu:t4:1
#SBATCH --cpus-per-gpu=4
SCRIPT_NAME="Rosie Job Script For 3D Point Cloud Generation"
CONTAINER="/data/containers/msoe-pytorch-23.05-py3.sif"
PYTHON_FILE="train_stg1.py"
SCRIPT_ARGS="--model ORIG_STG1 --experiment adam_trueWD \
--endEpoch 1000 \
--chunkSize 100 --batchSize 100 \
--optim adam --trueWD 1e-4 --lr 5e-3 \
--gpu 1"
## SCRIPT
echo "SBATCH SCRIPT: ${SCRIPT_NAME}"
srun hostname; pwd; date;
pip install tensorboardX
srun singularity exec --nv -B /data:/data ${CONTAINER} python3 ${PYTHON_FILE} ${SCRIPT_ARGS}
echo "END: " $SCRIPT_NAME