AI From Scratch/Phase 07/Lesson 15/~60 minutes

Attention Variants — Sliding Window, Sparse, Differential

BuildPythonNo prerequisites

Full attention is a circle. Every token sees every token, and memory pays the price. Four variants bend the shape of the circle and recover half the cost.

Loading lesson page...