wuch15 / Fastformer
A pytorch &keras implementation and demo of Fastformer.
☆188Updated 2 years ago
Alternatives and similar repositories for Fastformer:
Users that are interested in Fastformer are comparing it to the libraries listed below
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆357Updated last year
- Implementation of Fast Transformer in Pytorch☆172Updated 3 years ago
- Transformer with Untied Positional Encoding (TUPE). Code of paper "Rethinking Positional Encoding in Language Pre-training". Improve exis…☆250Updated 3 years ago
- ☆83Updated 5 years ago
- Unofficial PyTorch implementation of Fastformer based on paper "Fastformer: Additive Attention Can Be All You Need"."☆134Updated 3 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆226Updated 2 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆185Updated 2 years ago
- [ACL 2022] Structured Pruning Learns Compact and Accurate Models https://arxiv.org/abs/2204.00408☆192Updated last year
- Implementation of RealFormer using pytorch☆101Updated 4 years ago
- Code for the NAACL 2022 long paper "DiffCSE: Difference-based Contrastive Learning for Sentence Embeddings"☆293Updated 2 years ago
- Sequence modeling with Mega.☆297Updated last year
- pytorch; mask language model ; bert☆72Updated 5 years ago
- 基于Gated Attention Unit的Transformer模型(尝鲜版)☆97Updated last year
- [ICML 2021 Oral] We show pure attention suffers rank collapse, and how different mechanisms combat it.☆163Updated 3 years ago
- My take on a practical implementation of Linformer for Pytorch.☆409Updated 2 years ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆256Updated 3 years ago
- ☆250Updated 2 years ago
- ⛵️The official PyTorch implementation for "BERT-of-Theseus: Compressing BERT by Progressive Module Replacing" (EMNLP 2020).☆311Updated last year
- FLASHQuad_pytorch☆66Updated 2 years ago
- ☆870Updated 7 months ago
- Implement the paper "Self-Attention with Relative Position Representations"☆125Updated 4 years ago
- This PyTorch package implements MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation (NAACL 2022).☆97Updated 2 years ago
- ☆213Updated 4 years ago
- A *tuned* minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆107Updated 3 years ago
- Relative Positional Encoding for Transformers with Linear Complexity☆61Updated 2 years ago
- Pytorch implementation of "Block Recurrent Transformers" (Hutchins & Schlag et al., 2022)☆83Updated 2 years ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆256Updated 3 years ago
- [NeurIPS'22 Spotlight] A Contrastive Framework for Neural Text Generation☆468Updated 10 months ago
- A PyTorch implementation of the paper - "Synthesizer: Rethinking Self-Attention in Transformer Models"☆72Updated 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