This repository provides an example of fine-tuning OpenAI's GPT-4o-mini model for classifying customer service support tickets. Through fine-tuning, we are able to increase the classification accuracy from 69% to 94%.
Interested in becoming a fine-tuning expert? Sign-up for my course.
- Python 3 installed on your system
- OpenAI API Key
- Install Jupyter Notebook:
pip install jupyter
-
Start the Jupyter Notebook
jupyter notebook openai-finetuning-example.ipynb
-
Execute the cells in the notebook sequentially.
-
As you execute the notebook, ensure you update the OPENAI_API_KEY, training_file, and model_id parameters.
-
This example is designed to work with OpenAI's GPT-4o-mini model but can be adapted for other models.
-
For more information on fine-tuning models, refer to OpenAI's documentation.