PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Linear Attention Python Packages

Python packages with the GitHub topic linear-attention. Sorted by monthly downloads, with stars and forks.
SNU-ARC
sketchssm

SketchSSM: Write to the Full State, Read from a Compact Sketch

4K 13 0
lucidrains
taylor-series-linear-attention

Explorations into the recently proposed Taylor Series Linear Attention

2K 102 3
lucidrains
bdh-cq

Implementation of BDH-CQ: In-Context Learning with Recurrent Latent Reasoning, proposed by Pathway Research

2K 36 5
lucidrains
agent-attention-pytorch

Implementation of Agent Attention in Pytorch

542 93 5
codexblack
darkformer-pytorch

Unofficial Pytorch-based implementation of Google DeepMind's "Data-Aware Random Feature Kernels for Transformers" architecture. Featuring encoder-decoder models, language models, deterministic projections, and optional FlashAttention 2/3 support.

364 2 0
mtanghu
leap-transformer

LEAP: Linear Explainable Attention in Parallel for causal language modeling with O(1) path length, and O(1) inference

95 4 1
d-csil
mlx-recurrence

Fused Metal training kernels for linear recurrence on Apple Silicon — SSD (Mamba-2), GLA, RG-LRU, rotational LRU. Flash-linear-attention for MLX: 12-18x less training memory, production-validated.

64 4 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology