Fine-tune models on your agent's conversations

Introspection now fine-tunes the model your agent runs on its own labelled conversations, with SFT, DPO or GRPO, on Fireworks, Baseten or Tinker.

By Introspection Team2 min readShare

Your agent's conversations already hold the examples a model needs. Today Introspection can train on them. Label the replies, pick a provider and a method, and the platform fine-tunes the model your agent runs. The tuned model then answers in its place.

We support three providers, Fireworks, Baseten and Tinker, and three methods: SFT, DPO and GRPO reinforcement learning. Training and serving are billed by the provider to your own account.

Where your data goes

  • Data preparation stays on the Platform. Labelling, importing and building examples all happen in your project. That project can sit on a data plane entirely inside your own VPC on AWS, Azure or GCP.
  • Reward functions run in our secure sandboxes. The code that scores each reply for GRPO runs next to the data it reads.
  • Your provider key is write-only. It is stored in the project, and one key both trains and serves.

How a training runs

  1. Connect. Pick the provider and the model to tune, and give the project the provider's key.
  2. Prepare. Label replies in the annotations queue, or import a labelled file. A label is a dataset. Cases kept for evaluation are never trained on.
  3. Train. Run a short trial, then the full training. The training's page draws the train and test loss as each step lands.
  4. Serve. See the hardware and its hourly price, set a budget, and deploy. Then compare the base and tuned models on the held-out cases.

The Operator can do all of this with you, and it asks before anything is trained or deployed. You can also run each step from the terminal with introspection training.

Choose a method

  • SFT trains on labelled replies: the reply the model should give.
  • DPO trains on pairs, a better and a worse reply to the same prompt. It suits a model that answers in the right shape but sometimes picks the wrong answer.
  • GRPO is reinforcement learning on prompts and a reward. The model tries replies, and the reward function scores each one.

Start with SFT.

Start from a template

template-fine-tuning is an open-source recipe, Apache 2.0, with the least a recipe needs to train. Its agent is a small prompt router that decides whether a small or a big model should answer a prompt. The recipe holds training specs for SFT and DPO, 30 held-out cases and a judge.

introspection init my-fine-tuning --template template-fine-tuning

The README walks through a first training, from importing a labelled dataset to chatting with the tuned model. You can also create a runtime from the template on the Platform. Fine-tuning covers the rest.

← All news