Download code/slurm/dv_train.sh from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/dv_train.sh
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/slurm/dv_train.sh
-
curl -L -o dv_train.sh https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/slurm/dv_train.sh
1.48 kB
| #SBATCH -p gpu_devel | |
| #SBATCH --gpus=2 | |
| #SBATCH -c 12 | |
| #SBATCH --mem=200G | |
| #SBATCH -t 06:00:00 | |
| #SBATCH -J dv_train | |
| #SBATCH -o /home/bjc75/other/finetuning/logs/%x_%j.out | |
| # MIT License, Bryan Cheng, 2026. Devel lane (D-025): controlled-population training on 2 GPUs (resumable: runs with _ok | |
| # are skipped). GPU 0: seed siblings; GPU 1: distillation data + opposite + targeted fine-tunes (RESEARCH_PLAN 6). | |
| 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; D=data/raw/train_data | |
| nvidia-smi --query-gpu=name --format=csv,noheader | |
| IFS=, read -ra G <<< "$CUDA_VISIBLE_DEVICES" | |
| ( export CUDA_VISIBLE_DEVICES=${G[0]} | |
| $PY src/train/train_lora.py --base $B --runs $D/runs_siblings.jsonl --out data/raw/trained/siblings 2>&1 | grep -v -i warn | tail -60 ) & | |
| ( export CUDA_VISIBLE_DEVICES=${G[1]} | |
| $PY src/train/make_data.py distill --base $B --out $D 2>&1 | grep -v -i warn | tail -20 | |
| $PY src/train/train_lora.py --base $B --runs $D/runs_opposite.jsonl --out data/raw/trained/opposite 2>&1 | grep -v -i warn | tail -30 | |
| $PY src/train/train_lora.py --base $B --runs $D/runs_targeted.jsonl --out data/raw/trained/targeted 2>&1 | grep -v -i warn | tail -30 ) & | |
| wait | |
| for s in siblings opposite targeted; do echo "$s ok: $(ls data/raw/trained/$s/*/_ok 2>/dev/null | wc -l)"; done | |