AI From Scratch/Phase 19/Lesson 38/~90 minutes

Capstone Lesson 38: Classifier Fine-Tuning by Head Swap

BuildPython (torchnumpy)No prerequisites

Track B's first capstone. A pretrained language model is a stack of self-attention blocks ending in a token-prediction head. When you want spam vs ham, the head is wrong but the body is mostly right. This lesson rips the head off, glues a...

Loading lesson page...