LLM Fine-Tuning
Decide when fine-tuning an LLM is warranted, adapt an open-weight model with parameter-efficient supervised fine-tuning, and prove the gain on held-out evaluations.
4 objectives 6 steps about 135 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Decide between prompting, retrieval and fine-tuning for a use case using a baseline evaluation, available data, cost and maintenance burden as criteria.
- Prepare an instruction or chat dataset in the model's chat template with deduplication, train/validation splits and loss masking on prompt tokens.
- Run supervised fine-tuning with LoRA or QLoRA within a GPU memory budget, choosing rank, alpha, target modules and learning rate, and explain how preference tuning such as DPO differs.
- Evaluate the tuned model against the base model on held-out task metrics plus a regression check of general behaviour, then merge or serve the adapter.
Lesson plan
6 steps, about 135 min · 5 of 5 lessons available so far
- Should You Fine-Tune? A Decision Framework Concept · 20 min
- Building an Instruction Dataset the Model Can Learn From Worked example · 25 min
- LoRA and QLoRA: Training Millions of Parameters Instead of Billions Concept · 20 min
- Lab: Supervised Fine-Tuning with LoRA on a Single GPU Lab · 30 min
- Lab: Base vs Tuned on Held-Out Data Lab · 25 min
- Check: Fine-Tuning Trade-offs Knowledge check · 8 questions
Practise it
Fine-tune a small open-weight instruct model (roughly 1-4B parameters) with QLoRA for a narrow task such as JSON field extraction, report exact-match and schema-validity on a held-out set against few-shot prompting of the base model, check a small general-ability set for regressions, and publish the adapter with a model card.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Large Language ModelAdvanced · 30–60 h
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.