evelinehong / Transformer_Relative_Position_PyTorch
Implement the paper "Self-Attention with Relative Position Representations"
☆122Updated 3 years ago
Related projects: ⓘ
- Multi-head attention in PyTorch☆146Updated 5 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆345Updated 11 months 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☆51Updated 3 years ago
- A pytorch &keras implementation and demo of Fastformer.☆184Updated last year
- Transformer-based Conditional Variational Autoencoder for Controllable Story Generation☆145Updated 2 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆178Updated last year
- ☆83Updated 4 years ago
- Implementation of Linformer for Pytorch☆244Updated 8 months ago
- pytorch; mask language model ; bert☆69Updated 4 years ago
- Implementation of Transformer encoder in PyTorch☆57Updated 4 years ago
- Implementing SYNTHESIZER: Rethinking Self-Attention in Transformer Models using Pytorch☆70Updated 4 years ago
- code for Explicit Sparse Transformer☆57Updated last year
- PyTorch implementation of beam search decoding for seq2seq models☆333Updated last year
- Transformer with Untied Positional Encoding (TUPE). Code of paper "Rethinking Positional Encoding in Language Pre-training". Improve exis…☆249Updated 2 years ago
- PyTorch implementation of Pay Attention to MLPs☆39Updated 3 years ago
- [ICLR 2024]EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modeling(https://arxiv.org/abs/2310.04691)☆111Updated 6 months ago
- For paper《Gaussian Transformer: A Lightweight Approach for Natural Language Inference》☆27Updated 4 years ago
- Pytorch implementation of "Block Recurrent Transformers" (Hutchins & Schlag et al., 2022)☆83Updated 2 years ago
- ACL'2023: DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models☆286Updated 7 months ago
- A PyTorch implementation of the Transformer model in "Attention is All You Need".☆19Updated 6 years ago
- A PyTorch implementation of Transformer in "Attention is All You Need"☆103Updated 3 years ago
- This repository is an implementation for the loss function proposed in https://arxiv.org/pdf/2110.06848.pdf.☆107Updated 2 years ago
- PyTorch implementation of the InfoNCE loss for self-supervised learning.☆464Updated 10 months ago
- Official Implementation for the ICML2022 paper "Directed Acyclic Transformer for Non-Autoregressive Machine Translation"☆119Updated last year
- An implementation of local windowed attention for language modeling☆370Updated last week
- ☆866Updated 3 months ago
- Source code of LatentOps☆77Updated 10 months ago
- Unofficial Pytorch implementation of MiniLM and MiniLMv2☆19Updated 2 years ago
- Implementation of RealFormer using pytorch☆102Updated 3 years ago