Ross ROSS = Recommend OSS · open-source software intelligence for agents

fla-org/native-sparse-attention

🐳 Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention" observed · 2026-08-28

github.com/fla-org/native-sparse-attention · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

49/100

  • Activity 65
  • Release rhythm 35
  • Longevity 39

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 558
  • days_rel: n/a
  • days_push: 210
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1020 stars · 54 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Efficient Triton kernel implementations of Native Sparse Attention (NSA), a hardware-aligned, natively trainable sparse attention mechanism for long-context language models. It provides fused kernels for token compression, top-k block selection, and sliding-window attention, with support for training and variable-length inputs.

Use cases

  • speed up long-context attention in transformer models
  • pretrain language models with sparse attention
  • implement natively trainable sparse attention kernels in Triton
  • benchmark sparse attention performance on GPUs
  • run attention with top-k block selection without materializing the attention matrix
  • handle variable-length sequences with sparse attention

When to choose

  • you need efficient, GPU-optimized sparse attention for long-context LLM training or inference
  • you want to reproduce or build on the NSA paper (arXiv:2502.11089)
  • you need fused Triton kernels combining selected and sliding-window attention
  • you want to reduce pretraining compute without sacrificing model quality

When to avoid

  • you need a general-purpose attention library with many attention variants
  • your workloads are short-context where full attention is already fast enough
  • you lack CUDA GPUs, since the kernels are Triton/CUDA-based
  • you need production support or a stable API - the project is research-oriented

Facets

library · maturity active

machine-learning deep-learning llm-training gpu-computing benchmarking deep-learning large-language-models machine-learning gpu-computing python sparse-attention triton kernels long-context transformers attention-mechanism gpu linux cuda

6 sources

Member repositories

RepositoryRoleHealth v2
fla-org/native-sparse-attentionmain49

For agents

markdown · JSON · MCP: product_card(name="fla-org/native-sparse-attention")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem