File size: 1,324 Bytes
e71731f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash
# Label-efficiency sweep (scripts/label_efficiency.py) on one GPU:
#   sbatch -A <account> --export=ALL,CONFIGS="configs/gamgam_tabpfn.yaml configs/gamgam.yaml" \
#     scripts/label_efficiency.sh [key=value ...]
# EVENTS (default "100 1000 10000 50000") are the labelled training events;
# key=value overrides apply to every config. Restartable: finished runs are
# skipped. TabPFN-3.5 needs its weights in TABPFN_MODEL_CACHE_DIR
# (docs/usage.md). Prepare the event cache first.
#SBATCH -N 1
#SBATCH -C gpu
#SBATCH -q shared
#SBATCH -G 1
#SBATCH -c 32
#SBATCH -t 06:00:00
#SBATCH -o logs/label_efficiency_%j.out

set -euo pipefail
cd "${SLURM_SUBMIT_DIR:-$(pwd)}"
read -r -a configs <<< "${CONFIGS:-configs/gamgam_tabpfn.yaml}"
read -r -a events <<< "${EVENTS:-100 1000 10000 50000}"
export OMP_NUM_THREADS="${OMP_NUM_THREADS:-8}"
export UV_CACHE_DIR="${UV_CACHE_DIR:-${SCRATCH:-${HOME}/.cache}/uv}"
export HF_HOME="${HF_HOME:-${SCRATCH:-${HOME}/.cache}/huggingface}"
export TABPFN_MODEL_CACHE_DIR="${TABPFN_MODEL_CACHE_DIR:-${SCRATCH:-${HOME}/.cache}/tabpfn}"
mkdir -p logs
overrides=()
if (($#)); then overrides=(--override "$@"); fi
uv run --all-extras python scripts/label_efficiency.py "${configs[@]}" \
  --events "${events[@]}" --out "${OUT:-outputs/label_efficiency}" ${overrides[@]+"${overrides[@]}"}