lucidrains / linear-attention-transformer
Transformer based on a variant of attention that is linear complexity in respect to sequence length
☆698Updated 6 months ago
Related projects ⓘ
Alternatives and complementary repositories for linear-attention-transformer
- Pytorch library for fast transformer implementations☆1,643Updated last year
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,098Updated 2 years ago
- An implementation of local windowed attention for language modeling☆384Updated 2 months ago
- Implementation of Linformer for Pytorch☆257Updated 10 months ago
- My take on a practical implementation of Linformer for Pytorch.☆407Updated 2 years ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆571Updated last week
- Long Range Arena for Benchmarking Efficient Transformers☆729Updated 11 months ago
- Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models☆760Updated 4 months ago
- Fully featured implementation of Routing Transformer☆284Updated 3 years ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆642Updated last year
- Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch☆1,097Updated last year
- Reformer, the efficient Transformer, in Pytorch☆2,121Updated last year
- An All-MLP solution for Vision, from Google AI☆1,003Updated 2 months ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆517Updated last month
- Implementation of ConvMixer for "Patches Are All You Need? 🤷"☆1,062Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆222Updated 2 years ago
- ☆365Updated last year
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆360Updated last year
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆350Updated last year
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆251Updated 3 years ago
- Sequence modeling with Mega.☆298Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆507Updated last year
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆253Updated 3 years ago
- Tiny PyTorch library for maintaining a moving average of a collection of parameters.☆406Updated last month
- Learning Rate Warmup in PyTorch☆392Updated this week
- Implementation of gMLP, an all-MLP replacement for Transformers, in Pytorch☆425Updated 3 years ago
- PyTorch Re-Implementation of "The Sparsely-Gated Mixture-of-Experts Layer" by Noam Shazeer et al. https://arxiv.org/abs/1701.06538☆983Updated 7 months ago
- An implementation of 1D, 2D, and 3D positional encoding in Pytorch and TensorFlow☆546Updated 3 weeks ago
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆437Updated 10 months ago
- A PyTorch implementation of the 1d and 2d Sinusoidal positional encoding/embedding.☆250Updated 4 years ago