-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.slurm
More file actions
38 lines (31 loc) · 1.09 KB
/
test.slurm
File metadata and controls
38 lines (31 loc) · 1.09 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#SBATCH --job-name=vision_only_test
#SBATCH --output=logs/test_%j.out
#SBATCH --error=logs/test_%j.err
#SBATCH --time=00:15:00
#SBATCH --partition=gpu
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=2
#SBATCH --mem=8G
# ============================================================
# Smoke-test Branch A end-to-end. Run after setup_env.slurm.
#
# sbatch test.slurm
#
# Verifies model shapes, loss invariants, dataset loading,
# Umeyama alignment, gram-schmidt, and a forward+backward step.
# Uses a tiny synthetic dataset generated in /tmp on the node.
# ============================================================
set -euo pipefail
if command -v module >/dev/null 2>&1; then
module purge || true
module load python/3.10 || module load python/3.11 || module load python || true
module load cuda/12.1 || module load cuda/11.8 || module load cuda || true
fi
PROJECT_DIR="${SLURM_SUBMIT_DIR:-$(pwd)}"
VENV_DIR="${VENV_DIR:-${PROJECT_DIR}/.venv}"
mkdir -p "${PROJECT_DIR}/logs"
# shellcheck disable=SC1091
source "${VENV_DIR}/bin/activate"
cd "${PROJECT_DIR}"
python test_pipeline.py