Resources/Model training/Training methods

Best practice

Choosing a training method

The right training method depends mostly on the data you already have and the change you want. Chats teach answers, pairs teach preferences, scores teach checkable skills, documents teach knowledge, and a big model can teach a smaller one.

Chapter 75 min read4 references

What the choice is about

Every training method changes the model's weights, but each learns from a different signal. Supervised fine-tuning (SFT) is shown the right answer. Preference tuning (DPO) is shown two answers and told which is better. Reinforcement fine-tuning (RFT) writes its own answers and receives a score. Distillation copies a bigger model. Continued pre-training reads raw text and learns to predict the next word.

So the first question is not “which method is best?” but “what do I already have, and what should change?” A team with a thousand good support chats has an SFT dataset. A team whose agents edit draft replies is collecting preference pairs. A finance team with calculations that have one right figure has an RFT task. And if the model needs facts that change every week, training may not be the answer at all: retrieval, which looks facts up at question time, keeps them current without retraining.

MethodLearns fromData you needBest for
Supervised (SFT)“Here is the right answer”Chats, or prompt → response pairsTone, format, domain phrasing, repetitive tasks
Preference (DPO)“This answer beats that one”A better and a worse answer to the same questionPolishing a model that already does the task
Reinforcement (RFT)“Your answer scored 0.8”Questions plus a graderAnswers that can be checked: figures, labels, formats
Distillation“Answer like the bigger model”Questions; a teacher writes or grades answersA smaller, cheaper copy of a model that already works
Continued pre-trainingYour raw text, word by wordDocuments: tens of thousands of words or moreDomain knowledge, on open models

How the Training Assistant picks

The Training Assistant looks at the data you bring and recommends a method, with the reason:

  • Chats or prompt/response pairs → supervised fine-tuning.
  • Preference pairs → DPO.
  • Documents → continued pre-training.
  • Questions with checkable answers → reinforcement fine-tuning.
  • A smaller copy of a big model → distillation.
You haveMethod
Chats, or prompt → responsereplies you'd be happy to sendSupervised (SFT)copies the right answer
Pairs of answersa better and a worse reply to the same questionPreference (DPO)prefers the better one
Documentsmanuals, help articles, product pagesContinued pre-trainingor generate Q&A, on any provider
Questions with checkable answersa figure, a label, a formatReinforcement (RFT)chases a grader's score
A big model that already does it welland you want a smaller, cheaper copyDistillationanswers like the teacher
The Training Assistant's first question is what you already have. Each kind of data carries a different signal, and that signal decides the method. Only methods the chosen provider and base model support are offered.

It only offers methods that the chosen provider and base model support. Continued pre-training, for example, exists on Hugging Face and on Vertex AI open models but not on Gemini, Azure, Fireworks or current Bedrock models; there, documents are turned into generated Q&A instead, which trains as ordinary supervised data. The assistant asks you only when more than one method fits.

Methods stack

A run can continue from an earlier one, so methods are often combined rather than chosen once. The common chains are: supervised, then preference (teach the task, then polish it); supervised, then reinforcement (RL can only sharpen what the model already sometimes gets right); and continued pre-training, then supervised (read the documents, then learn to answer from them). Preference tuning starts only from the base model or a supervised run. Each link is evaluated against the model it started from, so you see what that step added.

Base modelpre-trained
→evaluated vs base modelSupervised runlearns the task
→evaluated vs supervised runPreference runpolishes answers
Each link in a chain starts from the weights the previous link produced, and is evaluated against that parent, so a result always measures what this step added.
Picking for a support team (illustrative)
  1. The team has 1,200 support chats, 60 help-center articles (about 45,000 words), 150 replies that agents corrected by hand, and 40 pricing questions with one right figure each.
  2. Chats → supervised first. They teach tone, format and the common answers. This is the foundation every later step builds on.
  3. Articles → generated Q&A, added to the same dataset. At about one section per 800 new words, 45,000 words give roughly 56 sections and, at three pairs each, about 170 extra examples. On an open model with this much text, continued pre-training before the supervised run is an option.
  4. Corrections → 150 preference pairs (the corrected reply preferred over the original), trained with DPO, continuing from the supervised run.
  5. Pricing questions → reinforcement fine-tuning with a numbers grader, but only once the supervised model already gets a fair share of them right; otherwise every attempt scores the same and there is nothing to learn from.
  6. Each step is evaluated against its parent. A step that doesn't beat it is archived, and the chain continues from the better model.

The settings it suggests

Once a method is chosen, the assistant suggests settings instead of asking about each one: the provider's auto mode where it has one, otherwise the provider's default number of epochs, and fewer epochs (1–2) for large datasets. Training is billed per token processed, and every extra pass over the data adds roughly one more epoch's worth of cost, while a large dataset already gives the model plenty of examples per pass.

Why large datasets get fewer epochs
dataset: 3,000,000 tokens          price (illustrative): $2 per 1M training tokens

3 epochs  →  9,000,000 tokens trained  →  $18
2 epochs  →  6,000,000 tokens trained  →  $12
1 epoch   →  3,000,000 tokens trained  →  $6

The methods at a glance

Supervised fine-tuningTypical Chats or prompt/response pairs; the first run on most projects#

The model sees the conversation and your reply, and learns to produce that reply. The foundation for everything else and usually the first method to try. It learns your data faithfully, including inconsistent or wrong replies.

Preference tuning (DPO)Typical Corrected replies, evaluation wins and losses, model-written worse answers#

The model sees a preferred and a non-preferred answer to the same question and shifts toward the preferred one. Good for qualities that are easier to judge than to write: concise, friendlier, doesn't invent features. Start it from a supervised run.

Reinforcement fine-tuningTypical Calculations, labels, formats; after a supervised run#

The model answers each prompt several times, a grader scores every answer, and the better-scoring kind of answer becomes more likely. It needs a way to score answers, not perfect answers, and it can't create ability the model never shows.

DistillationTypical A big model already does the job; cost or speed is the problem#

A large teacher model either writes the answers the small student learns from, or grades the student's own answers token by token. The result is a cheaper, faster model that behaves like the big one on your task.

Continued pre-trainingTypical A large body of documentation and an open model#

The model reads passages of your documents and learns to predict the next word, the way it was first trained. It adds knowledge, not behaviour, so follow it with a supervised run. Hugging Face and Vertex AI open models only.

Common mistakes

  • Reaching for reinforcement or preference tuning first. Without a supervised run there is usually little for them to sharpen or polish.
  • Expecting a few chats to teach product facts. Chats teach how to answer; the facts have to come from documents or retrieval.
  • Running continued pre-training on a handful of pages. It needs tens of thousands of words to change anything.
  • Keeping many epochs on a large dataset. Cost grows with every pass, and the extra passes mostly add overfitting.
  • Training when the real need is fresh information. Facts that change weekly belong in retrieval, not in the weights.

References and further reading

External sources open in a new tab.

  1. 01Model optimizationOpenAI API docs · developers.openai.comA provider's own overview of when to use supervised, preference and reinforcement fine-tuning.
  2. 02LIMA: Less Is More for AlignmentZhou et al., 2023 · arXiv · arxiv.org1,000 carefully chosen examples were enough to teach a strong base model a good answering style.
  3. 03Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafailov et al., 2023 · arXiv · arxiv.orgThe paper behind preference tuning without a separate reward model.
  4. 04Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMsOvadia et al., 2023 · arXiv · arxiv.orgRetrieval beat unsupervised fine-tuning for adding knowledge, in every setting tested.

Turn weeks of expert work into minutes

See how Scalata fits your team, your data, and your controls.