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

GPT Model Assembly

BuildPython

Twelve blocks stacked, a token embedding, a learned position embedding, a final LayerNorm, and a tied language model head. That is the entire 124 million parameter GPT model. This lesson assembles those pieces into a working class, counts...

Loading lesson page...