P7 — Tensor Shapes for Transformers
About 55 min
Read before L5.7 — Self-Attention. P2 covered two-dimensional arrays. Here we track batch, time and channels in the actual L5.7 notebook. If you get every question below right, you can move to the next lesson. This is a non-numbered optional guide: its checks and Labs do not record course progress.
Quick Check
Goal
Trace (B,T,C) through head splitting, transpose, matmul, causal mask, softmax and merge. Locate these transformations in the L5.7 notebook and verify zero future attention mass.