Rare find

Local Attention. A faster way to teach AI models to focus on nearby information instead of everything at once.

github.com/lucidrains/local-attention

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

July 2025
  • ci stuff
  • Release —1.11.2
  • quick change needed to test h-net
January 2025
  • Release —1.11.1
  • 1.11.1
  • Merge pull request #27 from minh-nguyenhoang/native-look-around
  • remove torch.cat in look_around()
  • Release —1.11.0
  • release more efficient look_around thanks to @minh-nguyenhoang !
  • Merge pull request #26 from minh-nguyenhoang/native-look-around
  • change look_around() to use native pytorch functionality
  • Release —1.10.1
  • hyper connect the local transformer
  • Release —1.10.0
  • allow for inserting layers before the local attention, for testing a …
September 2024
  • Release —1.9.15
  • remove a warning
July 2024
  • Release —1.9.14
  • make sure kv caching with dynamic pos bias works for local transformer
  • Release —1.9.11
  • remove adding staticmethod
  • Release —1.9.10
  • oops
  • Release —1.9.9
  • revert back to using plain apply_rotary_pos_emb fn
  • allow for argmax sampling
  • support kv cache for dynamic pos bias for local mha
  • address https://github.com/lucidrains/local-attention/issues/22
June 2024
  • support kv caching for non-exact window size
  • fix test gh action