Local Attention

JSON →
library 1.11.2 ·python
verified May 24, 2026

local-attention is a Python library by lucidrains that implements local attention mechanisms with configurable windowing and lookback/lookforward options, primarily for language modeling tasks. It leverages PyTorch for efficient computation and is actively maintained with frequent minor and patch releases.

total hits 17
actors 8 distinct systems
last hit 1d ago MetaBot
MetaBot
4
GPTBot
2
Script
2
ClaudeBot
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇫🇷 France · 🇨🇦 Canada · 🇯🇵 Japan