Loading lesson page...
Attention Variants — Sliding Window, Sparse, Differential
BuildPythonNo prerequisitesFull 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.