{"adoption": {"forks": 54, "observed_at": "2026-08-28T04:03:15.542956+00:00", "stars": 1020}, "canonical_url": "https://ross.abutalabs.com/products/native-sparse-attention", "card": {"archived": false, "artifact_type": "library", "description": "🐳 Efficient Triton implementations for \"Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention\"", "domain": ["deep-learning", "large-language-models", "machine-learning", "gpu-computing"], "enriched": true, "function": ["machine-learning", "deep-learning", "llm-training", "gpu-computing", "benchmarking"], "health_score": 60, "homepage": "https://arxiv.org/abs/2502.11089", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["fla-org/native-sparse-attention"], "name": "fla-org/native-sparse-attention", "platform": ["python"], "pushed_at": "2026-02-05T02:22:09+00:00", "repo": "fla-org/native-sparse-attention", "stars": 1020, "tags": ["sparse-attention", "triton", "kernels", "long-context", "transformers", "attention-mechanism", "gpu", "linux", "cuda"], "topics": [], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/native-sparse-attention", "repo": "fla-org/native-sparse-attention", "role": "main", "score": 49}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.542956+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:09:16.993188+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "68824b404bb8baba6a9ee14c32b2c32415bb9f5b5b7755770539b3c38fae9d5a", "fetched_at": "2026-08-28T04:03:15.542956+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fla-org/native-sparse-attention"}, {"content_hash": "8f3dff948507c6df31cce7c75a3db6c7dfb4c2ed4f884762ee6ca27b1afc8ad6", "fetched_at": "2026-08-29T13:09:26.740916+00:00", "kind": "homepage", "missing": false, "url": "https://arxiv.org/abs/2502.11089"}, {"content_hash": "cca9c3a11c56b1212864e03fb8a5511a3bdb6df53398ba4dd2ed778f931607dd", "fetched_at": "2026-08-29T13:09:26.750238+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/donate.html"}, {"content_hash": "47cbc55ff1deaca3f36b463373de863a7053d91cacf9f95725618e11610209ae", "fetched_at": "2026-08-29T13:09:26.753857+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about/ourmembers.html"}, {"content_hash": "a1f16f915a9ad89ee57c3e929a1b6577d481f52c05f8015fc720b16ee8014f19", "fetched_at": "2026-08-29T13:09:26.755623+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/about"}, {"content_hash": "b14a8d05a0ec337409ab63bffd91306b5317b16fac358aa6d1fe6afbaf3c8628", "fetched_at": "2026-08-29T13:09:26.752126+00:00", "kind": "site_page", "missing": false, "url": "https://info.arxiv.org/labs/index.html"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 65, "longevity": 39, "rhythm": 35}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 558, "days_push": 210, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 49, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}