lucidrains / linformer
Implementation of Linformer for Pytorch
☆257Updated 10 months ago
Related projects ⓘ
Alternatives and complementary repositories for linformer
- An implementation of local windowed attention for language modeling☆384Updated 2 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆222Updated 2 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆698Updated 6 months ago
- Fully featured implementation of Routing Transformer☆284Updated 3 years ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆251Updated 3 years 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
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆203Updated last year
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆253Updated 3 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆179Updated last year
- ☆164Updated last year
- Sequence modeling with Mega.☆298Updated last year
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆207Updated last year
- Unofficial PyTorch implementation of Attention Free Transformer (AFT) layers by Apple Inc.☆228Updated 2 years ago
- Learning Rate Warmup in PyTorch☆392Updated this week
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆122Updated 10 months ago
- Tiny PyTorch library for maintaining a moving average of a collection of parameters.☆406Updated last month
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆517Updated last month
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,098Updated 2 years ago
- An implementation of the efficient attention module.☆284Updated 3 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆350Updated 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
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆124Updated 2 years ago
- Implementation of gMLP, an all-MLP replacement for Transformers, in Pytorch☆425Updated 3 years ago
- Implementation of Fast Transformer in Pytorch☆171Updated 3 years ago
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆116Updated 3 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆213Updated 3 months ago
- ☆365Updated last year
- ☆241Updated 2 years ago
- Implementation of H-Transformer-1D, Hierarchical Attention for Sequence Learning☆155Updated 9 months ago