This project provides a Python script (main.py
) that allows you to fine-tuning the OpenAI GPT-3.5 Turbo model by uploading a training data file. It automates the process of uploading the file, creating a fine-tuning job, and waiting for the job to complete.
Before using the main.py
script, make sure you have the following prerequisites:
- Python installed on your system.
- The
requests
,json
,time
,os
,colorama
, andtqdm
libraries installed. You can install them usingpip
.
-
Clone or download this repository to your desired location.
-
Install the required Python libraries using the following command:
pip install requests colorama tqdm
or
pip install -r requirements.txt
Run the following command to use the main.py
script:
python main.py --file <file.json> --token <token>
Replace <file.json>
with the path to your training data file in JSON format, and <token>
with your OpenAI API token.
This project is licensed under the MIT License. Feel free to modify and distribute the code as per the terms of the license.