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"
☆384Updated 2 years ago
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☆218Updated 2 years ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆184Updated 2 years ago
- An implementation of local windowed attention for language modeling☆488Updated 4 months ago
- Implementation of Linformer for Pytorch☆302Updated last year
- Sequence modeling with Mega.☆301Updated 2 years ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆780Updated 4 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆222Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆230Updated last year
- ☆293Updated 11 months ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆207Updated 2 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆373Updated last year
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆252Updated 3 years ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆224Updated last year
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆624Updated last year
- Implementation of a Transformer, but completely in Triton☆277Updated 3 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆815Updated last year
- Implementation of Flash Attention in Jax☆222Updated last year
- Annotated version of the Mamba paper☆491Updated last year
- Code release for "Dropout Reduces Underfitting"☆315Updated 2 years ago
- minLoRA: a minimal PyTorch library that allows you to apply LoRA to any PyTorch model.☆489Updated 2 years ago
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆125Updated last year
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆336Updated 8 months ago
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆207Updated last year
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆334Updated 11 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆228Updated 3 years ago
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆141Updated 8 months ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆371Updated 2 years ago
- A library that contains a rich collection of performant PyTorch model metrics, a simple interface to create new metrics, a toolkit to fac…☆244Updated 2 months ago
- optimizer & lr scheduler & loss function collections in PyTorch☆374Updated last week
- Code for the ALiBi method for transformer language models (ICLR 2022)☆546Updated 2 years ago