What is sliding-window attention?
Attention in which each token sees only the last N tokens. Its KV cache stops growing at N, so models that mix it with full attention keep long contexts cheap.
Learn it properly in the lesson →
Where it comes up
Lessons that use this term, most mentions first.
- Flash attention and long-context performance · 20 min · Pro
- KV cache layout and sampling inside an engine · 16 min · Pro
- KV-cache quantization · 20 min · Pro