summaryrefslogtreecommitdiff
path: root/scripts/run_target_1.sbatch
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-01-13 23:49:05 -0600
committerYurenHao0426 <blackhao0426@gmail.com>2026-01-13 23:49:05 -0600
commitcd99d6b874d9d09b3bb87b8485cc787885af71f1 (patch)
tree59a233959932ca0e4f12f196275e07fcf443b33f /scripts/run_target_1.sbatch
init commit
Diffstat (limited to 'scripts/run_target_1.sbatch')
-rw-r--r--scripts/run_target_1.sbatch58
1 files changed, 58 insertions, 0 deletions
diff --git a/scripts/run_target_1.sbatch b/scripts/run_target_1.sbatch
new file mode 100644
index 0000000..ce6bc7d
--- /dev/null
+++ b/scripts/run_target_1.sbatch
@@ -0,0 +1,58 @@
+#!/bin/bash
+#SBATCH --job-name=snn_target1
+#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=64G
+#SBATCH --time=48:00:00
+#SBATCH --output=runs/slurm_logs/%j_target1.out
+#SBATCH --error=runs/slurm_logs/%j_target1.err
+
+# ============================================================
+# Experiment 2: Smarter Target (lambda_target=1.0)
+# ============================================================
+# Hypothesis: Targeting lambda=-0.1 (edge of chaos) is too aggressive
+# when the network naturally starts at lambda~2-3 (chaotic).
+#
+# With lambda_target=1.0:
+# - We aim to REDUCE chaos, not eliminate it
+# - Penalty: (lambda - 1.0)^2 is smaller when lambda~2
+# - Allows some chaos while preventing extreme instability
+# ============================================================
+
+set -e
+
+PROJECT_DIR="/projects/bfqt/users/yurenh2/ml-projects/snn-training"
+cd "$PROJECT_DIR"
+
+mkdir -p runs/slurm_logs data
+
+echo "============================================================"
+echo "SMARTER TARGET Experiment (lambda_target=1.0)"
+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 cifar100 \
+ --depths 4 8 12 16 \
+ --T 4 \
+ --epochs 150 \
+ --batch_size 128 \
+ --lr 0.001 \
+ --lambda_reg 0.1 \
+ --lambda_target 1.0 \
+ --reg_type squared \
+ --warmup_epochs 20 \
+ --data_dir ./data \
+ --out_dir runs/depth_scaling_target1 \
+ --device cuda
+
+echo "============================================================"
+echo "Finished: $(date)"
+echo "============================================================"