From 215acff518eea2d6d8a5bd7c90c398f49cc3b41b Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Tue, 21 Jul 2026 06:38:55 -0500 Subject: chore: capture initial SDIL project state --- experiments/run_v2.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 experiments/run_v2.sh (limited to 'experiments/run_v2.sh') diff --git a/experiments/run_v2.sh b/experiments/run_v2.sh new file mode 100644 index 0000000..1027ed7 --- /dev/null +++ b/experiments/run_v2.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# Corrected sweep (sigma-scale fixed). Mode-specific LR. +# Usage: bash run_v2.sh "" "" +set -u; cd "$(dirname "$0")/.." +PY=/home/yurenh2/miniconda3/envs/ep_pascal/bin/python3 +export OMP_NUM_THREADS=2 +DS="$1"; DEPTHS="$2"; RES="$3"; ACT="$4"; SEEDS="$5"; EP="$6"; PFX="$7" +OUT=results; LOGS=logs/v2; mkdir -p "$OUT" "$LOGS"; PROG="$LOGS/progress.txt" +echo "=== v2 $(date) ds=$DS depths=[$DEPTHS] res=$RES act=$ACT seeds=[$SEEDS] ===" >> "$PROG" +run(){ local tag="$1"; shift; [ -f "$OUT/$tag.json" ] && { echo "skip $tag">>"$PROG"; return; } + echo ">>> $tag $(date +%H:%M:%S)">>"$PROG" + $PY experiments/run.py --tag "$tag" --outdir "$OUT" "$@" > "$LOGS/$tag.log" 2>&1 \ + && grep -h DONE "$LOGS/$tag.log">>"$PROG" || echo "FAIL $tag">>"$PROG"; } +for s in $SEEDS; do for d in $DEPTHS; do + run "${PFX}_${DS}_bp_d${d}_s${s}" --mode bp --dataset $DS --depth $d --width 256 --act $ACT --residual $RES --epochs $EP --seed $s --eta 0.05 + run "${PFX}_${DS}_dfa_d${d}_s${s}" --mode dfa --dataset $DS --depth $d --width 256 --act $ACT --residual $RES --epochs $EP --seed $s --eta 0.05 + run "${PFX}_${DS}_sdil_d${d}_s${s}" --mode sdil --dataset $DS --depth $d --width 256 --act $ACT --residual $RES --epochs $EP --seed $s --eta 0.02 --eta_A 0.02 --pert_ndirs 8 +done; done +echo "=== v2 done $(date) ===" >> "$PROG" -- cgit v1.2.3