diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-13 23:50:59 -0600 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-13 23:50:59 -0600 |
| commit | 00cf667cee7ffacb144d5805fc7e0ef443f3583a (patch) | |
| tree | 77d20a3adaecf96bf3aff0612bdd3b5fa1a7dc7e /scripts/run_depth_scaling_cifar10.sbatch | |
| parent | c53c04aa1d6ff75cb478a9498c370baa929c74b6 (diff) | |
| parent | cd99d6b874d9d09b3bb87b8485cc787885af71f1 (diff) | |
Merge master into main
Diffstat (limited to 'scripts/run_depth_scaling_cifar10.sbatch')
| -rw-r--r-- | scripts/run_depth_scaling_cifar10.sbatch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/scripts/run_depth_scaling_cifar10.sbatch b/scripts/run_depth_scaling_cifar10.sbatch new file mode 100644 index 0000000..28fbf06 --- /dev/null +++ b/scripts/run_depth_scaling_cifar10.sbatch @@ -0,0 +1,56 @@ +#!/bin/bash +#SBATCH --job-name=snn_cifar10_depth +#SBATCH --account=bfqt-delta-gpu +#SBATCH --partition=gpuA40x4 +#SBATCH --nodes=1 +#SBATCH --ntasks=1 +#SBATCH --cpus-per-task=8 +#SBATCH --gpus-per-node=1 +#SBATCH --mem=32G +#SBATCH --time=48:00:00 +#SBATCH --output=runs/slurm_logs/%j_cifar10_depth.out +#SBATCH --error=runs/slurm_logs/%j_cifar10_depth.err + +# ============================================================ +# CIFAR-10 Depth Scaling Benchmark (Baseline) +# ============================================================ +# CIFAR-10 is easier (10 classes) - used as baseline comparison. +# +# Reference from literature: +# - Spiking VGG 7 layers: ~88% accuracy +# - Spiking VGG 13 layers: ~91.6% accuracy +# +# This experiment validates our implementation against known results. +# ============================================================ + +set -e + +PROJECT_DIR="/projects/bfqt/users/yurenh2/ml-projects/snn-training" +cd "$PROJECT_DIR" + +mkdir -p runs/slurm_logs data + +echo "============================================================" +echo "CIFAR-10 Depth Scaling Benchmark" +echo "Job ID: $SLURM_JOB_ID | Node: $SLURM_NODELIST" +echo "Start: $(date)" +echo "============================================================" +nvidia-smi --query-gpu=name,memory.total --format=csv,noheader +echo "============================================================" + +python files/experiments/depth_scaling_benchmark.py \ + --dataset cifar10 \ + --depths 4 8 12 16 \ + --T 4 \ + --epochs 100 \ + --batch_size 128 \ + --lr 0.001 \ + --lambda_reg 0.3 \ + --lambda_target -0.1 \ + --data_dir ./data \ + --out_dir runs/depth_scaling \ + --device cuda + +echo "============================================================" +echo "Finished: $(date)" +echo "============================================================" |
