PiotrNawrot / nano-sparse-attentionLinks
The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.
☆91Updated 4 months ago
Alternatives and similar repositories for nano-sparse-attention
Users that are interested in nano-sparse-attention are comparing it to the libraries listed below
Sorting:
- The evaluation framework for training-free sparse attention in LLMs☆106Updated last month
- Fast and memory-efficient exact attention☆74Updated 9 months ago
- The source code of our work "Prepacking: A Simple Method for Fast Prefilling and Increased Throughput in Large Language Models" [AISTATS …☆60Updated last year
- ☆83Updated 2 years ago
- Cold Compress is a hackable, lightweight, and open-source toolkit for creating and benchmarking cache compression methods built on top of…☆146Updated last year
- Simple and efficient pytorch-native transformer training and inference (batched)☆78Updated last year
- Tree Attention: Topology-aware Decoding for Long-Context Attention on GPU clusters☆130Updated last year
- Layer-Condensed KV cache w/ 10 times larger batch size, fewer params and less computation. Dramatic speed up with better task performance…☆157Updated 7 months ago
- ☆150Updated 2 years ago
- Flash Attention in 300-500 lines of CUDA/C++☆36Updated 3 months ago
- ☆121Updated last year
- ☆154Updated 9 months ago
- A fusion of a linear layer and a cross entropy loss, written for pytorch in triton.☆73Updated last year
- ☆132Updated 6 months ago
- Code for NeurIPS 2024 Spotlight: "Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations"☆85Updated last year
- ☆85Updated 3 weeks ago
- ☆99Updated 9 months ago
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆212Updated 5 months ago
- Code for studying the super weight in LLM☆121Updated last year
- ☆128Updated last year
- Stick-breaking attention☆61Updated 5 months ago
- ☆53Updated last year
- Muon fsdp 2☆46Updated 3 months ago
- [ICML 2025] From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories and Applications☆51Updated last month
- Kinetics: Rethinking Test-Time Scaling Laws☆82Updated 4 months ago
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"☆243Updated 5 months ago
- Using FlexAttention to compute attention with different masking patterns☆47Updated last year
- ☆53Updated last year
- Boosting 4-bit inference kernels with 2:4 Sparsity☆86Updated last year
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆73Updated last year