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.