OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆338Updated 10 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☆134Updated 2 years ago
- TransMLA: Multi-Head Latent Attention Is All You Need (NeurIPS 2025 Spotlight)☆418Updated 3 months ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆248Updated last year
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆198Updated 2 weeks ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆397Updated 3 months ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆435Updated last week
- ☆200Updated 2 years ago
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆252Updated 4 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆186Updated last year
- 🔥 A minimal training framework for scaling FLA models☆321Updated last month
- Implementation of FlashAttention in PyTorch☆176Updated 11 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
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆112Updated 2 years ago
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆256Updated 5 months ago
- Efficient triton implementation of Native Sparse Attention.☆254Updated 7 months ago
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆223Updated 6 months ago
- ☆157Updated 2 years ago
- [NeurIPS 2024] Official Repository of The Mamba in the Llama: Distilling and Accelerating Hybrid Models☆233Updated 2 months ago
- DeepSeek Native Sparse Attention pytorch implementation☆109Updated last month
- qwen-nsa☆85Updated 2 months ago
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆137Updated last year
- ☆303Updated 8 months ago
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆111Updated 3 weeks ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆219Updated 2 years ago
- Efficient Mixture of Experts for LLM Paper List☆149Updated 2 months ago
- Efficient LLM Inference over Long Sequences☆393Updated 5 months ago
- [ICLR2025] Codebase for "ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing", built on Megatron-LM.☆102Updated last year
- Triton implementation of FlashAttention2 that adds Custom Masks.☆155Updated last year
- ☆133Updated 6 months ago
- [ICML 2025] Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization☆105Updated 6 months ago