Looking for help? Type your search string. Minimum 4 characters are required.

Open Category List

How can I Fine Tune or Train my own OpenAI?

1 minuteread

To train Open AI

    • a. To train or fine tune a model, 1st you need to:
      1. Gather the necessary data you want to train with
      2. Format the data correctly according to OpenAI API requirements (Download sample data format to see how it works). A dataset should have a at least 500 rows to offer useful results. According to the OpenAI documentation, numbers of 3,000 and 5,000 rows are recommended.
      3. Upload the data to OpenAI in .JSONL format
      4. Train an existing OpenAI model(select from the Bot OpenAI settings page) with your data
    • b. Once you have your JSONL file ready, please go to the Training model section. Upload your training file in .JSONL format.
    • c. Once you upload your training file, it will return a file id and the training will start once you click the Create FT Model button. Set a suffix (to recognize the model yourself later) and base model in the popup and create.
    • d. Once the training is done and the file is ready, it will return the fine tuned model. It will be listed under the Fine Tuned Models List, the status will be shown as “Succeeded” and you will also get a FT(Fine Tuned) Model ID (to copy to the settings page).
    • e. You can create multiple Fine Tuned models following the above procedure. Copy the Fine Tuned model ID you want to use.
    • f. Go to the main Bot OpenAI settings page and paste the Fine Tuned model ID to the Custom Fine Tuned Model field and save. Now the bot will start responding according to the Training data.

Example:

{"prompt": "puppy A is happy", "completion": "emotional state of puppy A"}
{"prompt": "puppy B is sad", "completion": "emotional state of puppy B"}

 

Right click and Save the Example jsonl file