12/23
Part 3 of 6 · Split the headsWatch
Watch · 17 min
Raschka rewrites multi-head attention as one projection that view cuts into heads, so every head attends at once, then joins the heads back with contiguous().view and says why view needs the contiguous call.
Build an LLM from Scratch 3: Coding attention mechanisms · Sebastian Raschka · Mar 2025YouTube