OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆340Updated 11 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:
- Low-bit optimizers for PyTorch☆138Updated 2 years ago
- TransMLA: Multi-Head Latent Attention Is All You Need (NeurIPS 2025 Spotlight)☆429Updated 4 months ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆250Updated 2 years ago
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆204Updated 2 months ago
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆258Updated 6 months ago
- Efficient triton implementation of Native Sparse Attention.☆262Updated 8 months ago
- 🔥 A minimal training framework for scaling FLA models☆344Updated 2 months ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆452Updated 4 months ago
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆112Updated 2 years ago
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆233Updated 7 months ago
- ☆157Updated 2 years ago
- ☆201Updated 2 years ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆445Updated 2 weeks ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆189Updated last year
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆269Updated 7 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆167Updated last year
- [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☆115Updated last month
- Efficient LLM Inference over Long Sequences☆394Updated 7 months ago
- Implementation of FlashAttention in PyTorch☆180Updated last year
- ☆235Updated last year
- The official implementation of the EMNLP 2023 paper LLM-FP4☆220Updated 2 years ago
- ☆131Updated 8 months ago
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793☆452Updated 8 months ago
- [ICML 2025] Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization☆108Updated 8 months ago
- USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inference☆641Updated 3 weeks ago
- [ICLR 2025] DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads☆524Updated last year
- Code repo for the paper "LLM-QAT Data-Free Quantization Aware Training for Large Language Models"☆322Updated 11 months ago
- SeerAttention: Learning Intrinsic Sparse Attention in Your LLMs☆192Updated 4 months ago
- ☆87Updated last week