lucidrains / routing-transformer
Fully featured implementation of Routing Transformer
☆282Updated 2 years ago
Related projects: ⓘ
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆252Updated 3 years ago
- My take on a practical implementation of Linformer for Pytorch.☆403Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆221Updated 2 years ago
- Implementation of Linformer for Pytorch☆244Updated 8 months ago
- DeLighT: Very Deep and Light-Weight Transformers☆465Updated 3 years ago
- Understanding the Difficulty of Training Transformers☆325Updated 2 years ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆249Updated 3 years ago
- An implementation of local windowed attention for language modeling☆368Updated last week
- Code for Multi-Head Attention: Collaborate Instead of Concatenate☆148Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆670Updated 4 months ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆154Updated 2 years ago
- Implementation of https://arxiv.org/abs/1904.00962☆366Updated 3 years ago
- ☆211Updated 4 years ago
- ☆360Updated 11 months ago
- Official codebase for Pretrained Transformers as Universal Computation Engines.☆244Updated 2 years ago
- [ICML 2020] code for "PowerNorm: Rethinking Batch Normalization in Transformers" https://arxiv.org/abs/2003.07845☆119Updated 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 gMLP, an all-MLP replacement for Transformers, in Pytorch☆421Updated 3 years ago
- Implementation of Feedback Transformer in Pytorch☆103Updated 3 years ago
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆207Updated 9 months ago
- Long Range Arena for Benchmarking Efficient Transformers☆711Updated 9 months ago
- Is the attention layer even necessary? (https://arxiv.org/abs/2105.02723)☆480Updated 3 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,080Updated 2 years ago
- This is a repository with the code for the ACL 2019 paper "Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, t…☆296Updated 3 years ago
- The entmax mapping and its loss, a family of sparse softmax alternatives.☆406Updated 2 months ago
- Implementation of Fast Transformer in Pytorch☆170Updated 3 years ago
- A simple and working implementation of Electra, the fastest way to pretrain language models from scratch, in Pytorch☆222Updated last year
- PyTorch Implementation of OpenAI's Image GPT☆254Updated 11 months ago
- Sequence modeling with Mega.☆296Updated last year
- Transformer with Untied Positional Encoding (TUPE). Code of paper "Rethinking Positional Encoding in Language Pre-training". Improve exis…☆249Updated 2 years ago