PiotrNawrot / nano-sparse-attention
The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.
☆37Updated this week
Related projects ⓘ
Alternatives and complementary repositories for nano-sparse-attention
- Simple and efficient pytorch-native transformer training and inference (batched)☆61Updated 7 months ago
- The source code of our work "Prepacking: A Simple Method for Fast Prefilling and Increased Throughput in Large Language Models"☆56Updated last month
- Language models scale reliably with over-training and on downstream tasks☆94Updated 7 months ago
- ☆45Updated 9 months ago
- Understand and test language model architectures on synthetic tasks.☆162Updated 6 months ago
- Stick-breaking attention☆34Updated last week
- ☆77Updated 5 months ago
- ☆53Updated 3 weeks ago
- LLM KV cache compression made easy☆64Updated last week
- ☆50Updated 6 months ago
- A fusion of a linear layer and a cross entropy loss, written for pytorch in triton.☆54Updated 3 months ago
- ☆74Updated 11 months ago
- CUDA and Triton implementations of Flash Attention with SoftmaxN.☆66Updated 5 months ago
- ☆132Updated last year
- ☆96Updated last month
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"☆214Updated 3 months ago
- Cold Compress is a hackable, lightweight, and open-source toolkit for creating and benchmarking cache compression methods built on top of…☆87Updated 3 months ago
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆84Updated this week
- ☆71Updated 6 months ago
- Using FlexAttention to compute attention with different masking patterns☆40Updated last month
- Repository of the paper "Accelerating Transformer Inference for Translation via Parallel Decoding"☆110Updated 8 months ago
- ☆73Updated 4 months ago
- ☆62Updated 3 months ago
- ☆55Updated last month
- Revisiting Efficient Training Algorithms For Transformer-based Language Models (NeurIPS 2023)☆79Updated last year
- A fast implementation of T5/UL2 in PyTorch using Flash Attention☆71Updated last month
- Boosting 4-bit inference kernels with 2:4 Sparsity☆51Updated 2 months ago
- ☆35Updated 7 months ago
- ☆31Updated last year
- ☆45Updated 4 months ago