AI PM 10X / TECHNICAL FOUNDATIONS

Fine-tuning & Customization

The third lever for changing model behaviour, after prompting and retrieval. You further-train a base model on your own examples so the behaviour is baked into the weights, and the PM's job is knowing when that is worth it.

Overview

Fine-tuning is the third lever for changing how a model behaves, after prompting and retrieval. Instead of supplying instructions and context at runtime, you further-train a base model on your own examples so the behaviour is baked into the weights. The result is a model that produces a consistent format, tone, or domain skill without being told how every time.

For a product manager the real question is when it is worth it. Reach for fine-tuning once prompting and retrieval have hit a ceiling, when you need consistency at scale or when long few-shot prompts have grown too slow and expensive. It costs data, money, and ongoing maintenance, and it ties you to one base model. Reach for it only after the cheaper levers have run out of road.

Why It Matters for PMs

A later resort, reached last

Prompting and retrieval ship in hours and cost almost nothing. Fine-tuning costs data, money, and ongoing maintenance. Reach for it once the cheaper levers have hit a ceiling.

Behaviour baked into the weights

Fine-tuning trains the desired behaviour into the model itself rather than supplying it at runtime. That buys a consistent format, tone, or domain skill at scale, and shorter prompts that run faster and cheaper.

It locks you to a model

A fine-tune is tied to one base model. When a better model ships, your custom weights do not move with it, so you retrain. Factor that recurring cost into any decision to fine-tune.

Key Concepts

Three things to get straight before you decide to fine-tune anything

1

When to fine-tune vs prompt vs RAG

The core judgement

These are three levers for changing model behaviour, in rough order of cost. Start with promptingpromptingWriting the instructions, context, and examples that tell a model what to do. The cheapest and fastest lever. Ships in minutes with no training and no infrastructure.Prompting Guide. When the model lacks current or private facts, add retrievalretrievalRetrieval-augmented generation. You fetch relevant documents at query time and put them in the prompt, so the model answers from your data without being retrained. The right fix when the model has a knowledge gap rather than a skill gap.IBM: RAG vs fine-tuning. Reach for fine-tuningfine-tuningFurther-training a base model on your own examples so the behaviour is baked into the weights rather than supplied at runtime. Worth it when you need a consistent format, tone, or domain skill at scale, or when long few-shot prompts are too slow and expensive.OpenAI fine-tuning guide only when prompting and RAG have run out of road.

2

How fine-tuning works

Data · Train · Evaluate

You start with a curated datasetcurated datasetA set of input/output examples that demonstrate the behaviour you want, often a few hundred to a few thousand. Quality and consistency matter more than raw volume. Bad examples teach bad habits.OpenAI on dataset prep, run a training jobtraining jobA training run that nudges the model's weights toward your examples. Managed providers handle the infrastructure. The output is a new model version you call like any other.Hugging Face: training, then measure the result on a held-out eval setheld-out eval setExamples the model never saw during training. You score the fine-tuned model against them to check it actually improved rather than memorised the training set. No held-out eval means no real evidence.OpenAI: evaluating results. If the score does not beat a well-prompted base model, you keep the prompt.

3

Lightweight and preference methods

LoRA · RLHF · Distillation

Full retraining is rarely needed. LoRA and PEFTLoRA and PEFTLoRA and parameter-efficient fine-tuning train a small set of extra weights and freeze the rest. You get most of the benefit for a fraction of the compute, often on a single GPU.Hugging Face: LoRA cut the cost sharply. To shape tone and judgement rather than format, use preference tuningpreference tuningPreference tuning teaches a model which of two answers people prefer. RLHF and the simpler DPO are how chat models learn to be helpful and well-mannered rather than merely fluent.Hugging Face: RLHF. And to make a model cheaper to run, distillationdistillationDistillation trains a small student model to imitate a large teacher model, keeping most of the quality at a fraction of the cost and latency. The basis of many small, fast production models.IBM: knowledge distillation shrinks it.

Methods to know

Hover over any term for a plain-English explanation and a link to go deeper.

Methods

How the training is done

Full fine-tuningFull fine-tuningUpdating every weight in the model on your examples. The most thorough and the most expensive, and it produces a large new model to host. Rarely the right first choice now that lightweight methods exist.Hugging Face: trainingLoRA / PEFTLoRA / PEFTParameter-efficient fine-tuning trains a small set of added weights and freezes the original model. LoRA is the most common variant. It cuts compute and storage sharply and often runs on a single GPU.Hugging Face: LoRAInstruction tuningInstruction tuningFine-tuning a base model on instruction-and-response pairs so it follows directions well. It is the step that turns a raw text predictor into something that behaves like an assistant.Ouyang et al., 2022 (arXiv)
Alignment

Shaping tone and judgement

RLHFRLHFReinforcement learning from human feedback. People rank model outputs, a reward model learns those preferences, and the model is tuned to score well against it. How most chat assistants learn to be helpful and safe.Hugging Face: RLHFDPODPODirect preference optimization. A simpler, more stable alternative to RLHF that tunes the model straight from preferred-versus-rejected answer pairs, with no separate reward model to train.Rafailov et al., 2023 (arXiv)Preference dataPreference dataPairs of answers where a human marked one better than the other. This is the raw material for RLHF and DPO. Its quality and coverage set the ceiling on how well alignment works.Hugging Face TRL
Efficiency

Cheaper, faster models

DistillationDistillationTraining a small student model to copy a large teacher model. You keep most of the quality at a fraction of the cost and latency, which is how many fast production models are built.IBM: distillationQuantizationQuantizationStoring the model weights at lower numerical precision, for example 4-bit instead of 16-bit. It shrinks memory use and speeds up inference with a small, usually acceptable, hit to quality.IBM: quantizationQLoRAQLoRALoRA applied on top of a quantized base model. It lets you fine-tune very large models on modest hardware by combining low-rank adapters with low-precision weights.Hugging Face: adapters
Data

The work behind the result

Dataset curationDataset curationAssembling clean, consistent, representative examples of the behaviour you want. This is where most of the effort and most of the outcome lives. The model learns whatever your data demonstrates, good or bad.Schmid: fine-tuning guideLabelingLabelingProducing the correct outputs and preference judgements for your examples, usually by people. It is slow and costly, and its quality directly bounds how good the fine-tuned model can be.Hugging Face courseEval splitsEval splitsHolding back part of your data so you can score the trained model on examples it never saw. Without a clean train and eval split you cannot tell improvement from memorisation.OpenAI fine-tuning guide

In Practice

Four ways the fine-tuning decision changes what a PM actually does

1

Diagnosing the failure before you train

When an AI feature misbehaves, name the gap first. If the model is missing facts, use retrieval. Fine-tuning will not place them there reliably. If it is missing a skill or a consistent style, fine-tuning is the right lever. Retrieval cannot close that gap. Picking the wrong tool burns weeks and teaches the team nothing.

2

Earning the cost with an eval before you commit

A fine-tune is only worth it if it beats a well-prompted base model on a held-out set you trust. Before committing data and budget, build that eval and check what a strong prompt already achieves. Often the prompt closes most of the gap, and the fine-tune is not worth the maintenance it would add.

3

Buying speed and consistency at scale

Long few-shot prompts are slow and expensive on every call. When a feature runs at high volume and needs a fixed format or tone, fine-tuning bakes that behaviour into the weights and lets you drop the examples from the prompt. The payoff is shorter, cheaper, faster calls that behave the same way every time.

4

Planning for the lock-in you are taking on

A fine-tuned model is married to one base model and one snapshot of your data. When a better base model ships, or your domain shifts, you retrain. Treat the dataset and eval suite as durable assets, version them, and budget for periodic retraining rather than assuming the model is finished.

Curated Resources

Videos

Key Takeaway

Fine-tuning is the last lever you pull. Prove a well-prompted base model cannot do the job, then train on clean data, hold out an eval to earn the cost, and budget for the retraining the lock-in will demand.