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

Sparse Attention Python Packages

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

Fast Multi-dimensional Sparse Attention

12K 807 72
dliptak001
hypercube-hopfield

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

2K 1 0
lucidrains
native-sparse-attention-pytorch

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

1K 816 51
HKUSTDial
flash-sparse-attn

Trainable fast and memory-efficient sparse attention

390 762 54
SmallDoges
flash-dmattn

Trainable fast and memory-efficient sparse attention

125 762 54
hebo1221
nano-deepseek-v4

A compact, readable PyTorch reference implementation of the DeepSeek-V4 architecture (Flash and Pro), in the spirit of nanoGPT. ~4,300 LOC.

123 20 7
PardisTaghavi
sparsepr

Training-free sparse-attention acceleration for video diffusion and world models

102 1 0
bytedance
shadowkv

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

50 316 26
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology