- Prepare the environment:
git clone
cd iLoRA
pip install -r requirements.txt
- Prepare the pre-trained huggingface model of Llama2-7B (https://huggingface.co/meta-llama/Llama-2-7b-hf).
- Modify the paths inside the .sh file.
Train iLoRA with a single A100 GPU on MovieLens dataset:
sh train_movielens.sh
Train iLoRA with a single A100 GPU on Steam dataset:
sh train_steam.sh
Train iLoRA with a single A100 GPU on LastFM dataset:
sh train_lastfm.sh
Note that: set the llm_path
argument with your own directory path of the Llama2 model.
Test iLoRA with a single A100 GPU on MovieLens dataset:
sh test_movielens.sh
Test iLoRA with a single A100 GPU on Steam dataset:
sh test_steam.sh
Test iLoRA with a single A100 GPU on LastFM dataset:
sh test_lastfm.sh