diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-27 09:57:37 -0600 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-27 09:57:37 -0600 |
| commit | dc801c07cf38b0c495686463e6ca6f871a64440e (patch) | |
| tree | 599f03114775921dbc472403c701f4a3a8ea188a /collaborativeagents/training/train_sft_qlora.sbatch | |
| parent | e43b3f8aa36c198b95c1e46bea2eaf3893b13dc3 (diff) | |
Add collaborativeagents module and update gitignore
- Add collaborativeagents subproject with adapters, agents, and evaluation modules
- Update .gitignore to exclude large binary files (.whl, .tar), wandb logs, and results
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'collaborativeagents/training/train_sft_qlora.sbatch')
| -rw-r--r-- | collaborativeagents/training/train_sft_qlora.sbatch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/collaborativeagents/training/train_sft_qlora.sbatch b/collaborativeagents/training/train_sft_qlora.sbatch new file mode 100644 index 0000000..81c3db1 --- /dev/null +++ b/collaborativeagents/training/train_sft_qlora.sbatch @@ -0,0 +1,29 @@ +#!/bin/bash +#SBATCH --job-name=sft_qlora +#SBATCH --output=sft_qlora_%j.out +#SBATCH --error=sft_qlora_%j.err +#SBATCH --time=12:00:00 +#SBATCH --partition=a100 +#SBATCH --gres=gpu:1 +#SBATCH --cpus-per-task=8 +#SBATCH --mem=64G + +# QLoRA SFT Training - Ultra Minimal Hardware (1 GPU, ~12GB VRAM) +# Can run on A100 40GB, V100, or even consumer GPUs + +cd /projects/bfqt/users/yurenh2/ml-projects/personalization-user-model/collaborativeagents/training + +source /u/yurenh2/miniforge3/etc/profile.d/conda.sh +conda activate eval + +echo "=== Starting QLoRA SFT Training ===" +echo "GPU: $(nvidia-smi --query-gpu=name --format=csv,noheader | head -1)" +echo "Config: llama_factory_qlora_config.yaml" +echo "Start time: $(date)" + +# Run training with LLaMA-Factory +llamafactory-cli train llama_factory_qlora_config.yaml + +echo "=== Training Complete ===" +echo "End time: $(date)" +echo "Output: outputs/sft_reflection_qlora" |
