Best AI News — Updated Every 3 Hours
Story Page
← All Stories
Home→ Community→ Story
Community

Applying Sliding Window Attention to pretrained LLMs at inference time [P]

Via r/MachineLearning
Sunday, Sep 6, 2026 · 9:23AM
Summary

I've been working on a practical implementation of Sliding Window Attention (SWA) for pretrained Hugging Face causal LLMs. The idea is simple: instead of allowing every generated token to attend to the complete historical KV cache, maintain a bounded cache consisting of: attention sinks + recent sli

Continue reading the full article
Read at r/MachineLearning
www.reddit.com
Back to all stories