PiotrNawrot / nano-sparse-attentionLinks
The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.
☆92Updated 6 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☆114Updated this week
- ☆83Updated 2 years 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
- Cold Compress is a hackable, lightweight, and open-source toolkit for creating and benchmarking cache compression methods built on top of…☆148Updated last year
- Fast and memory-efficient exact attention☆75Updated 10 months ago
- Tree Attention: Topology-aware Decoding for Long-Context Attention on GPU clusters☆131Updated last year
- ☆124Updated last year
- Code for NeurIPS 2024 Spotlight: "Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations"☆88Updated last year
- [ICML 2025] From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories and Applications☆52Updated 3 months ago
- Code for studying the super weight in LLM☆120Updated 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 9 months ago
- Simple and efficient pytorch-native transformer training and inference (batched)☆79Updated last year
- A fusion of a linear layer and a cross entropy loss, written for pytorch in triton.☆75Updated last year
- ☆63Updated 7 months ago
- Flash Attention in 300-500 lines of CUDA/C++☆36Updated 5 months ago
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆73Updated last year
- ☆132Updated 8 months ago
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆229Updated 7 months ago
- Boosting 4-bit inference kernels with 2:4 Sparsity☆93Updated last year
- ☆158Updated 11 months ago
- ☆150Updated 2 years ago
- The official implementation of paper: SimLayerKV: A Simple Framework for Layer-Level KV Cache Reduction.☆52Updated last year
- ☆104Updated 11 months ago
- ☆54Updated last year
- ☆85Updated 2 months ago
- Transformers components but in Triton☆34Updated 8 months ago
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"☆246Updated 7 months ago
- Experiments on Multi-Head Latent Attention☆99Updated last year
- The official implementation of the paper "Towards Efficient Mixture of Experts: A Holistic Study of Compression Techniques (TMLR)".☆88Updated 10 months ago
- An efficient implementation of the NSA (Native Sparse Attention) kernel☆128Updated 7 months ago