internalsGet Pro

Module 10 · Lesson 10 of 12Pro

Pretraining and fine-tuning

Level
Intermediate
Topic
Deep learning architectures
Reading time
16 min

When you finish this page you can

  1. Explain how a model learns from text nobody labelled, by hiding words and predicting them.
  2. Pretrain a small word encoder in PyTorch, then fine-tune it with a few labels and compare it with training from scratch.
  3. Predict when pretraining pays off, from how many labels you have and how many of your words they cover.
  4. Choose between a downloaded model, continued pretraining on your own text and pretraining from scratch.

Builds on 3 lessons

Start with lesson 317 min
  1. Transfer learning: reusing pretrained models17 min
  2. Learned embeddings: vectors for words, items and users18 min
  3. The transformer, layer by layer18 min

The model has never seen the word “crushed”

is the online store this course uses as its example. Customers write to its support team when something goes wrong. Joseph, who leads the growth team, wants each message tagged with its reason: late delivery, damaged item, wrong item, refund not received, or size doesn’t fit. Reasons behind complaints are early signs of customers about to leave.

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