Skip to content
mentoor

Topic 2 of 5 · 4 min read

Training, fine-tuning and inference

Goal: Tell whether a described step is pre-training, fine-tuning or inference and say who usually does it.

Pre-training builds the model, fine-tuning adapts it to a job, and inference is the moment it answers your request. These are three stages of a model's life, done by different people at different times.

Check yourself · 1 of 3

You ask a chatbot to summarise a report and it replies. Which stage is this?

Choose one answer

Why it matters

News stories mix these words up. "The company trained a model on your data" can mean three very different things, and only one of them changes the model. Knowing the stages helps you judge privacy claims, costs and who is responsible for what.

The three stages

  1. Pre-training (often just "training"). A lab such as OpenAI, Anthropic, Google or Meta feeds a model a huge amount of text and other data. The model adjusts its parameters to predict what comes next. This takes large computers and a long time, and it is done once per model. You will almost never do it.
  2. Fine-tuning. Someone takes the finished model and trains it a little more on a smaller, focused set of examples. The goal is a specific style, format or skill: for example, answering in a company's tone, or sorting support tickets. A company, a developer or the lab may do this. It changes the model's parameters.
  3. Inference. This is using the finished model. You type a prompt, the model produces a reply. Every chat message is inference. It does not change the parameters. Most of a provider's daily cost comes from inference at scale.

A fourth word you will hear is alignment or post-training: extra steps labs add after pre-training, using human feedback, so the model follows instructions and avoids harmful output. It is part of how a chat assistant becomes a chat assistant.

Before and after

Before: "I asked the chatbot to learn my style, so now it is trained on my emails."

After: "I pasted three of my emails into the prompt as examples. That is inference with examples in the context window. Nothing was trained."

Real fine-tuning would mean preparing many examples and running a separate job, usually through a developer tool.

What goes wrong

  • People believe each chat teaches the model. Some products may save chats and later use them for training, depending on settings and policy, but that happens in a separate step, not live.
  • People think fine-tuning adds new facts reliably. It is better at changing style and format. For up-to-date facts, giving the model sources works better.
  • People mix up "training" and "inference" in cost talk. Training is a big one-off bill for the lab. Inference is a small bill per request that adds up.

Examples

Sort the step

"A lab runs months of computing on web text" is pre-training. "A bank trains the model on 5,000 labelled complaints" is fine-tuning. "You ask for a summary and get one" is inference.

Who does what

Labs do pre-training. Companies and developers sometimes fine-tune. Everyone who uses an assistant does inference, often without noticing.

Key points

  • Pre-training builds the base model from huge amounts of data and is done by a lab, usually once per model.
  • Fine-tuning trains a finished model a little more on focused examples, to change its style, format or skill.
  • Inference is using the model to answer a request, and it does not change the model's parameters.
  • Pasting examples into a prompt is inference, not fine-tuning.
  • A privacy claim that data is used for training is separate from your chat being answered.

Common mistakes

  • Saying a model was trained when it was only given examples in a prompt.
  • Expecting fine-tuning to be the best way to add new, changing facts.
  • Thinking every chat message changes the model right away.
  • Mixing up the one-off cost of training with the per-request cost of inference.

Check yourself · 2 of 3

A company retrains a finished model on 2,000 of its own support replies so it answers in the house style. What is this called?

Choose one answer

Check yourself · 3 of 3

Which statement about pre-training is true?

Choose one answer

Practice items, not counted towards your mastery.

Start here