For folks wondering what Sliding Window Attention is, there's a method for it on Papers with Code
Sliding Window Attention (SWA): A local attention pattern that restricts each token to attending only within a fixed-size neighborhood instead of the full sequence. This reduces attention and KV-cache memory for long-context models, while periodic global-attention layers can preserve broader context.
Find it here: