OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆294Updated 3 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☆284Updated this week
- ☆191Updated last year
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆105Updated last year
- The official implementation of Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆373Updated 2 weeks ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆243Updated last year
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆203Updated 2 weeks ago
- ☆149Updated last year
- USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inference☆506Updated last week
- DeepSeek Native Sparse Attention pytorch implementation☆70Updated 3 months ago
- 🔥 A minimal training framework for scaling FLA models☆146Updated 3 weeks ago
- Low-bit optimizers for PyTorch☆128Updated last year
- A collection of memory efficient attention operators implemented in the Triton language.☆271Updated 11 months ago
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆101Updated 11 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆166Updated last year
- 🐳 Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"☆686Updated 2 months ago
- Efficient triton implementation of Native Sparse Attention.☆155Updated last week
- Ring attention implementation with flash attention☆771Updated last week
- ☆286Updated last month
- ☆188Updated last month
- XAttention: Block Sparse Attention with Antidiagonal Scoring☆158Updated 3 weeks ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆204Updated last year
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆166Updated last week
- A sparse attention kernel supporting mix sparse patterns☆219Updated 3 months ago
- Block Transformer: Global-to-Local Language Modeling for Fast Inference (NeurIPS 2024)☆155Updated last month
- When it comes to optimizers, it's always better to be safe than sorry☆233Updated 2 months ago
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆514Updated 2 weeks ago
- ☆222Updated 11 months ago
- Rectified Rotary Position Embeddings☆367Updated last year
- [ICML'24] The official implementation of “Rethinking Optimization and Architecture for Tiny Language Models”☆121Updated 4 months ago
- Triton-based implementation of Sparse Mixture of Experts.☆216Updated 6 months ago