Academy / Generative AI Engineering
Path 3 · Course 3 · For developers and ML practitionersFine-tuning & Model Optimisation
When to fine-tune versus prompt or use RAG; full fine-tuning, LoRA and other methods; preparing training data; running and evaluating a fine-tune; and making models smaller, faster and cheaper — with Python code.
0 of 6 modules complete
Modules
- 125 min
When to fine-tune
What fine-tuning is, the prompt → model → RAG → fine-tune ladder, strengths and weaknesses, where to fine-tune, and total cost.
- 230 min
Fine-tuning methods
Full fine-tuning, LoRA and QLoRA, SFT, preference tuning (DPO), reinforcement fine-tuning, continued pre-training, distillation and choosing a base model.
- 330 min
Preparing training data
Why data quality dominates, the JSONL chat format, qualities of good data, sources including synthetic data, validation and splits in Python, and personal data.
- 435 min
Running a fine-tune
A LoRA fine-tune in Python with open-source libraries, key hyperparameters, reading loss curves, hosted fine-tuning, and forgetting and safety erosion.
- 530 min
Evaluating fine-tuned models
Baselines, task metrics, comparing models in code, regression checks for ability, safety, fairness and memorisation, blind review, A/B tests and documentation.
- 630 min
Making models smaller, faster and cheaper
Quantisation, distillation, pruning and smaller models, routing, caching and batching, a cost calculation in Python and a decision checklist.