OpenNLPLab / cosFormer
[ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention
☆188Updated 2 years ago
Alternatives and similar repositories for cosFormer:
Users that are interested in cosFormer are comparing it to the libraries listed below
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆360Updated last year
- Implementation of Linformer for Pytorch☆274Updated last year
- An implementation of the efficient attention module.☆305Updated 4 years ago
- An implementation of local windowed attention for language modeling☆429Updated 2 months ago
- About Code release for "Flowformer: Linearizing Transformers with Conservation Flows" (ICML 2022), https://arxiv.org/pdf/2202.06258.pdf☆315Updated 8 months ago
- [ICLR 2021 top 3%] Is Attention Better Than Matrix Decomposition?☆331Updated 2 years ago
- Code release for "LogME: Practical Assessment of Pre-trained Models for Transfer Learning" (ICML 2021) and Ranking and Tuning Pre-trained…☆207Updated last year
- Fully featured implementation of Routing Transformer☆291Updated 3 years ago
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆60Updated last year
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆260Updated 3 years ago
- Learning to Encode Position for Transformer with Continuous Dynamical Model☆59Updated 4 years ago
- Recent Advances in MLP-based Models (MLP is all you need!)☆114Updated 2 years ago
- CVPR2022, BatchFormer: Learning to Explore Sample Relationships for Robust Representation Learning, https://arxiv.org/abs/2203.01522☆250Updated last year
- A pytorch &keras implementation and demo of Fastformer.☆187Updated 2 years ago
- ☆189Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆751Updated 10 months ago
- Unofficial implementation of Pix2SEQ☆165Updated 3 years ago
- code for Explicit Sparse Transformer☆60Updated last year
- Reproducing the Linear Multihead Attention introduced in Linformer paper (Linformer: Self-Attention with Linear Complexity)☆73Updated 4 years ago
- [NeurIPS 2022 Spotlight] This is the official PyTorch implementation of "EcoFormer: Energy-Saving Attention with Linear Complexity"☆71Updated 2 years ago
- [ICML 2021 Oral] We show pure attention suffers rank collapse, and how different mechanisms combat it.☆163Updated 4 years ago
- Sequence modeling with Mega.☆295Updated 2 years ago
- ☆191Updated 2 years ago
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆118Updated 3 years ago
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆115Updated 4 years ago
- ☆245Updated 3 years ago
- [EVA ICLR'23; LARA ICML'22] Efficient attention mechanisms via control variates, random features, and importance sampling☆82Updated 2 years ago
- [ICLR 2023] Official implementation of Transnormer in our ICLR 2023 paper - Toeplitz Neural Network for Sequence Modeling☆79Updated 11 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆159Updated 10 months ago