OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆339Updated 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:
- TransMLA: Multi-Head Latent Attention Is All You Need (NeurIPS 2025 Spotlight)☆429Updated 4 months ago
- Low-bit optimizers for PyTorch☆137Updated 2 years ago
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆258Updated 5 months ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆249Updated 2 years ago
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆113Updated 2 years ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆433Updated 4 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆190Updated last year
- 🔥 A minimal training framework for scaling FLA models☆341Updated 2 months ago
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆203Updated last month
- ☆201Updated 2 years ago
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆445Updated this week
- Efficient triton implementation of Native Sparse Attention.☆262Updated 8 months ago
- DeepSeek Native Sparse Attention pytorch implementation☆114Updated last month
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆267Updated 6 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
- ☆132Updated 8 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆163Updated last year
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆139Updated last year
- ☆157Updated 2 years ago
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆229Updated 7 months ago
- qwen-nsa☆87Updated 3 months ago
- [ICLR2025] Codebase for "ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing", built on Megatron-LM.☆105Updated last year
- Efficient LLM Inference over Long Sequences☆394Updated 7 months ago
- A quantization algorithm for LLM☆148Updated last year
- Implementation of FlashAttention in PyTorch☆180Updated last year
- [NeurIPS 2024] Official Repository of The Mamba in the Llama: Distilling and Accelerating Hybrid Models☆236Updated 3 months ago
- ☆209Updated 3 months ago
- ☆449Updated 5 months ago
- Implementation of the paper: "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆113Updated this week
- Implementation of "Attention Is Off By One" by Evan Miller☆198Updated 2 years ago