-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh
More file actions
29 lines (22 loc) · 1.2 KB
/
Copy pathenv.sh
File metadata and controls
29 lines (22 loc) · 1.2 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
# Source me at the top of every reproduction script.
# $ source scripts/env.sh
# Defines the storage layout and activates the chess-tutor conda env.
export REPO=/lustre/nvwulf/home/skuo/cse537_AI/2025Spring_AI_Project
export PROJ=/lustre/nvwulf/projects/MilderGroup-nvwulf/skuo/cse537_chess_tutor
export HF_HOME=$PROJ/hf_cache
# TRANSFORMERS_CACHE is deprecated in transformers >= 4.36 — use HF_HOME instead.
export HF_HUB_CACHE=$PROJ/hf_cache/hub
export HF_DATASETS_CACHE=$PROJ/hf_cache/datasets
# HF token (gitignored). Used non-interactively so credentials don't persist in ~/.cache.
if [ -f "$REPO/.hf_token" ]; then
export HUGGINGFACE_HUB_TOKEN=$(cat "$REPO/.hf_token")
export HF_TOKEN=$HUGGINGFACE_HUB_TOKEN
fi
export STOCKFISH_BIN=$PROJ/bin/stockfish
# Make `python -m chess_tutor.X` work without pip install -e .
export PYTHONPATH="$REPO/src:${PYTHONPATH:-}"
source /lustre/nvwulf/software/miniconda3/etc/profile.d/conda.sh
conda activate chess-tutor
# Stockfish 17 binary links GLIBCXX_3.4.30 which the system libstdc++ lacks.
# Prepend the conda env's libstdc++ so the Stockfish subprocess can find it.
export LD_LIBRARY_PATH="/lustre/nvwulf/home/skuo/.conda/envs/chess-tutor/lib:${LD_LIBRARY_PATH:-}"