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

Sparse Attention Python Packages

Python packages with the GitHub topic sparse-attention. Sorted by relevance, with stars and monthly downloads.
SHI-Labs
natten

Fast Multi-dimensional Sparse Attention

15K 768 62
lucidrains
native-sparse-attention-pytorch

Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper

4K 810 53
dliptak001
hypercube-hopfield

Modern Hopfield associative memory on a hypercube graph. Sparse local-attention retrieval with exponential capacity. C++23 and Python SDKs.

3K 1 0
HKUSTDial
flash-sparse-attn

Trainable fast and memory-efficient sparse attention

1K 721 52
SmallDoges
flash-dmattn

Trainable fast and memory-efficient sparse attention

257 721 52
bytedance
shadowkv

[ICML 2025 Spotlight] ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference

78 307 25
    • Data from PyPI, GitHub, ClickHouse, and BigQuery