OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆327Updated 7 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)☆372Updated 2 weeks ago
- Low-bit optimizers for PyTorch☆131Updated last year
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆396Updated last week
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆109Updated 2 years ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆247Updated last year
- ☆156Updated 2 years ago
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆241Updated last month
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆192Updated 3 months ago
- 🔥 A minimal training framework for scaling FLA models☆255Updated 3 weeks ago
- ☆197Updated last year
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆234Updated 3 months ago
- Efficient triton implementation of Native Sparse Attention.☆226Updated 4 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆180Updated last year
- The official implementation of the EMNLP 2023 paper LLM-FP4☆215Updated last year
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆189Updated 3 months ago
- Implementation of FlashAttention in PyTorch☆171Updated 8 months ago
- ☆129Updated 4 months ago
- qwen-nsa☆75Updated 5 months ago
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆102Updated last year
- Efficient LLM Inference over Long Sequences☆391Updated 3 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆135Updated last year
- [ICLR2025] Codebase for "ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing", built on Megatron-LM.☆95Updated 9 months ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆308Updated 3 weeks ago
- A quantization algorithm for LLM☆143Updated last year
- A collection of memory efficient attention operators implemented in the Triton language.☆279Updated last year
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆137Updated last year
- DeepSeek Native Sparse Attention pytorch implementation☆97Updated 2 months ago
- Efficient Mixture of Experts for LLM Paper List☆131Updated last week
- [ICLR 2025] DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads☆493Updated 7 months ago
- Code repo for the paper "LLM-QAT Data-Free Quantization Aware Training for Large Language Models"☆315Updated 7 months ago