Download code/della/run_v3.sbatch from drkylj/prophet-v3: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/datasets/drkylj/prophet-v3/resolve/main/code/della/run_v3.sbatch
- Command line
-
hf download hf://datasets/drkylj/prophet-v3/code/della/run_v3.sbatch
-
curl -L -o run_v3.sbatch https://huggingface.co/datasets/drkylj/prophet-v3/resolve/main/code/della/run_v3.sbatch
1.3 kB
| #SBATCH --job-name=prophet-v3 | |
| #SBATCH --account=tridao | |
| #SBATCH --partition=cpu | |
| #SBATCH --nodes=1 | |
| #SBATCH --ntasks=1 | |
| #SBATCH --cpus-per-task=8 | |
| #SBATCH --mem=48G | |
| #SBATCH --time=03:00:00 | |
| #SBATCH --output=/scratch/gpfs/TRIDAO/ly3223/oraclebench/jobs/%x-%j.log | |
| # Usage: sbatch v3/della/run_v3.sbatch <pilot|full> [steps] | |
| # steps (default "build audit compare edges"): any subset, run in that order. | |
| # Everything reads and writes under /scratch/gpfs/TRIDAO/ly3223/oraclebench. Slurm's time limit bounds the job; | |
| # the EXIT trap kills any worker left in this job's process group. | |
| set -uo pipefail | |
| R=/scratch/gpfs/TRIDAO/ly3223/oraclebench | |
| SET=${1:?pilot or full}; STEPS=${2:-"build audit compare edges"} | |
| trap 'pkill -P $$ 2>/dev/null; echo "[run_v3] exit $(date -Is)"' EXIT | |
| cd "$R" | |
| export PYTHONHASHSEED=0 TMPDIR=$R/tmp | |
| PY="$R/.venv/bin/python -I" | |
| echo "[run_v3] start $(date -Is) set=$SET steps=$STEPS host=$(hostname)" | |
| for s in $STEPS; do | |
| echo "[run_v3] step $s $(date -Is)" | |
| case $s in | |
| build) $PY v3/build_v3.py --set "$SET" --jobs 8 || exit 1 ;; | |
| audit) $PY v3/audit_counterfactual.py --set "$SET" --jobs 8 || exit 1 ;; | |
| compare) $PY v3/compare_vis.py "$SET" || exit 1 ;; | |
| edges) $PY v3/edge_cases.py "$SET" || exit 1 ;; | |
| esac | |
| done | |
| echo "[run_v3] done $(date -Is)" | |