lucidrains / memory-efficient-attention-pytorch
Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"
☆377Updated last year
Alternatives and similar repositories for memory-efficient-attention-pytorch:
Users that are interested in memory-efficient-attention-pytorch are comparing it to the libraries listed below
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆213Updated 2 years ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆666Updated 4 months ago
- An implementation of local windowed attention for language modeling☆443Updated 3 months ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆571Updated 4 months ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆183Updated 2 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆756Updated 11 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆226Updated 7 months ago
- Annotated version of the Mamba paper☆483Updated last year
- Implementation of Linformer for Pytorch☆279Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆328Updated 10 months ago
- Implementation of Flash Attention in Jax☆206Updated last year
- ☆290Updated 4 months ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆203Updated last year
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆283Updated 3 weeks ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆211Updated 8 months ago
- Sequence modeling with Mega.☆294Updated 2 years ago
- Helpful tools and examples for working with flex-attention☆726Updated last week
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆317Updated 3 months ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆522Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆407Updated 3 months ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆251Updated 2 years ago
- Code release for "Dropout Reduces Underfitting"☆313Updated last year
- Implementation of a Transformer, but completely in Triton☆263Updated 3 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 3 years ago
- Named tensors with first-class dimensions for PyTorch☆320Updated last year
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆203Updated last year
- ☆143Updated last year
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆511Updated 5 months ago
- When it comes to optimizers, it's always better to be safe than sorry☆220Updated 3 weeks ago
- Root Mean Square Layer Normalization☆238Updated 2 years ago