lucidrains / memory-efficient-attention-pytorchLinks
Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"
☆379Updated 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
Sorting:
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆214Updated 2 years ago
- An implementation of local windowed attention for language modeling☆454Updated 5 months ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆184Updated 2 years ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆694Updated 6 months ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆592Updated 6 months ago
- Implementation of Flash Attention in Jax☆213Updated last year
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆204Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆230Updated 9 months ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆777Updated last year
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆214Updated 10 months ago
- Implementation of Linformer for Pytorch☆288Updated last year
- Helpful tools and examples for working with flex-attention☆831Updated 2 weeks ago
- Implementation of a U-net complete with efficient attention as well as the latest research findings☆282Updated last year
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆319Updated 5 months ago
- Code release for "Dropout Reduces Underfitting"☆313Updated 2 years ago
- Implementation of a Transformer, but completely in Triton☆268Updated 3 years ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆298Updated 2 months ago
- ☆292Updated 6 months ago
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆135Updated 3 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 3 years ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆252Updated 2 years ago
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆204Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆341Updated last year
- optimizer & lr scheduler & loss function collections in PyTorch☆304Updated last week
- Sequence modeling with Mega.☆296Updated 2 years ago
- Annotated version of the Mamba paper☆485Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆219Updated 10 months ago
- A library that contains a rich collection of performant PyTorch model metrics, a simple interface to create new metrics, a toolkit to fac…☆233Updated 5 months ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆535Updated last year
- Named tensors with first-class dimensions for PyTorch☆331Updated 2 years ago