> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Fine-Tuned Models

Create, deploy, manage, and configure fine-tuned models in AI for Process. Covers the full lifecycle from training setup to API access and deployment management.

The Fine-Tuned Models section in Model Hub lets you create, customize, and manage models fine-tuned to your specific use cases. Fine-tune a platform-hosted model or import one from Hugging Face, then deploy it within AI for Process or externally via a generated API endpoint.

## Model List

The Fine-Tuned Models page lists all available models with the following details:

| Field                  | Description                                 |
| ---------------------- | ------------------------------------------- |
| **Model Name**         | Name of the fine-tuned model.               |
| **Base model**         | The model used as the base for fine-tuning. |
| **Active Deployments** | Number of deployments currently active.     |
| **Deployment Failed**  | Number of deployments that failed.          |
| **Ready to Deploy**    | Number of deployments ready to be deployed. |
| **Tags**               | Labels associated with the model.           |
| **Added by**           | User who created or imported the model.     |
| **Updated on**         | Date of the last update.                    |

<img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/fine_tune_models_new.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=bcdb9d8a38671d41270aa1b07dec1a23" alt="Fine-tune models table" width="1128" height="463" data-path="ai-for-process/models/images/fine_tune_models_new.png" />

Select a model to open its detail view. The left navigation includes:

* [Overview](#monitor-fine-tuning-progress) — View general information, training progress, and test results.
* [Deployments](#manage-deployments) — Manage all deployments for the selected model.
* [Configurations](#configure-a-fine-tuned-model) — Edit model details, adjust endpoint timeout, or delete the model.

***

## Create a Fine-Tuned Model

You can fine-tune a platform-hosted model or import one from Hugging Face. The process involves the following steps:

1. General details
2. Selecting a base model
3. Fine-tuning configuration
4. Adding the training and evaluation datasets
5. Adding the test dataset (optional)
6. Selecting hardware
7. Integrating with Weights & Biases (optional)

**To create a fine-tuned model:**

1. Log in and click **Model Hub** under AI for Process.

2. On the **Fine-tuned models** tab, click **Start fine-tuning**.
   <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/start-fine-tuning.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=60909725ad01511505e91357a22463a5" alt="Start Fine-Tune Model" width="1363" height="692" data-path="ai-for-process/models/images/start-fine-tuning.png" />

3. In the **General details** section:
   * Enter a **Model name** and **Description**.
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/general-details-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=5c0753549dd649a1456c68fbbf7e48e4" alt="General Details Section" width="1384" height="717" data-path="ai-for-process/models/images/general-details-section.png" />
   * Add tags to help search for the model and click **Next**.

4. In the **Base model** section, choose the model to fine-tune:
   * **Hosted models**: Select the model from the dropdown and click **Next**.

     <Note>Imported models are also included in the list.</Note>

     !\[Platform hosted models]\(/ai-for-process/models/images/base-model-kore hosted.png)

   * **Import from Hugging Face**: Select the Hugging Face connection type, paste the model name, and click **Next**. For more information, see [How to Connect to your Hugging Face Account](/ai-for-process/models/open-source-models#deploy-a-model-from-hugging-face).
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/import-hugging-face.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=02f36d714f63b18d77b1dc78ceb57505" alt="Import from Hugging Face" width="1254" height="738" data-path="ai-for-process/models/images/import-hugging-face.png" />

5. In the **Fine-tuning configuration** section:
   * Select a **Fine-tuning type**: Full fine-tune, LoRA (Low-Rank Adaptation), or QLoRA (Quantized LoRA).

     Supported fine-tuning types vary by base model size:

     | Base model parameters | Supported fine-tuning types |
     | --------------------- | --------------------------- |
     | **\< 1B**             | Full fine-tune, LoRA, QLoRA |
     | **≥ 1B and \< 5B**    | LoRA, QLoRA                 |
     | **≥ 5B and ≤ 8B**     | QLoRA                       |

   * Enter the **Number of Epochs** — how many times the model processes the full dataset during training.

   * Enter a **Batch size** — the number of training examples used per training iteration.

   * Enter a **Learning rate** — the step size used during model optimization.

   * Click **Next**.
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/fine-tuning-configuration-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=3950166517a0d4589cfec52273e40531" alt="Fine-Tuning Configuration Section" width="1380" height="704" data-path="ai-for-process/models/images/fine-tuning-configuration-section.png" />

6. In the **Dataset** section:
   * Select or upload the **Training dataset** from the dropdown.

     <Note>The system accepts JSONL, CSV, and JSON files. Files must have at least two columns: one for the prompt and one for the completion. You can download a sample file.</Note>

     <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/upload-dataset.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=3495320bece7875a99c0288c3f6ede9d" alt="Dataset Section" width="1253" height="748" data-path="ai-for-process/models/images/upload-dataset.png" />

   * For **Evaluation dataset**, choose one of:

     * **Use from training dataset (default)**: Allocates a percentage of the training dataset for evaluation. Default is 15%.
     * **Upload evaluation dataset**: Select or upload a separate dataset.
     * **Skip the evaluation**: Skips model evaluation entirely.

     Click **Next**.

     <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/use-training-dataset.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=02f8b58ee230dd2f96a1036e69fdb900" alt="Dataset Section" width="1255" height="744" data-path="ai-for-process/models/images/use-training-dataset.png" />

7. Select or upload a **test dataset** to test the fine-tuned model, then click **Next**.

   <Note>The system accepts JSONL, CSV, and JSON files.</Note>

   <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/test-data-section.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=c27289faf71fefdedc1af3fb26225ade" alt="Test Data Section" width="1379" height="722" data-path="ai-for-process/models/images/test-data-section.png" />

8. Select the required **hardware** from the dropdown and click **Next**.
   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/hardware-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=88c7e7f4291ca810eb552c530602594f" alt="Hardware Section" width="1383" height="705" data-path="ai-for-process/models/images/hardware-section.png" />

9. In the **Weights & Biases** section, select your **WandB connection** from the dropdown and click **Next**. To create a connection, click **+ New connection**. For more information, see [How to Integrate with WandB](/ai-for-process/settings/integrations#integrate-with-weights-and-biases).

   <Note>A Weights & Biases account is required. Enabling the integration shares real-time fine-tuning status with the platform for comprehensive monitoring of fine-tuning metrics. Use your API token to send fine-tuning data to the associated account.</Note>

   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/new-connection.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=ef753bae786bf50a8c47a6c235749a02" alt="WandB Section" width="1253" height="745" data-path="ai-for-process/models/images/new-connection.png" />

10. In the **Review** step, verify all details. Click **Back** to make changes.
    <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/review-section.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=9bdbe707acb6d8962af6c45481ccf1cd" alt="Review Section" width="1375" height="712" data-path="ai-for-process/models/images/review-section.png" />

11. Click **Start fine-tuning**. The model Overview page displays real-time progress. After testing completes, you can download the training file, test results, and test data.
    <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/overview1.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=85b2d96b8cecb158df7cb7bc213b86bd" alt="Overview Page" width="1920" height="764" data-path="ai-for-process/models/images/overview1.png" />

After fine-tuning, deploy the model in AI for Process or externally using the generated API endpoint. You can also create another fine-tuned model on top of this one.

***

## Monitor Fine-Tuning Progress

The model **Overview** page shows real-time progress during fine-tuning. Access it by clicking the model on the Fine-tuned models page.

<img src="https://mintcdn.com/koreai/ZWdPlWVrHiJ6FRH_/ai-for-process/models/images/model-overview.png?fit=max&auto=format&n=ZWdPlWVrHiJ6FRH_&q=85&s=718b93a73d4815714ceab17512c9c286" alt="Model Overview" width="1920" height="827" data-path="ai-for-process/models/images/model-overview.png" />

The overview includes the following sections:

* **General Information**: Shows progress status, total time, and author details. Progress statuses include: Initializing, Training in progress, Testing in progress, Fine-tuning completed, Stopped, and Failed.

  <Note>If fine-tuning fails, the status changes to "Failed." View the reason, make necessary changes, and click **Re-trigger** to restart. If you stop the process mid-way, click **Re-trigger** to restart from the beginning.</Note>

* **Base model information**: Shows the base model used and its source.

* **Training information**: Displays training type, number of training steps, training loss, percentage of validation data, validation loss, and training duration. Click the downward arrows next to training loss and validation loss to see their graphical trends.

* **Test data information**: Shows model performance on the test dataset using the BLEU score.

* **Hardware information**: Displays CPU and GPU utilization during fine-tuning.

* **Training parameters**: Summary of the parameters you configured.

***

## Deploy a Fine-Tuned Model

After fine-tuning completes, deploy the model for use in AI for Process or externally.

1. Open the model in one of these ways:
   * Go to **Models** > **Fine-tuned models**, click the required model, then click **Deploy model** at the top-right of the Overview page.
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-a-fine-tuned-model-new.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=4fff40b2711ab11a4c793974c23a2a30" alt="Deploy Fine-Tuned Model" width="1920" height="677" data-path="ai-for-process/models/images/deploy-a-fine-tuned-model-new.png" />
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-fine-tuned-model.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=7ccb95c246645b8472075ae991a93eed" alt="Deploy Fine-Tuned Model" width="1902" height="647" data-path="ai-for-process/models/images/deploy-fine-tuned-model.png" />
   * Or click **Model Endpoint** in the left navigation, then click **Deploy model**.
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-fine-tuned-model-from-overview.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=b3d69fa55869bc10ca781320465339e1" alt="Deploy Fine-Tuned Model from Overview" width="1920" height="640" data-path="ai-for-process/models/images/deploy-fine-tuned-model-from-overview.png" />

2. In the **General details** section of the Deploy dialog:
   * Enter a **Deployment name** and **Description**.
     <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-fine-tuned-general-details-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=33612713d8a0b89efda865334e025530" alt="Deploy Fine-Tuned General Details Section" width="1371" height="711" data-path="ai-for-process/models/images/deploy-fine-tuned-general-details-section.png" />
   * Add tags and click **Next**.

3. In the **Parameters** section, configure the following:

   | Parameter                      | Description                                                                    |
   | ------------------------------ | ------------------------------------------------------------------------------ |
   | **Temperature**                | Sampling temperature for generation.                                           |
   | **Maximum length**             | Maximum number of tokens to generate.                                          |
   | **Top p**                      | Sampling with top\_p probability mass; an alternative to temperature sampling. |
   | **Top k**                      | Number of highest-probability tokens to keep for top-k filtering.              |
   | **Stop sequences**             | Sequences where the model stops generating further tokens.                     |
   | **Inference batch size**       | Batch size for concurrent requests during inferencing.                         |
   | **Min replicas**               | Minimum number of model replicas to deploy.                                    |
   | **Max replicas**               | Maximum number of replicas to auto-scale.                                      |
   | **Scale up delay (seconds)**   | How long to wait before scaling up replicas.                                   |
   | **Scale down delay (seconds)** | How long to wait before scaling down replicas.                                 |

   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-fine-tuned-parameters-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=f6d1aea3764b9acb5c6fa77aa4f8c659" alt="Deploy Fine-Tuned Parameters Section" width="1248" height="735" data-path="ai-for-process/models/images/deploy-fine-tuned-parameters-section.png" />

4. Click **Next**.

5. Select the required **Hardware** from the dropdown and click **Next**.
   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-fine-tuned-hardware-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=945ae1e21cf24eb69d47e8dfdb5dcf3c" alt="Deploy Fine-Tuned Hardware Section" width="1250" height="741" data-path="ai-for-process/models/images/deploy-fine-tuned-hardware-section.png" />

6. In the **Review** step, verify all details and select **I accept all the terms and conditions**.

   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deploy-fine-tuned-review-section.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=16ee69545a83403ad88985609660af01" alt="Deploy Fine-Tuned Review Section" width="1369" height="712" data-path="ai-for-process/models/images/deploy-fine-tuned-review-section.png" />

   <Note>To make changes, click **Back** or select a specific step in the left panel.</Note>

7. Click **Deploy**. Once complete, the status changes to Deployed and an API endpoint is generated for the model.

***

## View the API Endpoint

After deployment, an API endpoint is generated for external inferencing and for use across AI for Process.

<Note>You receive an email notification when deployment completes and the API endpoint is ready.</Note>

1. Go to **Models** > **Fine-tuned models** and click the required model. Click **Model Endpoint** in the left navigation.
2. Click the **Copy** icon to copy the API endpoint.
   <img src="https://mintcdn.com/koreai/PuupHPoTlgovf9wN/ai-for-process/models/images/view-generated-api-endpoint.png?fit=max&auto=format&n=PuupHPoTlgovf9wN&q=85&s=08a109ea294de2a4bef5a56019ff819a" alt="Generated API Endpoint" width="3023" height="1463" data-path="ai-for-process/models/images/view-generated-api-endpoint.png" />

The endpoint is available in three formats. Use the one that fits your integration.

### API endpoint use cases

Use the deployed fine-tuned model in AI for Process for:

* The **Prompt Playground** — compare prompts across commercial, open-source, or fine-tuned models.
* A **workflow** in the workflow builder via the AI Node.

***

## Manage Deployments

Each model can have multiple deployments tracked independently. Click the **Deployments** tab on the model detail page to see all deployments.

| Field               | Description                                                                                                                                                                                          |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Deployment Name** | Name given during deployment.                                                                                                                                                                        |
| **Deployment ID**   | System-generated ID (not editable).                                                                                                                                                                  |
| **Status**          | Current status: Deploying, Optimizing, Failed, Ready to Deploy, or Deployed.                                                                                                                         |
| **Deployed By**     | User who performed the deployment.                                                                                                                                                                   |
| **Added On**        | Date of deployment.                                                                                                                                                                                  |
| **Actions**         | **Copy cURL** — Copies the cURL command for this deployment. **Manage API Keys** — Opens the API key management tab. **Re-trigger** — Restarts the deployment (available only if failed or stopped). |

<img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/fine_tune_deployments.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=52706b57e57122b51b2c959e25fdec06" alt="Fine-tune deployments table" width="1920" height="872" data-path="ai-for-process/models/images/fine_tune_deployments.png" />

Selecting a deployment opens its detail view to manage the endpoint, API keys, and configuration for that specific deployment.

<img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/fine_tuned_deployment_detailed.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=64942ef83ec697d9fd7af6533d82eb92" alt="Fine-tune deployments" width="1920" height="865" data-path="ai-for-process/models/images/fine_tuned_deployment_detailed.png" />

***

## Deployment History

The deployment history table tracks the full lifecycle of the model, showing each version's deployment name, timestamp, duration, and the user who performed the deployment.

After deploying, you can modify parameters and redeploy. The system appends a version number to the original deployment name and increments it with each redeployment. For example, "Flan T5" becomes "Flan T5\_v1," then "Flan T5\_v2," and so on. Editing the deployment name doesn't affect versioning — subsequent redeployments always use the original name.

The most recent deployment is marked with a green tick. Click any version to view its details.

<img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/deployment-history.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=23574923c2d36317ad995604df025675" alt="Deployment History" width="1920" height="873" data-path="ai-for-process/models/images/deployment-history.png" />

Each deployment version shows:

* **General details**: Model name, description, tags, optimization technique, parameters, hardware, and deployment duration.
* **Deployment details**: Who deployed the model, start and end timestamps, duration, and status (Success, Failed, or Deploying). Hover over "Status" on a failed deployment to see the reason.
* **Un-deployment details**: Appears only if the model was undeployed, either manually or automatically. Shows who initiated the undeployment and the start/end timestamps.

***

## Generate an API Key

Generate an API key to share access to your fine-tuned model with trusted users. A secure API key is required to connect to the model from an external environment.

1. Go to **Models** > **Fine-tuned models** and click the required model. Click **API keys** in the left navigation.
   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/create-new-api-key.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=2ebb6660cdea5dca230cc95d8c8b4aa9" alt="Create New API Key" width="1910" height="756" data-path="ai-for-process/models/images/create-new-api-key.png" />
2. Click **Create a new API key**. The **Create new API key** dialog opens.
   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/generate-api-key.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=c90405eec1b57ace4a09ae4ce9f2dfc5" alt="Generate API Key" width="578" height="436" data-path="ai-for-process/models/images/generate-api-key.png" />
3. Enter a **Name** for the key and click **Generate key**.
4. Click **Copy and close** to copy the key and share it as needed.
   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/copy-api-key.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=5a8b3e680849bfc9d4eeb87d9a5373ad" alt="Copy API Key" width="576" height="571" data-path="ai-for-process/models/images/copy-api-key.png" />

API keys are scoped per deployment for secure access control.

***

## Configure a Fine-Tuned Model

On the **Configurations** page, you can edit the model name, description, and tags, adjust the endpoint timeout, undeploy, or delete the model.

<img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/configure-fine-tuned-model-1.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=78e0e9042d5b777a97c6cc0ebe408671" alt="Configure Fine-Tuned Model" width="1087" height="669" data-path="ai-for-process/models/images/configure-fine-tuned-model-1.png" />

### Model endpoint timeout

Set a specific timeout for your model's endpoint. The allowed range is 30 to 180 seconds (3 minutes). The default is 60 seconds. If a request isn't completed within the set time, the endpoint returns a timeout error.

<Note>Timeout precedence: Workflow timeout > Node timeout > Model timeout.</Note>

### Undeploy the model

Undeploy the model if it's no longer in use. Undeploying disconnects the model immediately from all active instances. Click **Proceed to undeploy** on the Configurations page and follow the on-screen instructions.

### Delete the model

You can delete an undeployed model. Deleting the model removes all associated data. Click **Proceed to delete** on the Configurations page and follow the on-screen instructions.

***

## Export a Fine-Tuned Model

You can export your fine-tuned model for external reference.

1. On the **Models** page, click the three dots icon next to the model name. A menu appears.
   <img src="https://mintcdn.com/koreai/21IEmENTUBmmT39v/ai-for-process/models/images/export-fine-tuned-model.png?fit=max&auto=format&n=21IEmENTUBmmT39v&q=85&s=3b9c371c306a1dddaa68b07a327a6308" alt="Export Fine-Tuned Model" width="1920" height="595" data-path="ai-for-process/models/images/export-fine-tuned-model.png" />
2. Click **Export model**. The exported zip file saves to your downloads folder.
