Frontier Foundry

Fine-Tuning

The Training Gym · Post-training, RL & Reasoning

Further training a base model on your own data for a task or style.

Also called: fine-tune, fine-tuned, finetuning, finetune, LoRA, QLoRA, SFT, supervised fine-tuning, PEFT. In the glossary.

How it works, as a machineThe Adapter Bay · labeled pairs

Follow one labeled pair from a prompt with its answer beside it to a few changed weights by a frozen base, in a GPU training bay with a frozen-weights vault and a checkpoint library.

  1. Sort reflex from fact
  2. Set the rank
  3. Freeze the base
  4. Train the few weights
  5. Weigh the old answers
  6. Swap in the adapter
Play Fine-Tuning

Fine-Tuning in plain words

Fine-tuning continues the training of an existing model on a smaller set of examples for one task or style. The model keeps most of what it knows and shifts toward the new data. It buys behaviour that prompting cannot reach, at the cost of data, compute and one more model to maintain.

An analogy

A trained chef spending a month at one restaurant. They arrive able to cook; the month teaches this house's dishes and plating. It is far quicker than raising a chef from nothing, and they may leave a little rustier at everything else.

How Fine-Tuning connects

13 typed relations in the knowledge graph

Builds on

  • Evals: The forgetting scale is an eval: old answers, held back, compared before and after.
  • Retrieval-Augmented Generation: Facts that change belong in retrieval, so the weights only carry behavior and format.
  • Synthetic Data: When real pairs run short, a larger model writes more, and people check them.

Built on by

  • 3D Generation: The category adapters are a LoRA fine-tune of the shape stages, with the texture stage frozen.
  • Continual Learning: The adapter bench is a fine-tune, often a small LoRA adapter on a frozen base.
  • Distillation: The student is a small model taught further on what the teacher produced.
  • Looped Transformers: The first large looped model was a pretrained base converted by continued training.
  • Model Hubs & Remixing: Every adapter is a fine-tune of the same base; merging combines what each learned.
  • Open-Weight Models: The fine-tune forge is fine-tuning, and the same forge can take the refusals out.
  • Small Language Models: The vat is fine-tuning on synthetic examples of one narrow task.

Made possible by

  • Open-Weight Models: Weights that can be downloaded are weights that can be trained further.
  • Synthetic Data: When real examples are scarce, one model writes the training set for another.

An alternative to

Often in the same sources

Synthetic Data, RLHF & Preference Optimization, Small Language Models, Reinforcement Learning, Quantization, Pretraining

See Fine-Tuning in the knowledge graph

Who is behind Fine-Tuning

people, labs, products and models

People

  • Teknium (built): The Hermes open models and Hermes Agent at Nous Research.

Named in its facts

What the sources say

3 parts · 16 sources · updated 2026-11-27

Fine-tuning continues the training of a base model on a team's own labeled examples so it takes on a task, a format or a style. Most teams train a small adapter on top of frozen weights, score it on cases it never saw, and serve it. The sources agree that the training run is the short part: the examples before it and the regressions after it take the time.

The sorting bay

A tuning example is a prompt with its answer written beside it. The sorting bay keeps the pairs that teach what has stopped changing (a format, a judgment) and sends facts that change to retrieval or the prompt, because whatever is written into the weights stays there. Quality beats quantity.

  1. The reflex sorter keeps pairs that teach a format or judgment and sends facts that change to retrieval.
3K or 9K trajectories
Fixed number of SFT training trajectories in an experiment that varied only which verifier filtered them; the better verifier gave the better model at both sizes (Browserbase and Microsoft Research) Corby Rosset
~4k-10k vs ~700k samples
Teacher samples in recent community Claude-to-Qwen distillations vs the official DeepSeek-R1 distills, per a Reddit post AINews summarized; the small ones mostly changed style, not reasoning AINews
  • One team built a pipeline that collected examples, labeled them with an LLM judge, reviewed them by hand, made held-out sets, tuned, and checked its metrics. Dan Bjornn
  • When there were too few examples of a problem, the team had an LLM write more, then validated them by hand, because they wanted the best possible training data. Dan Bjornn
  • For a tiny on-device model, the usual workflow is to create the dataset synthetically with a larger model and upload it to a tuning tool, instead of listing the functions in a system prompt. Cormac Brick

When it breaksThe catalog that leaked into the weights. A support assistant was tuned on six months of tickets. When a new product catalog was later pasted into the prompt, the assistant still gave product names that did not exist, because the old catalog had been baked into the weights. Anant Srivastava

The weight bay

Tuning a model physically means changing numbers. Most teams freeze every base weight and train a small low-rank adapter beside it: the rank sets its size, the loss on each pair moves only its weights, and the checkpoint is tiny. The price is some accuracy.

  1. The adapter rank dial sets the size of the small matrices that will hold the change.
  2. The frozen base vault keeps every base weight fixed and clips the adapter on beside it.
  3. The tuning kiln computes the loss on the pair and updates only the adapter weights.
22.6 GB
Peak GPU memory when tuning a 3B-parameter model on a math set with a LoRA variant that reached 53.2% test accuracy, as measured by Hugging Face Hugging Face
about an hour
How long one fine-tuning run took in a production classifier workflow, depending on data size, reported by the team's data scientist Dan Bjornn
98.4%
Share of sampled Hugging Face model cards that name exactly one parameter-efficient technique and name LoRA (20,509 of 20,834) Hugging Face
9.3 million
Adapter parameters trained in total for two targeted image-model stages, at rank 8 and rank 16, a guide from Hugging Face Hugging Face
4 batches
Small batches whose gradients are added before each optimizer step in the adapter training loop of one guide Hugging Face
  • LoRA adds a handful of parameters on top of the base model, freezes the base weights, and trains only those few parameters. Hugging Face
  • Fine-tuning is memory-hungry: you generally need enough memory to fit the whole model several times over, which is why parameter-efficient techniques emerged. Hugging Face
  • Parameter-efficient tuning gives tiny checkpoints, greater resistance to catastrophic forgetting and the ability to serve several tunes from one base model, and it works on quantized models. Hugging Face

The checkpoint library

A tune is judged on what it forgot as well as what it learned. The adapter is scored against the old answers, then set on the shared base so it can answer real messages; several adapters can share one base, and some can be merged into it.

  1. The forgetting scale compares the old answers before and after the tune.
  2. The adapter swap crane sets a small adapter on the base so it answers real messages.
about a week
Time for one full cycle of gathering data, labeling, tuning, iterating and deploying a fix in one production workflow, reported by the team's data scientist Dan Bjornn
46% to over 90%
Function-calling success of a 270M-parameter model on an app task before and after tuning on synthetic data, eight of ten functions over 90%, reported by Google Cormac Brick
5 to 10 times
Cost reduction claimed for a post-trained model against a frontier model for one application, reported by the host of a tuning platform Sequoia
  • After each tuning run the team evaluated the model on held-out sets and checked its metrics before deploying. Dan Bjornn
  • The model never came out right on the first iteration: each tune fixed the target problem but caused regressions in other things. Dan Bjornn
  • In production the tuned classifier answered a confirmation with "I'm calling you right now" and called a customer who had only said good morning, which frustrated customers. Dan Bjornn

When it breaksFix one thing, break another. A tuned message classifier fixed the problem it was retrained for but caused regressions elsewhere. In production it answered a confirmation with a phone call to the customer. Each fix became a week-long game of whack-a-mole. Dan Bjornn

Open questionShould a team tune its own model, or buy a frontier model and give it better context?

  • Fine-tune only when you cannot call a frontier model; the tuned model became tech debt and a rebuilt context-based system beat it. Dan Bjornn
  • After product-market fit, post-training on your own data can cut serving cost five to ten times and bakes your product's taste into a model nobody can copy. Sequoia

Sources

16 in all

More in Post-training, RL & Reasoning

The Training Gym: the whole area