OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆335Updated 9 months ago
Alternatives and similar repositories for lightning-attention
Users that are interested in lightning-attention are comparing it to the libraries listed below
Sorting:
- TransMLA: Multi-Head Latent Attention Is All You Need (NeurIPS 2025 Spotlight)☆413Updated 2 months ago
- Low-bit optimizers for PyTorch☆133Updated 2 years ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆248Updated last year
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆382Updated 2 months ago
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆196Updated 2 months ago
- 🔥 A minimal training framework for scaling FLA models☆314Updated 3 weeks ago
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆112Updated 2 years ago
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆250Updated 3 months ago
- Efficient triton implementation of Native Sparse Attention.☆251Updated 6 months ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆431Updated last month
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆185Updated last year
- ☆200Updated 2 years ago
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆212Updated 5 months ago
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆104Updated last year
- DeepSeek Native Sparse Attention pytorch implementation☆108Updated 3 weeks ago
- ☆132Updated 6 months ago
- Efficient LLM Inference over Long Sequences☆392Updated 5 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆151Updated last year
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆256Updated 5 months ago
- Implementation of FlashAttention in PyTorch☆175Updated 10 months ago
- qwen-nsa☆84Updated last month
- ☆157Updated 2 years ago
- Implementation of "Attention Is Off By One" by Evan Miller☆197Updated 2 years ago
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆137Updated last year
- ☆76Updated last month
- ☆303Updated 7 months ago
- [ICML 2025] Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization☆104Updated 6 months ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆218Updated last year
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆111Updated this week
- ☆99Updated 9 months ago