internalsGet Pro

AI Engineering · Module 12

Fine-tuning and model customization

Lessons
9
Free
0
Reading
~3 h

Your progress

0 / 9 lessons done

Sign in to track

Lessons

  1. Prompting, RAG or fine-tuning: choosing the right fixSooner or later someone on your team says “just fine-tune it”. Knowing which problems training fixes, and which it makes worse, saves weeks of work and a model you then have to keep alive.16 min
  2. Fine-tuning basics: what changes in the modelWhen a narrow job must run on a model you host, fine-tuning is how a small open model learns it. Knowing what training changes tells you what it can fix, what it can break and what hardware it needs.18 min
  3. Preparing data for fine-tuningA fine-tuned model learns exactly what is in its training file, including the duplicates, the typos in the labels and the customer’s email address. Most of the work, and most of the mistakes, happen before training starts.18 min
  4. LoRA: fine-tuning with small add-on weightsWhen you fine-tune an open model, the GPU you have often can’t hold a full training run, and every extra task would need another full copy of the model. LoRA solves both, and its rank, alpha and target modules appear in almost every fine-tuning configuration you will read.17 min
  5. Distillation: training a small model from a large oneWhen one narrow job runs on a large hosted model, someone asks whether a small model you run yourself could learn it from the large model’s answers. Building that small model is a data job, and it starts with the provider’s terms.18 min
  6. Preference tuning: RLHF and DPO in plain termsAny product where people edit AI output collects better-and-worse pairs for free. Knowing what those pairs can teach a model, and what they can’t, decides whether you train on them or write the lesson into a prompt.18 min
  7. Synthetic data: generating training examplesSooner or later a classifier needs a category nobody has labelled yet, or one with a few dozen examples. Asking a large model to write the missing examples takes an afternoon; knowing which of them to trust takes engineering.18 min
  8. Evaluating a fine-tuned modelA fine-tuned model arrives with one good-looking score from its own training run. Before it touches real traffic, someone has to find out what that score hides, and decide which inputs the model may handle alone.18 min
  9. Lab: fine-tuning a small open model with LoRAReading about LoRA tells you the shape of the idea. Training one end to end, from a JSON Lines file to a 40 MB adapter that beats the base model on tickets it never saw, shows where the real work and the real traps are.26 min

Practise with

Terms this module teaches 48

Open glossary

Adapter (LoRA)

The small set of trained LoRA matrices for one task, saved as its own file and applied on top of the base model it was trained with.