-
Prepare Your Dataset
Make sure your dataset has ONLY two columns: 'Human' and 'Assistant'.
-
Upload the Dataset to Google Drive
- Upload the dataset to your Google Drive.
- Click on the "Share" button for the uploaded file and change the access to "edit" for "Anyone with the link."
- Copy the link to the file.
-
Clone the Repository
Run the following command to clone the llama-2-finetune repository:
!git clone https://github.com/hrushik98/llama-2-finetune.git
-
Install Dependencies
Change the current directory to llama-2-finetune and install the required dependencies with the following commands:
%cd llama-2-finetune/
!pip install -r requirements.txt
- Start Finetuning
Run the finetune.py script with your dataset link as an argument:
!python3 finetune.py "<dataset_link>"
-
!python3 infer.py "<prompt>"