File size: 967 Bytes
36357ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#SBATCH -p devel
#SBATCH -c 2
#SBATCH --mem=28G
#SBATCH -t 06:00:00
#SBATCH -o /home/bjc75/other/finetuning/logs/%x_%j.out
# MIT License, Bryan Cheng, 2026. E2 scan shard on the devel CPU lane (D-026): SHARD=i NSHARDS=n [EXTRA=--raw_coords OUT=...]
# Refuses to run unless every checked adapter has a phenotype record and the base is phenotyped.
cd /home/bjc75/other/finetuning
export PYTHONUNBUFFERED=1 OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK:-2}
AD=data/raw/adapters/Qwen__Qwen2.5-0.5B-Instruct; PH=results/phenotypes/qwen05; OUT=${OUT:-results/scans/qwen05}
n_ad=$(ls -d $AD/*/_ok | wc -l); n_ph=$(ls $PH/*.json | grep -vc __base__)
if [ ! -f $PH/__base__.json ] || [ "$n_ph" -lt "$n_ad" ]; then echo "phenotypes incomplete: $n_ph of $n_ad"; exit 1; fi
/nfs/roberts/project/pi_skr2/bjc75/conda_envs/lorapop/bin/python src/run/scan_run.py --geno ${GENO:-data/processed/qwen05} \
  --pheno $PH --out $OUT --shard ${SHARD:-0} --nshards ${NSHARDS:-1} $EXTRA