OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆330Updated 8 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☆132Updated 2 years ago
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆108Updated 2 years ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆247Updated last year
- TransMLA: Multi-Head Latent Attention Is All You Need (NeurIPS 2025 Spotlight)☆389Updated last month
- [NeurIPS 2025 Spotlight] TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆401Updated this week
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆242Updated 2 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
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆191Updated 3 weeks ago
- ☆156Updated 2 years ago
- 🔥 A minimal training framework for scaling FLA models☆266Updated last month
- ☆197Updated last year
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆239Updated 3 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆181Updated last year
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆197Updated 4 months ago
- ☆130Updated 4 months ago
- DeepSeek Native Sparse Attention pytorch implementation☆106Updated 2 weeks ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆331Updated last month
- Efficient triton implementation of Native Sparse Attention.☆238Updated 5 months ago
- Efficient LLM Inference over Long Sequences☆390Updated 4 months ago
- Implementation of "Attention Is Off By One" by Evan Miller☆196Updated 2 years ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆141Updated last year
- [NeurIPS 2024] Official Repository of The Mamba in the Llama: Distilling and Accelerating Hybrid Models☆231Updated last week
- Implementation of FlashAttention in PyTorch☆172Updated 9 months ago
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆137Updated last year
- The official implementation of the EMNLP 2023 paper LLM-FP4☆217Updated last year
- A quantization algorithm for LLM☆143Updated last year
- A collection of memory efficient attention operators implemented in the Triton language.☆282Updated last year
- [ICML 2025] Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization☆100Updated 4 months ago
- qwen-nsa☆79Updated last week
- [ICML'24] The official implementation of “Rethinking Optimization and Architecture for Tiny Language Models”☆124Updated 9 months ago