Guides

Fine-tuning

6min

Agenthost now supports fine-tuning in beta. Please reach out to [email protected] should you experience any issues.

Introduction

Fine-tuning allows you to train a custom model based on your own specific needs and data. Generally fine-tuning is a way to create a better experience for your users. You can reach more about fine tuning by reading OpenAI's documentation. Fine-tuning is only available to users on Pro and Growth paid plans.

Useage and limits

Fine-tunes use 2x the message limits as gpt-3.5-turbo. This includes running the training as well as users chatting with the fine tuned model after training is complete. Fine-tuning is only supported with v1 agents.

Create a fine-tuned model

To create a new fine-tuned model, follow these steps.

  1. Go to the workspace and then select an agent.
  2. Select Fine-tuning from the left side menu in the agent project page.
  3. Select Create on the top right side of the page. This will bring up a modal view.
  4. Enter a value for the name of the fine-tune. This can be anything you wish and is just for your referencing. Only gpt-3.5-turbo is available for fine tuning currently.
  5. Click Create to create the model.
  6. Creating the model is the first part. Now we'll need to select the messages we want to use for fine-tuning our model.
Document image


Select messages to train the model on

Now we need to select the messages we want to train our new fine-tuned model on. You must select atleast 10 messages to fine tune your agent.

Document image




  1. Select Manage on the newly created fine-tune job
  2. After selecting manage, click the Add messages button near the center of the modal that appears.
  3. This will take you to the Conversations view. From there, open a thread with messages you want your model trained on.
  4. On all messages from your agent, you'll now see a Train option. Click that button to add the message to your fine-tuned model training list.
  5. You must select atleast 10 messages to start fine-tuning.



Run the fine-tune job

Once happy with all the messages you've added to your training, go back to the Fine-tuning section.

Then click Run to begin the fine-tune process. The status wil then change to running

How long the fine-tune process runs depends but it can be anywhere from a couple of minutes to hours. Once fine-tuning completes, you'll be notified and the status will change to completed.

Document image




Use the new fine-tuned model

Congratulations on creating your fine-tuned model. Now the final piece is to update your agent to use your newly created fine-tuned model.

  1. Go to the Agent tab from the left menu.
  2. Scroll down to Advanced Settings and find GPT model
  3. Click the dropdown and select use fine tuned model
  4. A modal should popup asking you to select your fine tuned model. Select the fine-tuned model you just created.
  5. After selecting th model, be sure to scroll up and click Save to save your changes.



Now you can go to the chat page and ask your agent questions. Fine-tuned models do sometimes take slightly longer to responded compared to the base models.



Updated 03 Jul 2024
Doc contributor
Did this page help you?