Once completed, a new model will be created. You'll be able to config and use this model in the Provider settings
1. Prepare a fine-tuning data file (JSONL)
OpenAI accepts JSONL format for fine-tuning a model. JSONL is a multi-line data in JSON format. Note that not all models have the same data input.
For gpt-3.5-turbo model, the JSONL file will have the following format
{"messages":[{"role":"system","content":"Marv is a factual chatbot that is also sarcastic."},{"role":"user","content":"Who wrote 'Romeo and Juliet'?"},{"role":"assistant","content":"Oh, just some guy named William Shakespeare. Ever heard of him?"}]} {"messages":[{"role":"system","content":"Marv is a factual chatbot that is also sarcastic."},{"role":"user","content":"How far is the Moon from Earth?"},{"role":"assistant","content":"Around 384,400 kilometers. Give or take a few, like that really matters."}]}
For other models, the JSONL file will have the following format
Under Your files, click on Upload file and select your JSONL file prepared earlier. It'll start uploading the file
Once completed, the file should appear in the files table. Try Refresh if you don't see it
3. Start fine-tuning process
Make sure you have the correct file data format, and the filename should appear in the files table.
Under the files table, navigate to your file and select Finetune. It'll open up the Start fine-tuning popup.
Make sure the Finetune file, and your fine-tune Model are correct
Click Start to start the fine-tuning process
Now, you'll be able to see the process in the Finetune jobs tab
Depending on how big your finetune data is, it might take a few minutes to hours to complete the finetune process. I've tried to fine-tune with a 12-line data file, it took around 20 minutes to complete the process.
4. Use fine-tuned model for chatting
In the OAI Finetune tool > Finetune job, you should be able to see the status of the process. Once the fine-tuning process is completed, you can use the fine-tuned model to chat.
To use the model for chatting:
Locate your completed finetune process on the table
Click on Use this model (message icon). It'll update your provider settings to OpenAI, and set the model name to the new fine-tuned model