lorapop / code /slurm /pheno_array.sh
bryan7264's picture
Add files using upload-large-folder tool
a8b5668 verified
Raw History Blame Contribute Delete
907 Bytes
#!/bin/bash
#SBATCH -p gpu_rtx6000
#SBATCH --gpus=1
#SBATCH -c 8
#SBATCH --mem=64G
#SBATCH -t 06:00:00
#SBATCH -J ph_q05
#SBATCH -o /home/bjc75/other/finetuning/logs/%x_%A_%a.out
# MIT License, Bryan Cheng, 2026. Full-battery phenotyping, one shard per array task (RESEARCH_PLAN 4). Resumable.
cd /home/bjc75/other/finetuning
export PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false HF_HOME=/nfs/roberts/scratch/pi_skr2/bjc75/finetuning/hf_home
BASE=${BASE:-Qwen/Qwen2.5-0.5B-Instruct}; AD=${AD:-data/raw/adapters/Qwen__Qwen2.5-0.5B-Instruct}; OUT=${OUT:-results/phenotypes/qwen05}
NS=${NS:-16}; EXTRA=""; [ "$SLURM_ARRAY_TASK_ID" = "0" ] && EXTRA="--include_base"
/nfs/roberts/project/pi_skr2/bjc75/conda_envs/lorapop/bin/python src/run/phenotype.py --base $BASE --adapters $AD \
--out $OUT --shard $SLURM_ARRAY_TASK_ID --nshards $NS $EXTRA --sizes full --bs 128 --gbs 256 --group 8 2>&1 | grep -v -i warn