siddsuresh97's picture
Initial commit: ICLR 2026 Representational Alignment Challenge
d6c8a4f
#!/usr/bin/env bash
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Prefer cluster scratch if available; fall back to a local cache in the repo.
if [ -n "${CACHE_ROOT:-}" ]; then
CACHE_BASE="$CACHE_ROOT"
elif [ -d "/orcd/scratch/bcs/001" ]; then
CACHE_BASE="/orcd/scratch/bcs/001/$USER"
else
CACHE_BASE="${PROJECT_ROOT}/.cache"
fi
export HF_HOME="${HF_HOME:-${CACHE_BASE}/.cache/huggingface}"
export TORCH_HOME="${TORCH_HOME:-${CACHE_BASE}/.cache/torch}"
mkdir -p "$HF_HOME" "$TORCH_HOME"
exec python "${PROJECT_ROOT}/app.py"