evelinehong / Transformer_Relative_Position_PyTorch
Implement the paper "Self-Attention with Relative Position Representations"
☆124Updated 3 years ago
Related projects ⓘ
Alternatives and complementary repositories for Transformer_Relative_Position_PyTorch
- Learning to Encode Position for Transformer with Continuous Dynamical Model☆59Updated 4 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆350Updated last year
- Transformer-based Conditional Variational Autoencoder for Controllable Story Generation☆146Updated 2 years ago
- Multi-head attention in PyTorch☆147Updated 5 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆179Updated last year
- ☆163Updated 3 months ago
- a pytorch implementation of self-attention with relative position representations☆50Updated 3 years ago
- pytorch; mask language model ; bert☆71Updated 4 years ago
- PyTorch implementation for Seq2Seq model with attention and Greedy Search / Beam Search for neural machine translation☆58Updated 3 years ago
- PyTorch implementation of beam search decoding for seq2seq models☆336Updated last year
- Implementation of Transformer encoder in PyTorch☆60Updated 4 years ago
- PyTorch implementation of Pay Attention to MLPs☆39Updated 3 years ago
- Pytorch implementation of "Block Recurrent Transformers" (Hutchins & Schlag et al., 2022)☆83Updated 2 years ago
- A pytorch &keras implementation and demo of Fastformer.☆187Updated 2 years ago
- [ICLR 2024]EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modeling(https://arxiv.org/abs/2310.04691)☆114Updated 8 months ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆251Updated 3 years ago
- PyTorch implementation of the InfoNCE loss for self-supervised learning.☆489Updated last year
- ACL'2023: DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models☆296Updated 9 months ago
- code for Explicit Sparse Transformer☆56Updated last year
- Text Diffusion Model with Encoder-Decoder Transformers for Sequence-to-Sequence Generation [NAACL 2024]☆92Updated last year
- Transformer with Untied Positional Encoding (TUPE). Code of paper "Rethinking Positional Encoding in Language Pre-training". Improve exis…☆250Updated 3 years ago
- Implementing SYNTHESIZER: Rethinking Self-Attention in Transformer Models using Pytorch☆70Updated 4 years ago
- Implementation of some unbalanced loss like focal_loss, dice_loss, DSC Loss, GHM Loss et.al☆254Updated last year
- [ICML 2021 Oral] We show pure attention suffers rank collapse, and how different mechanisms combat it.☆162Updated 3 years ago
- This repository is an implementation for the loss function proposed in https://arxiv.org/pdf/2110.06848.pdf.☆109Updated 2 years ago
- Official code for the NAACL 2022 paper "Fuse It More Deeply! A Variational Transformer with Layer-Wise Latent Variable Inference for Text…☆31Updated 2 years ago
- An implementation of local windowed attention for language modeling☆384Updated 2 months ago
- 基于Gated Attention Unit的Transformer模型(尝鲜版)☆97Updated last year
- A PyTorch implementation of the Transformer model in "Attention is All You Need".☆19Updated 6 years ago
- Implementation of Memory-Compressed Attention, from the paper "Generating Wikipedia By Summarizing Long Sequences"☆71Updated last year