-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve llama2 scripts and add fine-tuning results
- Loading branch information
Showing
8 changed files
with
5,388 additions
and
70 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=llama2-finetune-7b-hf | ||
#SBATCH --time 10-00:00 | ||
#SBATCH --time 2-00:00 | ||
#SBATCH --nodes=1 | ||
#SBATCH --gpus-per-node=v100l:1 | ||
#SBATCH --mem=128G | ||
#SBATCH --mem=64G | ||
#SBATCH --ntasks-per-node=4 | ||
#SBATCH --cpus-per-task=4 | ||
#SBATCH --account=ctb-whkchun | ||
#SBATCH --account=def-whkchun | ||
#SBATCH --output=%x.o%j | ||
|
||
pip install --upgrade pip | ||
module load python/3.11.5 | ||
python -V | ||
|
||
virtualenv --no-download $SLURM_TMPDIR/env | ||
source $SLURM_TMPDIR/.env/bin/activate | ||
|
||
pip install --upgrade pip | ||
|
||
module load StdEnv/2023 rust/1.70.0 arrow/14.0.1 gcc/12.3 | ||
pip install --no-index transformers==4.36.2 accelerate==0.25.0 peft==0.5.0 bitsandbytes==0.40.2 | ||
pip install --no-index transformers==4.36.2 accelerate==0.25.0 peft==0.5.0 bitsandbytes==0.42.0 tensorboard | ||
pip install datasets==2.17.0 trl | ||
pip install -r /home/cindyli/llama2/requirements-llama2.txt | ||
|
||
python -V | ||
pip list | ||
|
||
echo "Fine-tuning Llama2 from job $SLURM_JOB_ID on nodes $SLURM_JOB_NODELIST." | ||
echo "=== Fine-tuning Llama2 from job $SLURM_JOB_ID on nodes $SLURM_JOB_NODELIST." | ||
python /home/cindyli/llama2/finetune/finetune_7b_hf.py |
Oops, something went wrong.