Download code/slurm/cx_array.sh from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/cx_array.sh
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/slurm/cx_array.sh
-
curl -L -o cx_array.sh https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/cx_array.sh
1.1 kB
| #SBATCH -p gpu_rtx6000,gpu_h100,gpu_h200 | |
| #SBATCH --gpus=1 | |
| #SBATCH -c 6 | |
| #SBATCH --mem=96G | |
| #SBATCH -t 06:00:00 | |
| #SBATCH -J cx_arr | |
| #SBATCH -o /home/bjc75/other/finetuning/logs/%x_%A_%a.out | |
| # MIT License, Bryan Cheng, 2026. Cross offspring on the shared GPU queue (backup lane, D-031): one GPU, PW workers claiming | |
| # offspring chunks of the same design as slurm/cx_devel.sh. | |
| cd /home/bjc75/other/finetuning | |
| export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false HF_HOME=/nfs/roberts/scratch/pi_skr2/bjc75/finetuning/hf_home | |
| PY=/nfs/roberts/project/pi_skr2/bjc75/conda_envs/lorapop/bin/python | |
| DESIGN=${DESIGN:-results/crosses/q05_layer/design.json} | |
| nvidia-smi --query-gpu=name --format=csv,noheader | |
| mem=$(nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits | head -1); PW=${PW:-1}; [ "${mem:-0}" -lt 120000 ] && PW=1 # D-035/D-038 | |
| for j in $(seq 1 $PW); do | |
| $PY src/run/cross.py run --design $DESIGN --claim > logs/cx_${SLURM_JOB_ID}_w${j}.log 2>&1 & | |
| sleep 20 | |
| done | |
| wait | |
| grep -h -v -i warn logs/cx_${SLURM_JOB_ID}_*.log | tail -10 | |