File size: 1,103 Bytes
36357ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#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