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

# Fine-tune a Model

> Configure and launch a LoRA fine-tuning run, then monitor it to completion.

Fine-tuning adapts a base model to your task using a LoRA (Low-Rank Adaptation) adapter. You configure a training run, BenchGen provisions the GPU and runs it, and you watch progress in real time until the adapter is ready to merge and save.

This page covers **Supervised (SFT)**, training on a labeled dataset, one of three Training Methods. If you'd rather train against a verifiable reward with no labeled dataset, see [RLVR Training](https://benchgen.com/docs/train/rlvr-training.md).

## Prerequisites

* A base model to fine-tune. You can pick one from your workspace, the public library, the platform, or HuggingFace.
* A training dataset. See [Add a dataset](https://benchgen.com/docs/train/add-a-dataset.md), or pick one from the library or HuggingFace.

## Steps

### 1. Start a new training run

In the **Train** tab, click **Jobs** in the left sidebar to see your **Training Jobs**, with totals for running, completed, stopped, and failed runs. Click **+ New Training** in the top right.

![The Training Jobs list with the New Training button](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/fine-tune/01-training-jobs.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=898a35c9b41497144263cdd7c29e8c7e)

The Training Jobs list with the New Training button

### 2. Name the run and pick a base model

Give the run a **Training Name**. This name is saved to the Knowledge API and reused as the default when you push the merged model to BenchGen later.

Open the **Base Model** dropdown and choose a source:

| Source | What it is |
| - | - |
| **My Models** | Models already in your workspace. |
| **Public Library** | Models shared by the community. |
| **Platform** | Models published on BenchGen. |
| **HuggingFace** | Any public model from the Hub. Search by name. |

![The New Training form with the base model, dataset, and LoRA configuration](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/fine-tune/02-new-training-form.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=254e44a12cb257055e9121e099bc7b98)

The New Training form with the base model, dataset, and LoRA configuration

![The base model dropdown showing the four sources](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/fine-tune/03-base-model-sources.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=203b51a29dfede72af709a8d84bcd883)

The base model dropdown showing the four sources

To use a model that isn't already in your workspace, switch to the **HuggingFace** tab and search the Hub by name. Each result shows its download count, likes, and task tag. Click one to select it as the base model.

![Searching HuggingFace for a base model, with a result row highlighted to click](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/fine-tune/04-base-model-hf-search.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=c5ae12e15ec92f5b21f690b7eb906c35)

Searching HuggingFace for a base model, the first result outlined as the one to click

### 3. Choose a dataset

Open the **Dataset** dropdown and pick from **My Datasets**, **Public Library**, **Fine-tune Datasets** (datasets exported from Eval runs), or **HuggingFace**.

![The dataset dropdown showing the available sources](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/fine-tune/05-dataset-sources.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=afbfb184553bb12630762fb88db39987)

The dataset dropdown showing the available sources

The **HuggingFace** tab works the same way for datasets. Search the Hub and pick any public dataset by name.

![Searching HuggingFace for a dataset](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/fine-tune/06-dataset-hf-search.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=80b27640c48874def3d79f9f9a9fd747)

Searching HuggingFace for a dataset

### 4. Configure the LoRA parameters

| Parameter | Range | Default | What it controls |
| - | - | - | - |
| **Rank (r)** | 4–64 | `8` | Adapter capacity. |
| **Alpha** | 4–128 | `16` | Scaling factor. A common ratio is Alpha = 2 × rank. |
| **Dropout** | 0.0–0.5 | `0.05` | Regularization. |
| **Learning Rate** | `1e-5` to `5e-4` | `1e-4` | Step size for gradient updates. |

> [!TIP]
>
> The Quick Tips panel sums up sensible defaults: rank 8–16 works well for most tasks, Alpha = 2 × rank is a good ratio, 50–100 steps is enough for a quick validation run, and a lower learning rate gives more stable convergence.

### 5. (Optional) Adjust advanced options

Expand **Advanced Options** for finer control:

| Setting | Default | Notes |
| - | - | - |
| **Quantization** | Full Precision | Equivalent to Q4/Q8 in GGUF, but for training. Use a lower precision for large models when VRAM is limited. |
| **Epochs** | `2` | Full passes over the dataset. |
| **Batch Size** | `4` | Examples per gradient step. |
| **Max Steps** | `50` | Caps the run. Set `-1` or click **Full** to train over the entire dataset. |
| **Auto GPU Selection** | On | Lets the backend pick the first compatible free GPU or accelerator from the Ray cluster. |

The **Training Summary** panel on the right updates as you change settings. It shows the estimated steps and time, so capping at 50 steps reads as a quick run, while **Full** estimates a longer one.

![Advanced options expanded, with quantization, epochs, batch size, and max steps, the Advanced Options toggle outlined](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/fine-tune/07-advanced-options.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=ecc13e7facb22ec54999050edaf0f559)

Advanced options expanded, with quantization, epochs, batch size, and max steps

![Max Steps set to Full, with the summary showing the longer estimate, the Full button outlined](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/fine-tune/08-max-steps-full.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=3dd60b7fa130f8aa3d0a3524befde05f)

Max Steps set to Full, with the summary showing the longer estimate

### 6. Start training

Click **Start Training**. The job opens to its detail page with a status of **Training**.

![The job detail page just after training starts](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/fine-tune/09-training-started.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=1af058c5dbe1fde7d260eb2a90d67d6c)

The job detail page just after training starts

### 7. Monitor progress

The **Training Progress** card streams the current step and percent complete, along with elapsed time, ETA, speed (it/s), epoch, loss, learning rate, and gradient norm. Expand **Training Logs** for the raw output, or click **Cancel Training** if you need to stop early.

![Training in progress with live metrics](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/fine-tune/10-training-progress.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=e0778854f4b64bf98d8aada6bece2d14)

Training in progress with live metrics

### 8. Training completes

When the run finishes, the status changes to **Completed** and the progress card shows **Finished** with the final loss and runtime. The **Actions** panel unlocks so you can download the adapter or merge and save the model.

![A completed training run with the Actions panel unlocked, the Merge Model button outlined](https://mintcdn.com/benchgen-8fc81371/4FwYeG_Fd1WvnBa5/images/train/fine-tune/11-training-completed.jpg?fit=max\&auto=format\&n=4FwYeG_Fd1WvnBa5\&q=85\&s=1e413ee43646496914f9c62b8bb9b09f)

A completed training run with the Actions panel unlocked, Merge Model outlined

## Other training approaches

Supervised (SFT) is one of three **Training Methods** on the New Training form:

| Method | Learns from | Needs a labeled dataset? |
| - | - | - |
| **Supervised (SFT)** | Labeled examples, this page. | Yes |
| **Reinforcement (RLVR)** | A verifiable reward scoring its own generated answers. | No, for two of the three reward functions, see [RLVR Training](https://benchgen.com/docs/train/rlvr-training.md). |
| **Head** | Past agent scores, no text generation involved. | No, a frozen embedding backbone plus a small head evolved against a reward matrix. |

> [!NOTE]
>
> Head trains a lightweight agent-selection head instead of a language model: it picks the best agent for a query from past scores, without generating text and without a GPU by default. It doesn't have its own page yet, look for it in a future update.

## Next Steps

> [!NOTE]
>
> **Training is complete and the adapter is ready.** Merge it into the base model and push it to BenchGen so you can run and evaluate it.

> [card] [Merge & save the model](https://benchgen.com/docs/train/merge-lora-adapter.md)
>
> Combine the adapter with the base model and save it to the platform.

> [card] [Run inference](https://benchgen.com/docs/train/run-inference.md)
>
> Test the adapter in a chat interface before merging.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.