lucidrains / ring-attention-pytorch
Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorch
β511Updated 6 months ago
Alternatives and similar repositories for ring-attention-pytorch:
Users that are interested in ring-attention-pytorch are comparing it to the libraries listed below
- Large Context Attentionβ707Updated 3 months ago
- Ring attention implementation with flash attentionβ757Updated 3 weeks ago
- Helpful tools and examples for working with flex-attentionβ746Updated 3 weeks ago
- π Efficiently (pre)training foundation models with native PyTorch features, including FSDP for training and SDPA implementation of Flashβ¦β244Updated this week
- Muon optimizer: +>30% sample efficiency with <3% wallclock overheadβ597Updated last month
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"β232Updated 2 months ago
- A subset of PyTorch's neural network modules, written in Python using OpenAI's Triton.β536Updated last week
- This repository contains the experimental PyTorch native float8 training UXβ224Updated 9 months ago
- [ICML 2024] CLLMs: Consistency Large Language Modelsβ390Updated 5 months ago
- Memory optimization and training recipes to extrapolate language models' context length to 1 million tokens, with minimal hardware.β719Updated 7 months ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAIβ281Updated last month
- Triton-based implementation of Sparse Mixture of Experts.β212Updated 5 months ago
- Some preliminary explorations of Mamba's context scaling.β213Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorchβ407Updated 3 months ago
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β647Updated last month
- β434Updated last week
- USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inferenceβ488Updated 2 weeks ago
- β186Updated this week
- LLM KV cache compression made easyβ471Updated this week
- Microsoft Automatic Mixed Precision Libraryβ596Updated 7 months ago
- Memory layers use a trainable key-value lookup mechanism to add extra parameters to a model without increasing FLOPs. Conceptually, sparsβ¦β322Updated 4 months ago
- PyTorch implementation of Infini-Transformer from "Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentionβ¦β289Updated last year
- Explorations into some recent techniques surrounding speculative decodingβ261Updated 4 months ago
- [ICLR 2025] DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headsβ456Updated 2 months ago
- [NeurIPS 2024] KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationβ346Updated 8 months ago
- β220Updated 10 months ago
- Annotated version of the Mamba paperβ483Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorchβ328Updated 10 months ago
- Applied AI experiments and examples for PyTorchβ262Updated last week
- Code for paper: "QuIP: 2-Bit Quantization of Large Language Models With Guarantees"β362Updated last year