NVIDIA / transformer-ls
Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).
☆225Updated 3 years ago
Alternatives and similar repositories for transformer-ls:
Users that are interested in transformer-ls are comparing it to the libraries listed below
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆118Updated 3 years ago
- Fully featured implementation of Routing Transformer☆291Updated 3 years ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆262Updated 3 years ago
- Implementation of Linformer for Pytorch☆282Updated last year
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆213Updated 2 years ago
- Is the attention layer even necessary? (https://arxiv.org/abs/2105.02723)☆484Updated 3 years ago
- Sequence modeling with Mega.☆294Updated 2 years ago
- Implementation of Fast Transformer in Pytorch☆173Updated 3 years ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆259Updated 3 years ago
- Unofficial PyTorch implementation of Attention Free Transformer (AFT) layers by Apple Inc.☆235Updated 3 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆190Updated 2 years ago
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆115Updated 4 years ago
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆124Updated 3 years ago
- [ICML 2020] code for "PowerNorm: Rethinking Batch Normalization in Transformers" https://arxiv.org/abs/2003.07845☆120Updated 3 years ago
- ☆376Updated last year
- Code for Multi-Head Attention: Collaborate Instead of Concatenate☆151Updated last year
- [ICML 2021 Oral] We show pure attention suffers rank collapse, and how different mechanisms combat it.☆164Updated 4 years ago
- ☆164Updated 2 years ago
- An implementation of local windowed attention for language modeling☆445Updated 3 months ago
- ☆245Updated 3 years ago
- DeLighT: Very Deep and Light-Weight Transformers☆467Updated 4 years ago
- Understanding the Difficulty of Training Transformers☆329Updated 2 years ago
- My take on a practical implementation of Linformer for Pytorch.☆414Updated 2 years ago
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆133Updated last month
- Official code repository of the paper Linear Transformers Are Secretly Fast Weight Programmers.☆105Updated 3 years ago
- FairSeq repo with Apollo optimizer☆114Updated last year
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆223Updated last year
- Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr\"om Method (NeurIPS 2021)☆60Updated 3 years ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆157Updated 3 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆377Updated last year