Python
599
338 commits
updated Jan 15, 2025
This repository serves as an effort to systematically to compare different parameter efficient fine-tuning methods on instruction tuning task. We use the NI dataset as the benchmark dataset. The technical report can be found here
PEFT method implementations are adapted from adapter-transformers and peft.
scripts folder.scripts/hfai/hp_run.sh. For example, to run a LoRA experimental in the development mode, run the following command.bash scripts/hfai/hp_run.sh lora_peft dev
To install the package, do the following.
conda create -n peft python=3.8git clone https://github.com/hepengfe/peft-private.git and checkout git checkout release-v0.4.0-adapter branch. Under peft-private folder, pip install -e . to install peft-private.pip install rouge-scorecache/saved_pretrained/gpt2 for evaluationThe platform we use is hfai HPC. Each node is equipped with A100x8 GPU, and each of our experiments is runing on a single node.
This codebase is highly optimized for hfai platform, and it supports the following functionalities:
hp_run.sh scripts allows for flexible adjustments to experiment name, batch size and training framework based on fine-tuning methods. To launch multiple jobs based on hp_run.sh, refer to scripts under scripts/hfai folder.error string to avoid job killing.Here are some extra notes for hfai platform:
../../data due to hfai compatibility.torch>=1.13.0. Therefore, we use the corresponding pytorch version 1.10.2+cu113 by peft setup.If you found the codebase or my work valuable, please cite:
@misc{he2024parameterefficientinstructiontuning,
title={Parameter Efficient Instruction Tuning: An Empirical Study},
author={Pengfei He},
year={2024},
eprint={2411.16775},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2411.16775},
}
Python
599
338 commits
updated Jan 15, 2025
This repository serves as an effort to systematically to compare different parameter efficient fine-tuning methods on instruction tuning task. We use the NI dataset as the benchmark dataset. The technical report can be found here
PEFT method implementations are adapted from adapter-transformers and peft.
scripts folder.scripts/hfai/hp_run.sh. For example, to run a LoRA experimental in the development mode, run the following command.bash scripts/hfai/hp_run.sh lora_peft dev
To install the package, do the following.
conda create -n peft python=3.8git clone https://github.com/hepengfe/peft-private.git and checkout git checkout release-v0.4.0-adapter branch. Under peft-private folder, pip install -e . to install peft-private.pip install rouge-scorecache/saved_pretrained/gpt2 for evaluationThe platform we use is hfai HPC. Each node is equipped with A100x8 GPU, and each of our experiments is runing on a single node.
This codebase is highly optimized for hfai platform, and it supports the following functionalities:
hp_run.sh scripts allows for flexible adjustments to experiment name, batch size and training framework based on fine-tuning methods. To launch multiple jobs based on hp_run.sh, refer to scripts under scripts/hfai folder.error string to avoid job killing.Here are some extra notes for hfai platform:
../../data due to hfai compatibility.torch>=1.13.0. Therefore, we use the corresponding pytorch version 1.10.2+cu113 by peft setup.If you found the codebase or my work valuable, please cite:
@misc{he2024parameterefficientinstructiontuning,
title={Parameter Efficient Instruction Tuning: An Empirical Study},
author={Pengfei He},
year={2024},
eprint={2411.16775},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2411.16775},
}