OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆323Updated 5 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☆335Updated 3 weeks ago
- Low-bit optimizers for PyTorch☆130Updated last year
- Official implementation of TransNormerLLM: A Faster and Better LLM☆247Updated last year
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆183Updated last month
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆221Updated last month
- 🔥 A minimal training framework for scaling FLA models☆220Updated last month
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆106Updated 2 years ago
- DeepSeek Native Sparse Attention pytorch implementation☆83Updated 5 months ago
- Efficient triton implementation of Native Sparse Attention.☆186Updated 2 months ago
- ☆196Updated last year
- The official implementation of TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆380Updated last week
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆173Updated last year
- ☆153Updated 2 years ago
- ☆123Updated 2 months ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆211Updated last year
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆102Updated last year
- Official implementation of "Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding"☆320Updated this week
- ☆293Updated 3 months ago
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆213Updated last month
- qwen-nsa☆70Updated 3 months ago
- A quantization algorithm for LLM☆141Updated last year
- Efficient LLM Inference over Long Sequences☆385Updated last month
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆136Updated last year
- Implementation of FlashAttention in PyTorch☆159Updated 6 months ago
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆103Updated last week
- Unofficial implementation for the paper "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆167Updated last year
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆149Updated last month
- [ICML 2025] Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization☆82Updated 2 months ago
- [ICLR2025] Codebase for "ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing", built on Megatron-LM.☆85Updated 7 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆128Updated 11 months ago