openai/sparse_attention
Examples of using sparse attention, as in "Generating Long Sequences with Sparse Transformers" observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2700
- days_rel: n/a
- days_push: 2212
- n_releases_24m: 0
Adoption not part of the score
1613 stars · 192 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library of sparse attention primitives from OpenAI's Sparse Transformers paper, including fused normal attention and strided/fixed block-sparse attention kernels built on the blocksparse package. It also provides a recompute decorator for memory-efficient attention.
Use cases
- implement sparse transformers for long sequences
- speed up attention computation on GPUs
- use strided and fixed attention patterns
- reduce memory usage in transformer training with recomputation
- experiment with block-sparse attention kernels
- model long documents or sequences efficiently
When to choose
- you need block-sparse attention kernels matching the Sparse Transformers paper
- you work with TensorFlow and NVIDIA GPUs including Tensor Cores
- you want reference implementations of strided and fixed attention
When to avoid
- you need maintained or updated code - the repository is archived
- you use PyTorch rather than TensorFlow
- you lack an NVIDIA GPU with the required compute capability
- you want modern efficient attention like FlashAttention
Facets
library · maturity abandoned
machine-learning deep-learning gpu-computing deep-learning large-language-models gpu-computing python sparse-attention transformers cuda-kernels blocksparse archived gpu linux
1 source
- readme: https://github.com/openai/sparse_attention · fetched 2026-08-28 · 5cd18d399865
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| openai/sparse_attention | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="openai/sparse_attention")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem