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

# Train and deploy your first model

> Turn real application examples into a specialized model and compare it before deployment.

This guide starts after your task is serving representative traffic through Model Distillation.

## 1. Build a dataset

Open the task's **Datasets** page and choose the traffic that best represents the behavior you want to preserve.

Review a sample before training. Remove bad examples and make sure the dataset covers the situations customers actually encounter.

<Card title="Datasets Quick Start" href="/model-distillation/studio/datasets-quickstart" arrow="true">
  Create and review your first dataset in Studio.
</Card>

## 2. Improve the answers when needed

Your current model's answers can be used directly as training targets. If they are inconsistent or you want to teach better behavior, relabel the dataset with a stronger model.

Relabeling creates an alternative set of answers without replacing the originals, so you can inspect both and choose which one to train on.

## 3. Train several candidates

Choose the models you want to train. A small sweep is usually more useful than a single run because the best model for one task is not always the largest model.

Studio handles the training workflow and makes finished models available for comparison and deployment.

<Card title="Fine-tuning Quick Start" href="/model-distillation/studio/fine-tuning-quickstart" arrow="true">
  Start a training run from a ready dataset.
</Card>

## 4. Compare quality

Create an evaluation and compare every candidate with the answers you want to preserve. Look at both the overall score and individual examples to understand where a model improves or regresses.

Do not deploy from an incomplete evaluation. Resolve failed comparisons and make sure the result represents the behavior that matters to your product.

<Card title="Evaluations Quick Start" href="/model-distillation/studio/evaluations-quickstart" arrow="true">
  Run a head-to-head comparison in Studio.
</Card>

## 5. Deploy the winner safely

Add the best model to task routing. Start with part of the traffic when you want a production canary, then increase its share as confidence grows.

Keep the previous model in the routing configuration at zero weight after a full rollout. This makes rollback quick without sending it new traffic.

## 6. Automate the next cycle

After running the workflow manually once, configure [Automation](/model-distillation/studio/automation). It can prepare the next dataset, train several candidates, compare them, and deploy a winner only when it meets the threshold you choose.

<Accordion title="API: Agent workflow">
  Give the agent the task alias, W\&B entity, desired dataset window, candidate base models, judge model, and rollout threshold. Then direct it to the copyable requests in:

  * [Datasets Quick Start](/model-distillation/studio/datasets-quickstart);
  * [Fine-tuning Quick Start](/model-distillation/studio/fine-tuning-quickstart);
  * [Evaluations Quick Start](/model-distillation/studio/evaluations-quickstart);
  * [Routing and versions](/model-distillation/studio/routing-and-versions).

  Ask it to wait for each asynchronous resource to reach its successful terminal state before starting the dependent step. [Automation](/model-distillation/studio/automation) combines the full loop in one configuration.
</Accordion>
