Build a Large Language Model (From Scratch) · Chapter 3 · Video 8 of 14 · 9:32
How do you stop a model from reading ahead, and why give it many heads?
Episode 7 showed that at "it", GPT-2's attention is identical whether the sentence ends "too big" or "too small": it can't see ahead. But in training the whole text is in memory. We trained one tiny model twice on the same text; the copy allowed to look ahead scores 98% on its training text and then writes "the the the the". How is the future hidden, and why does GPT-2 run attention twelve times side by side?
Based on Build a Large Language Model (From Scratch) by Sebastian Raschka.