> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fine Tuning

> Scale GP natively supports model fine tuning within the platform via the UI or API.

## Using the UI

When navigating to the Models page, you can filter the listed models by the ones that are eligible for fine tuning.

### Fine-Tunable Models

<Frame>
  <img src="https://mintcdn.com/scalegp/E4QRE88hrDqzkijh/images/e43548c-image.png?fit=max&auto=format&n=E4QRE88hrDqzkijh&q=85&s=d29c97d18237360c8212378c139031f7" alt="Fine-Tunable Models" width="4088" height="2382" data-path="images/e43548c-image.png" />
</Frame>

> ## <Icon icon="book" size="24" />
>
> Supported Models for Fine Tuning
>
> As of today (July 2024) we support only OpenAI models for fine tuning in Scale GP

### Training Datasets

In order to be able to fine tune a model on the platform, you will need a training dataset. To create a new training dataset, navigate to "Training Datasets". A Training Dataset consists of a set of input and output pairs.

<Frame>
  <img src="https://mintcdn.com/scalegp/1vQnbXFkjbQbcgd1/images/3c584d8-image.png?fit=max&auto=format&n=1vQnbXFkjbQbcgd1&q=85&s=ce89abc4df228498c63a5e3164d48fdb" alt="Training Datasets" width="3512" height="1346" data-path="images/3c584d8-image.png" />
</Frame>

Scale GP typically comes with a few pre-installed training datasets for typical tasks like RAG, Coding or Creative Writing. If you have a local installation of Scale GP without pre-installed training datasets, please contact Scale to get these datasets installed in your account. While each use case is different, a fine-tuning dataset should include at least include a **couple of hundred prompt response pairs** in order to have a meaningful impact on model performance for the respective domain.

If you have a dataset of prompt response pairs ready to go, you can hit "New Dataset" and upload the dataset directly via the UI.

<Frame>
  <img src="https://mintcdn.com/scalegp/_1tSRXzqUSANQJ5q/images/a57b9b5-image.png?fit=max&auto=format&n=_1tSRXzqUSANQJ5q&q=85&s=e575fdcdc34519f49c7e735d060a24cd" alt="Upload Dataset" width="2334" height="1416" data-path="images/a57b9b5-image.png" />
</Frame>

### New Fine Tune

After deciding for a training dataset, you can navigate back to "Models" and click "New Fine Tune" in the top right to being a fine tuning job. Subsequently, you can simply walk through the steps in the wizard to create the fine tune by picking the model type, base model to fine-tune, providing a name (and optionally description) and finally selecting a training dataset.

<Frame>
  <img src="https://mintcdn.com/scalegp/_1tSRXzqUSANQJ5q/images/bb4817c-image.png?fit=max&auto=format&n=_1tSRXzqUSANQJ5q&q=85&s=e69792c352c026f986cd2152e91d67dd" alt="New Fine Tune Step 1" width="2574" height="1849" data-path="images/bb4817c-image.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/scalegp/1vQnbXFkjbQbcgd1/images/16cec21-image.png?fit=max&auto=format&n=1vQnbXFkjbQbcgd1&q=85&s=73d6f7dd34005605d9beee296b14ef7b" alt="New Fine Tune Step 2" width="1868" height="1468" data-path="images/16cec21-image.png" />
</Frame>

### Fine Tuning Jobs

After completing the setup, you'll be able to monitor the status of the fine tuning job by navigating to "Fine-Tuning Jobs.

<Frame>
  <img src="https://mintcdn.com/scalegp/E4QRE88hrDqzkijh/images/fb9e60d-image.png?fit=max&auto=format&n=E4QRE88hrDqzkijh&q=85&s=dc378a048c5053234efdbbc440ecc4e0" alt="Fine Tuning Jobs Status" width="3482" height="688" data-path="images/fb9e60d-image.png" />
</Frame>

After the fine tuning job is completed, the fine-tuned model will appear in "Models" with a prefix of "ft:" and is ready to be used by the completion API or as part of an SGP application.

<Frame>
  <img src="https://mintcdn.com/scalegp/E4QRE88hrDqzkijh/images/e035ebc-image.png?fit=max&auto=format&n=E4QRE88hrDqzkijh&q=85&s=9661a9cd7c9570e38af461f85ac2ca5c" alt="Fine-Tuned Model" width="2180" height="1134" data-path="images/e035ebc-image.png" />
</Frame>

## Using the API

You can also create new fine-tuning jobs directly using the SGP API, for details please refer to the [API Reference](/reference/fine-tuning-jobs-v3-beta/create-fine-tuning-job).
