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"
☆359Updated last year
Related projects ⓘ
Alternatives and complementary repositories for memory-efficient-attention-pytorch
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆207Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆565Updated last month
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆179Updated last year
- An implementation of local windowed attention for language modeling☆381Updated 2 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 ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆291Updated 4 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆224Updated 2 months ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆511Updated 2 weeks ago
- Sequence modeling with Mega.☆297Updated last year
- Implementation of Linformer for Pytorch☆255Updated 10 months ago
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆277Updated last month
- Helpful tools and examples for working with flex-attention☆460Updated 2 weeks ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆242Updated 6 months ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆205Updated 2 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆214Updated 2 months ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆247Updated 2 years ago
- Neighborhood Attention Extension. Bringing attention to a neighborhood near you!☆363Updated last week
- Implementation of a Transformer, but completely in Triton☆248Updated 2 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆695Updated 6 months ago
- Implementation of a U-net complete with efficient attention as well as the latest research findings☆264Updated 6 months ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆506Updated last year
- Implementation of Bit Diffusion, Hinton's group's attempt at discrete denoising diffusion, in Pytorch☆332Updated last year
- A library that contains a rich collection of performant PyTorch model metrics, a simple interface to create new metrics, a toolkit to fac…☆215Updated last week
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆393Updated 8 months ago
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆193Updated 8 months ago
- Annotated version of the Mamba paper☆455Updated 8 months ago
- Implementation of Flash Attention in Jax☆194Updated 8 months ago
- ☆333Updated 6 months ago
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆116Updated 3 months ago