OpenNLPLab / lightning-attention
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆282Updated 2 months ago
Alternatives and similar repositories for lightning-attention:
Users that are interested in lightning-attention are comparing it to the libraries listed below
- TransMLA: Multi-Head Latent Attention Is All You Need☆243Updated this week
- Official implementation of TransNormerLLM: A Faster and Better LLM☆243Updated last year
- [ICLR 2025] COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training☆189Updated 2 weeks ago
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆101Updated 10 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆165Updated 11 months ago
- Low-bit optimizers for PyTorch☆128Updated last year
- 🔥 A minimal training framework for scaling FLA models☆117Updated this week
- ☆189Updated last year
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆103Updated last year
- DeepSeek Native Sparse Attention pytorch implementation☆63Updated 2 months ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆198Updated last year
- Efficient triton implementation of Native Sparse Attention.☆142Updated 3 weeks ago
- ☆147Updated last year
- The official implementation of Tensor ProducT ATTenTion Transformer (T6)☆367Updated 2 weeks ago
- USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inference☆488Updated 2 weeks ago
- [ICML'24] The official implementation of “Rethinking Optimization and Architecture for Tiny Language Models”☆121Updated 3 months ago
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆132Updated 10 months ago
- [NeurIPS 2024] KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization☆346Updated 8 months ago
- Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs☆163Updated this week
- ☆183Updated 3 weeks ago
- A collection of memory efficient attention operators implemented in the Triton language.☆266Updated 11 months ago
- 🐳 Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"☆647Updated last month
- Code repo for the paper "LLM-QAT Data-Free Quantization Aware Training for Large Language Models"☆284Updated 2 months ago
- Block Transformer: Global-to-Local Language Modeling for Fast Inference (NeurIPS 2024)☆153Updated 3 weeks ago
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793☆409Updated 3 weeks ago
- When it comes to optimizers, it's always better to be safe than sorry☆222Updated last month
- qwen-nsa☆57Updated 3 weeks ago
- [ICLR 2025] DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads☆456Updated 2 months ago
- ☆194Updated 6 months ago
- [NeurIPS 2024] Official Repository of The Mamba in the Llama: Distilling and Accelerating Hybrid Models☆215Updated this week