evelinehong / Transformer_Relative_Position_PyTorch
Implement the paper "Self-Attention with Relative Position Representations"
☆125Updated 4 years ago
Alternatives and similar repositories for Transformer_Relative_Position_PyTorch:
Users that are interested in Transformer_Relative_Position_PyTorch are comparing it to the libraries listed below
- Multi-head attention in PyTorch☆150Updated 5 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆185Updated 2 years ago
- Learning to Encode Position for Transformer with Continuous Dynamical Model☆59Updated 4 years ago
- a pytorch implementation of self-attention with relative position representations☆50Updated 3 years ago
- [ICLR 2024]EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modeling(https://arxiv.org/abs/2310.04691)☆118Updated 10 months ago
- code for Explicit Sparse Transformer☆58Updated last year
- pytorch; mask language model ; bert☆72Updated 5 years ago
- Implementation of Linformer for Pytorch☆262Updated last year
- This repository is an implementation for the loss function proposed in https://arxiv.org/pdf/2110.06848.pdf.☆111Updated 3 years ago
- Implementing SYNTHESIZER: Rethinking Self-Attention in Transformer Models using Pytorch☆70Updated 4 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆357Updated last year
- ☆164Updated 6 months ago
- Transformer with Untied Positional Encoding (TUPE). Code of paper "Rethinking Positional Encoding in Language Pre-training". Improve exis…☆250Updated 3 years ago
- 实现了Transformer中的几种位置编码方案☆40Updated 3 years ago
- For paper《Gaussian Transformer: A Lightweight Approach for Natural Language Inference》☆29Updated 4 years ago
- [ICML 2021 Oral] We show pure attention suffers rank collapse, and how different mechanisms combat it.☆164Updated 3 years ago
- Reproducing the Linear Multihead Attention introduced in Linformer paper (Linformer: Self-Attention with Linear Complexity)☆72Updated 4 years ago
- ☆83Updated 5 years ago
- Transformer-based Conditional Variational Autoencoder for Controllable Story Generation☆151Updated 2 years ago
- PyTorch implementation for Seq2Seq model with attention and Greedy Search / Beam Search for neural machine translation☆58Updated 3 years ago
- Text Diffusion Model with Encoder-Decoder Transformers for Sequence-to-Sequence Generation [NAACL 2024]☆93Updated last year
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆178Updated last year
- PyTorch implementation of beam search decoding for seq2seq models☆338Updated 2 years ago
- Source code of LatentOps☆77Updated last year
- My take on a practical implementation of Linformer for Pytorch.☆411Updated 2 years ago
- A pytorch &keras implementation and demo of Fastformer.☆188Updated 2 years ago
- ACL'2023: DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models☆298Updated 11 months ago
- A paper list about diffusion models for natural language processing.☆181Updated last year
- Unofficial Pytorch implementation of MiniLM and MiniLMv2☆21Updated 3 years ago
- Fully featured implementation of Routing Transformer☆288Updated 3 years ago