Skip to content

AkaliKong/iLoRA

Repository files navigation

iLoRA

Preparation

  1. Prepare the environment:
git clone
cd iLoRA
pip install -r requirements.txt
  1. Prepare the pre-trained huggingface model of Llama2-7B (https://huggingface.co/meta-llama/Llama-2-7b-hf).
  2. Modify the paths inside the .sh file.

Train iLoRA

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.

Evaluate iLoRA

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