lucidrains / linformer
Implementation of Linformer for Pytorch
☆274Updated last year
Alternatives and similar repositories for linformer:
Users that are interested in linformer are comparing it to the libraries listed below
- An implementation of local windowed attention for language modeling☆429Updated 2 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 2 years ago
- Fully featured implementation of Routing Transformer☆289Updated 3 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆751Updated 10 months ago
- My take on a practical implementation of Linformer for Pytorch.☆413Updated 2 years ago
- Sequence modeling with Mega.☆295Updated 2 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆372Updated last year
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆259Updated 3 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆360Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆651Updated 3 months ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆211Updated 2 years ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆260Updated 3 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆188Updated 2 years ago
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆113Updated 4 years ago
- 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 Nyström Self-attention, from the paper Nyströmformer☆129Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆518Updated last year
- Unofficial implementation of MLP-Mixer: An all-MLP Architecture for Vision☆217Updated 3 years ago
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆220Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆218Updated 7 months ago
- An implementation of the efficient attention module.☆305Updated 4 years ago
- Implementation of Fast Transformer in Pytorch☆173Updated 3 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,116Updated 3 years ago
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆125Updated 3 years ago
- Implementation of gMLP, an all-MLP replacement for Transformers, in Pytorch☆424Updated 3 years ago
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆118Updated 3 years ago
- Tiny PyTorch library for maintaining a moving average of a collection of parameters.☆426Updated 5 months ago
- Unofficial PyTorch implementation of Attention Free Transformer (AFT) layers by Apple Inc.☆234Updated 2 years ago
- Implementation of H-Transformer-1D, Hierarchical Attention for Sequence Learning☆160Updated last year
- Recent Advances in MLP-based Models (MLP is all you need!)☆114Updated 2 years ago