RunInfraby RightNow
  • CatalogNew
  • Pricing
  • Research
  • Contact
DashboardSign inGet started
Home/Glossary/Sliding-window attention

Memory

Sliding-window attention

What it is

Sliding-window attention limits each token to keys and values within a recent fixed-size window. Cache growth becomes bounded for layers that use the window.

Why it moves cost and latency

A bounded window controls memory use as sequences grow. Information beyond one window can propagate through stacked layers or through other attention patterns in the model.

What it looks like in practice

The runtime evicts positions that fall outside each layer's active window. Window size, layer pattern, and model training determine the quality and memory tradeoff.

Related terms

  • Paged attention->
  • Attention sinks->
  • RoPE scaling->
  • Context length->

Questions this definition answers

What does Sliding-window attention mean in inference serving?

Sliding-window attention limits each token to keys and values within a recent fixed-size window. Cache growth becomes bounded for layers that use the window. The runtime evicts positions that fall outside each layer's active window. Window size, layer pattern, and model training determine the quality and memory tradeoff.

Why can Sliding-window attention move cost or latency?

A bounded window controls memory use as sequences grow. Information beyond one window can propagate through stacked layers or through other attention patterns in the model.

If you need custom optimization for a specific model, describe what you need

Describe the model and hardware you want optimized...
ModelsAuto engineAuto GPU
End-to-end encryption
Isolated GPU infrastructure
No training on your data
SOC 2 Type II
RunInfraby RightNow

© 2026 RunInfra. All rights reserved.

System status
Pipeline BuilderModelsCost CalculatorPricingStartupsBenchmarksDocsResearchNewsContact
Backed by
YCombinator
AICPA Type II
SOC 2
NVIDIA Inception ProgramNVIDIA Inception Program
Ask AI about RunInfra
Part of RightNow
SecurityDPAAUPCookiesTermsPrivacy