Advanced level · Module 2 of 10 · 15 guided hours
Transfer Learning and Model Optimization
Getting the best model for limited data and hardware: advanced fine-tuning strategies, knowledge distillation, pruning, post-training quantisation in PyTorch, and measuring every trade-off.
Learning objectives
- Apply advanced fine-tuning strategies on small datasets
- Compress models with distillation, pruning and quantisation
- Measure accuracy, size and latency trade-offs
Topics
- gradual unfreezing and learning-rate schedules
- regularisation for small datasets
- knowledge distillation
- pruning
- post-training quantisation
- optimisation reports
Lessons
-
Lesson 1 Fine-Tuning Strategies for Small Datasets
Learners improve transfer learning with gradual unfreezing, discriminative learning rates, strong regularisation and careful validation on small local datasets.
gradual unfreezingparameter groupslabel smoothingcross-validation for small dataearly stopping
-
Lesson 2 Knowledge Distillation and Pruning
Learners train a small student model to imitate a larger teacher, and prune unimportant weights, measuring accuracy and speed.
teacher and studentsoft targets and temperaturedistillation losstorch.nn.utils.prunestructured vs unstructured pruning
-
Lesson 3 Post-Training Quantisation
Learners quantise a model from 32-bit floating point to 8-bit integers, measure the effect and understand when calibration data is needed.
FP32 vs INT8dynamic quantisationstatic quantisation with calibrationquantisation-aware trainingaccuracy drop
Practical activity
Optimise the chosen model with fine-tuning strategies, distillation, pruning and quantisation, and write an optimisation report with measured trade-offs.
Expected outcomes
- Practical model compression skills
- Evidence-based optimisation decisions
Assessment
Optimisation notebook (60%) and report (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.