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

# Overview

> Adapt a base model to a task by training it on your data.

> [!TIP]
>
> If you need to drive the training loop from your own code, or you want to train with reinforcement learning, use [post-training](https://docs.together.ai/docs/post-training/overview.md). It runs SFT, DPO, and GRPO against GPUs you provision, billed per GPU-minute.

Fine-tuning tailors a pretrained model to a smaller, targeted dataset so it performs better on a specific task or domain. Together AI handles the full lifecycle: data upload, training, hosting, and inference on a [dedicated endpoint](https://docs.together.ai/docs/dedicated-endpoints/overview.md).

Together AI currently supports two fine-tuning approaches:

* **Low-rank adapter (LoRA):** Trains a small set of adapter weights on top of the frozen base model. This is the default training mode, as it's faster, cheaper, and the right choice for most use cases.
* **Full fine-tuning:** Updates every weight in the base model. Uses more compute, but can outperform LoRA when the base behavior needs to shift substantially.

See [LoRA vs. full fine-tuning](https://docs.together.ai/docs/fine-tuning/lora-vs-full.md) to choose between them. This choice is separate from the training method you pick below.

You can launch a fine-tuning job from the console, through the API/SDK, or with the CLI:

```bash theme={null}
# upload your training data
tg files upload train.jsonl

# start a LoRA fine-tuning job
tg fine-tuning create --training-file <FILE_ID> --model Qwen/Qwen3.8-27B --lora

# check progress
tg fine-tuning retrieve <JOB_ID>
```

The [fine-tuning quickstart](https://docs.together.ai/docs/fine-tuning/quickstart.md) breaks down this flow and shows the SDK equivalents.

## Get started

> [card] [Quickstart](https://docs.together.ai/docs/fine-tuning/quickstart.md)
>
> Prepare your data, launch a LoRA job on Qwen3 8B, and evaluate the result.

> [card] [Supported models](https://docs.together.ai/docs/fine-tuning/supported-models.md)
>
> Browse every base model you can fine-tune, with context lengths and batch sizes.

> [card] [Pricing](https://docs.together.ai/docs/fine-tuning/pricing.md)
>
> See how Together AI bills for training tokens and dedicated hosting.

> [card] [Bring your own model](https://docs.together.ai/docs/fine-tuning/byom.md)
>
> Fine-tune a model from the Hugging Face Hub that isn't in the Together catalog.

## Prepare your data

Your training dataset needs to be a JSONL or Parquet file, formatted to match your task. See the [data preparation guide](https://docs.together.ai/docs/fine-tuning/data-preparation.md) for the schemas, validation rules, and example datasets.

```python Python theme={null}
from together import Together

client = Together()

train_file = client.files.upload(
    file="train.jsonl",
    purpose="fine-tune",
    check=True,
)
print(train_file.id)
```

```typescript TypeScript theme={null}
import Together from "together-ai";

const client = new Together();

const trainFile = await client.files.upload("train.jsonl", "fine-tune");
console.log(trainFile.id);
```

```bash cURL theme={null}
curl -X POST https://api.together.ai/v1/files/upload \
  -H "Authorization: Bearer $TOGETHER_API_KEY" \
  -F "purpose=fine-tune" \
  -F "file_name=train.jsonl" \
  -F "file=@train.jsonl"
```

## Training methods

> [card] [Supervised fine-tuning](https://docs.together.ai/docs/fine-tuning/supervised.md)
>
> Train on demonstration data with one target completion per example. The default method.

> [card] [Preference fine-tuning](https://docs.together.ai/docs/fine-tuning/preference-tuning.md)
>
> Align a model with rankings over preferred and dispreferred responses using DPO.

## Advanced guides

> [card] [Vision fine-tuning](https://docs.together.ai/docs/fine-tuning/vision.md)
>
> Fine-tune vision-language models on samples with image and text data.

> [card] [Function calling](https://docs.together.ai/docs/fine-tuning/function-calling.md)
>
> Train a model to invoke tools and structured functions reliably.

> [card] [Reasoning fine-tuning](https://docs.together.ai/docs/fine-tuning/reasoning.md)
>
> Train a reasoning model with chain-of-thought data.

> [card] [LoRA vs. full fine-tuning](https://docs.together.ai/docs/fine-tuning/lora-vs-full.md)
>
> Choose how much of the model to update, and tune LoRA's rank and target modules.

## Monitor and deploy

> [card] [Monitor a job](https://docs.together.ai/docs/fine-tuning/monitoring.md)
>
> Poll job status, then retrieve per-step loss and evaluation metrics.

> [card] [Deploy your model](https://docs.together.ai/docs/fine-tuning/deployment.md)
>
> Serve your fine-tuned model on a dedicated endpoint or download it for local use.


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