OpenNLPLab / lightning-attentionLinks
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆328Updated 6 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☆353Updated 2 weeks ago
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆239Updated last month
- Low-bit optimizers for PyTorch☆131Updated last year
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆178Updated last year
- 🔥 A minimal training framework for scaling FLA models☆239Updated this week
- The official implementation of TPA: Tensor ProducT ATTenTion Transformer (T6) (https://arxiv.org/abs/2501.06425)☆385Updated 3 weeks ago
- ☆197Updated last year
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆108Updated 2 years ago
- DeepSeek Native Sparse Attention pytorch implementation☆93Updated last month
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆188Updated 2 months ago
- Efficient triton implementation of Native Sparse Attention.☆215Updated 3 months ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆246Updated last year
- Flash-Muon: An Efficient Implementation of Muon Optimizer☆185Updated 3 months ago
- ☆154Updated 2 years ago
- [ICML 2025] XAttention: Block Sparse Attention with Antidiagonal Scoring☆226Updated 2 months ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆214Updated last year
- Efficient LLM Inference over Long Sequences☆391Updated 2 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
- ☆126Updated 3 months ago
- [ICLR 2025] DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads☆490Updated 7 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆134Updated last year
- qwen-nsa☆74Updated 5 months ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Rule☆228Updated 5 months ago
- Implementation of FlashAttention in PyTorch☆166Updated 8 months ago
- Official implementation of "Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding"☆453Updated this week
- Efficient Mixture of Experts for LLM Paper List☆124Updated this week
- [ICML 2025] Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization☆91Updated 3 months ago
- [ICLR2025] Codebase for "ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing", built on Megatron-LM.☆91Updated 8 months ago
- A quantization algorithm for LLM☆142Updated last year
- ☆49Updated this week