OpenNLPLab / lightning-attention
Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models
☆260Updated this week
Alternatives and similar repositories for lightning-attention:
Users that are interested in lightning-attention are comparing it to the libraries listed below
- Official implementation of TransNormerLLM: A Faster and Better LLM☆240Updated last year
- Low-bit optimizers for PyTorch☆125Updated last year
- ☆143Updated last year
- USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inference☆428Updated this week
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆102Updated last year
- [ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear at…☆99Updated 8 months ago
- ☆187Updated last year
- Rectified Rotary Position Embeddings☆351Updated 9 months ago
- The official implementation of the EMNLP 2023 paper LLM-FP4☆184Updated last year
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆151Updated 9 months ago
- Ring attention implementation with flash attention☆677Updated this week
- [ICML'24] The official implementation of “Rethinking Optimization and Architecture for Tiny Language Models”☆120Updated last month
- Block Transformer: Global-to-Local Language Modeling for Fast Inference (NeurIPS 2024)☆149Updated 2 months ago
- ☆111Updated last week
- Code repo for the paper "LLM-QAT Data-Free Quantization Aware Training for Large Language Models"☆269Updated 5 months ago
- A collection of memory efficient attention operators implemented in the Triton language.☆240Updated 8 months ago
- Official repository for LightSeq: Sequence Level Parallelism for Distributed Training of Long Context Transformers☆205Updated 6 months ago
- The official implementation of Tensor ProducT ATTenTion Transformer (T6)☆302Updated this week
- When it comes to optimizers, it's always better to be safe than sorry☆179Updated 3 weeks ago
- Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models☆128Updated 8 months ago
- A repository dedicated to evaluating the performance of quantizied LLaMA3 using various quantization methods..☆178Updated last month
- GEAR: An Efficient KV Cache Compression Recipefor Near-Lossless Generative Inference of LLM☆157Updated 7 months ago
- [ACL 2024] A novel QAT with Self-Distillation framework to enhance ultra low-bit LLMs.☆100Updated 9 months ago
- [NeurIPS 2024] KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization☆332Updated 6 months ago
- ☆217Updated 8 months ago
- ☆253Updated 5 months ago
- Triton-based implementation of Sparse Mixture of Experts.☆196Updated 2 months ago
- Unofficial implementation for the paper "Mixture-of-Depths: Dynamically allocating compute in transformer-based language models"☆145Updated 8 months ago