Download code/slurm/pilot_gpu.sh from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/pilot_gpu.sh
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/slurm/pilot_gpu.sh
-
curl -L -o pilot_gpu.sh https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/pilot_gpu.sh
1.4 kB
| #SBATCH -p gpu_devel | |
| #SBATCH --gpus=1 | |
| #SBATCH -c 6 | |
| #SBATCH --mem=64G | |
| #SBATCH -t 02:30:00 | |
| #SBATCH -J pilot_gpu | |
| #SBATCH -o /home/bjc75/other/finetuning/logs/%x_%j.out | |
| # MIT License, Bryan Cheng, 2026. GPU pilot: tests, single vs bank equivalence (pilot sizes), full-battery timing. | |
| cd /home/bjc75/other/finetuning | |
| export 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; B=Qwen/Qwen2.5-0.5B-Instruct; AD=data/raw/adapters/Qwen__Qwen2.5-0.5B-Instruct | |
| nvidia-smi --query-gpu=name --format=csv,noheader | |
| $PY -m pytest -q tests/ 2>&1 | tail -2 | |
| for g in 1 8; do $PY src/run/phenotype.py --base $B --adapters $AD --out results/phenotypes/pilot_g$g --include_base --limit 9 --sizes pilot --group $g --bs 128 --gbs 256 2>&1 | grep -v -i warn | tail -2; done | |
| $PY src/run/phenotype.py --base $B --adapters $AD --out results/phenotypes/pilot_full --limit 8 --shard 1 --nshards 2 --sizes full --group 8 --bs 128 --gbs 256 2>&1 | grep -v -i warn | tail -3 | |
| $PY tools/compare_pheno.py results/phenotypes/pilot_g1 results/phenotypes/pilot_g8 | |
| $PY src/data/reduce_ft.py --index data/raw/hf_index/Qwen__Qwen2.5-0.5B-Instruct.finetune.jsonl --base $B --out data/raw/ft_reduced/pilot --pheno_out results/phenotypes/pilot_ft --shard 3 --nshards 400 2>&1 | grep -v -i warn | tail -4 | |