Build a Large Language Model (From Scratch) · Chapter 4 · Video 9 of 14 · 9:37
Why can't you just stack attention layers?
Episode 8 finished GPT-2's attention layer. GPT-2 has twelve of them; why not just stack them? Stack GPT-2's own twelve trained attention layers with no shortcuts and nothing else, and the 14 token rows of our sentence go from 48 degrees apart on average to less than half a degree: every token points the same way. What are the three parts GPT-2 puts around attention, and what does each one prevent?
Based on Build a Large Language Model (From Scratch) by Sebastian Raschka.