internalsGet Pro

Module 10 · Lesson 3 of 12Pro

Transfer learning: reusing pretrained models

Level
Intermediate
Topic
Deep learning architectures
Reading time
17 min

When you finish this page you can

  1. Choose between a frozen backbone, partial fine-tuning and full fine-tuning from how much data you have and how far it is from the pretraining data.
  2. Freeze layers in PyTorch, including the batch normalization statistics that requires_grad does not stop.
  3. Give each layer group its own learning rate, and explain why the backbone’s must be smaller.
  4. Match a pretrained model’s preprocessing exactly, and spot the quiet failure when you don’t.
  1. Batch and layer normalization16 min
  2. Design: a classifier for product photos28 min
  3. Convolutional networks: learning from images17 min
  4. Vision architectures: ResNet to vision transformers17 min

Two thousand photos that look nothing like ImageNet

is the online store this course uses as its example. Its warehouse packs about 4,000 clothing orders a day. A spot check found 1 box in 250 holds the wrong item: about 16 returns and refunds a day.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan