Skip to content
Inference Academy

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.

Related terms

All 115 terms