Applying Sliding Window Attention to pretrained LLMs at inference time [P]
This story is from 2026-09-06. It is preserved in the archive; the latest stories are on the live feed.
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 sl…
Read the full story at r/MachineLearning ↗
Timeline · 3 reports
- 2026-09-06 21:06 · r/machinelearningnews
Applying Sliding Window Attention to pretrained LLMs at inference time [P] - 2026-09-06 09:32 · r/LocalLLM
I implemented Sliding Window Attention for Hugging Face LLM inference — looking for feedback - 2026-09-06 09:23 · r/MachineLearning
Applying Sliding Window Attention to pretrained LLMs at inference time [P]