lucidrains / rotary-embedding-torch
Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch
☆672Updated 5 months ago
Alternatives and similar repositories for rotary-embedding-torch:
Users that are interested in rotary-embedding-torch are comparing it to the libraries listed below
- An implementation of local windowed attention for language modeling☆445Updated 3 months ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆763Updated last year
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆377Updated last year
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆577Updated 5 months ago
- Helpful tools and examples for working with flex-attention☆757Updated this week
- Annotated version of the Mamba paper☆483Updated last year
- Implementation of Linformer for Pytorch☆282Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆524Updated last year
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆736Updated last year
- Implementation of https://srush.github.io/annotated-s4☆494Updated 2 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆328Updated 10 months ago
- Implementation of the proposed minGRU in Pytorch☆287Updated last month
- Sequence modeling with Mega.☆295Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆362Updated last year
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,126Updated 3 years ago
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆316Updated 4 months ago
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆511Updated 6 months ago
- [ECCV 2024] Official PyTorch implementation of RoPE-ViT "Rotary Position Embedding for Vision Transformer"☆320Updated 4 months ago
- Pytorch library for fast transformer implementations☆1,701Updated 2 years ago
- Structured state space sequence models☆2,620Updated 9 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆217Updated 8 months ago
- [ICML 2024 Best Paper] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution (https://arxiv.org/abs/2310.16834)☆565Updated last year
- Neighborhood Attention Extension. Bringing attention to a neighborhood near you!☆489Updated last month
- A simple and efficient Mamba implementation in pure PyTorch and MLX.☆1,217Updated 5 months ago
- An implementation of 1D, 2D, and 3D positional encoding in Pytorch and TensorFlow☆582Updated 6 months ago
- A minimal implementation of diffusion models for text generation☆361Updated last year
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAI☆281Updated last month
- Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper☆607Updated last month
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆407Updated 4 months ago
- A pytorch implementation of the vector quantized variational autoencoder (https://arxiv.org/abs/1711.00937)☆749Updated 2 years ago