Decide, train, then show the result.
All eight chapters are listed on the course page.
Mirage Academy · Fine-tuning
You have a model that almost works for your domain, and your team asks whether to fine-tune it. This course teaches you to make that call and defend it: when to adapt a model instead of retrieving, how to prepare data, how to train efficiently, and how to show the improvement against a baseline.
The course
Masters level, taught in English, and aimed at engineers and product people who ship AI features. Watch the intro, then follow the route.

You have a model that almost works for your domain, and a team asking whether to fine-tune it. This course is for the engineer who has to make that call and defend it. First you learn to choose. Retrieval and prompting suit knowledge that changes. Fine-tuning suits behaviour you want built into the model. Either way, you check against a baseline. Then you run the loop. You prepare training data, including instruction and synthetic examples. You train with supervised fine-tuning, LoRA and QLoRA. You align with preference optimisation and DPO. You evaluate before and after, and repeat until the model beats its baseline. The course ends with a capstone: you build a domain model and prove it beats its baseline. If you need to decide, train and show the result, start with the first chapter.
The route
Chapter 1
Retrieval and prompting suit knowledge that changes. Fine-tuning suits behavior you want built into the model. Whichever you pick, you measure it next to a baseline.
A model that almost works
Both paths end at the baseline.
Look at how the current model fails, then pick the remedy that fits that failure.
Set prompts and fine-tuning side by side, with the numbers of your own case.
Measure a baseline before training, and learn how far a score moves without any change.
Write down what fine-tuning cannot do, the risks, and why you chose it.
When retrieval fits better: the RAG course →Cheaper first: the prompt engineering course →
Chapter 2
Training data decides what the model learns. This chapter covers the formats, the cleaning, the quality of the labels, the splits and the size of the data.
Example records, invented for this page
The rule: a record sits in one split only. When the same text is in training and in test, the test score rewards memory, not skill.
How a training example is written down for the model.
Remove duplicates and broken records before they teach the wrong thing.
Check that the answers you train on are the answers you want.
Keep training, validation and test apart, and find the places where they mix.
Count what the data will cost to train on before you start.
Chapter 3
Training loss keeps falling as the model fits the examples. Validation loss falls too, and then turns up once the model starts to memorize. One common reading: the lowest point of the validation curve is where to stop.
An illustration of a shape, with no measured values
Training lossValidation lossDotted line: lowest validation loss, one common stopping point
loss / training steps
What the model is asked to get right at each step.
The three settings that shape a run most.
Tell a healthy run from a model that has started to memorize.
Work out what a full run needs before you rent anything.
Keep the prompt format and the length limits consistent.
Chapter 4
Full fine-tuning updates all weights. LoRA keeps the matrix frozen and learns a small low-rank change beside it, and QLoRA does that on a compressed base. Try the arithmetic yourself.
Both matrix shapes are examples for this page, not the shapes of a named model.
Frozen matrix, not trainedThe two thin matrices LoRA trains (drawn thicker for a higher rank, not to scale)
Matrix 4,096 x 4,096, rank 8: LoRA trains 65,536 numbers, 0.39% of the matrix, 256 times fewer.
The rule: a matrix with d rows and k columns holds d x k numbers. LoRA freezes it and trains two thin matrices, one d x r and one r x k, which is r x (d + k) numbers. The share is the trained numbers divided by all the numbers in the matrix.
Learn a small change beside a big matrix instead of rewriting it.
Choose how large the change is and which layers get one.
Keep the frozen base in compressed form so training needs less memory.
Fold the adapter into the base model, or serve it beside the base.
Decide which one your case needs, and write down why.
Chapters 5 and 6
Chapter 5 is about teaching a model to follow instructions and about data a stronger model generates. Chapter 6 moves to preferences, from RLHF to the DPO loss, which you work through by hand.
Examples, invented for this page
Teach the model to follow a request and answer in the format you need.
Generate examples with a stronger model, and audit a sample of them.
Check that test items did not leak into the generated data.
Work the preference loss through on a small example, then read the result.
Chapter 7
A better average can hide a broken case. The chapter has you freeze the protocol first, then compare the tuned model with the baseline case by case.
Example counts, invented for this page: 100 test cases
| Tuned right | Tuned wrong | |
|---|---|---|
| Baseline right | 62right both times | 5broken by the tuning |
| Baseline wrong | 21fixed by the tuning | 12wrong both times |
Fix the test set and the scoring before the first run, and keep them.
Count the cases the tuning repaired and the cases it damaged.
Look at groups of cases as well as the overall score.
Know when a model can grade the answers and when a person must.
Chapter 8
You scope the target, prepare the data, plan the runs, evaluate against the baseline and write the memo.
The capstone in five steps
The goal: compare the tuned model with the baseline on your frozen test.
How you learn
In the Academy, an AI coach you talk to by voice follows the lessons.
Per the app, the coach asks follow-up questions after a lesson and tests what you understood about training and evaluation.
You save notes, and the app starts your next session from them.
At the end there is a certificate, or a confirmation of participation, depending on your path through the course. It is a PDF with a verification code, checkable by anyone on a public page. Mirage issues it, and it is not a state-recognized qualification.
People who build AI features: software engineers and technical product people. The level is Masters.
Retrieval brings knowledge to a model at question time, and fine-tuning changes how the model behaves. Chapter 1 teaches you to diagnose failures, weigh the cost and write down the decision.
LoRA keeps a model's weight matrix frozen and trains two thin matrices beside it, so far fewer numbers change. The island on this page counts them for two example matrices. QLoRA applies the idea to a compressed base model, in chapter 4.
Yes. Chapter 6 covers preference optimization and DPO, from RLHF to the DPO loss, and it includes the role of beta and the reference model. The RLHF course goes through the whole preference pipeline.
By measuring both models on a protocol you froze before training. Chapter 7 covers precision, recall and F1, the cases fixed and broken, regression and slices, and when judges and humans grade.
The capstone: a domain model that beats its baseline. You scope the target, prepare the data, plan the runs, evaluate against the baseline and write a memo.
The course is in English only, and so is this page. No German version exists.
Yes, with one note: depending on how you went through the course, it ends with a certificate or a confirmation of participation. A verification code lets anyone check it on a public page. The page about certificates says it is not state-recognized.
All eight chapters are listed on the course page.