GitHub · Python
qflen/nsa-from-scratch
From-scratch reimplementation of DeepSeek's Native Sparse Attention (arXiv:2502.11089) in Triton + CUDA Hopper WGMMA. 7.07x faster than FlashAttention-3 at 64k context. Five-model training fleet, perplexity sweep, LongBench v2, MoBA comparison.
- Stars
- 15
- Forks
- 0
- Stars gained in 24 hours
- Not enough history yet
- Forks gained in 24 hours
- Not enough history yet
Topics: attention-mechanism, cuda, deepseek, flash-attention, gpu-kernels, hopper, llm, long-context, native-sparse-attention, nsa
Latest data point: Nov 26, 2026 · 15 stars · 0 forks