lucidrains / rotary-embedding-torch
Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch
☆571Updated last week
Related projects ⓘ
Alternatives and complementary repositories for rotary-embedding-torch
- An implementation of local windowed attention for language modeling☆384Updated 2 months ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆517Updated last month
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆360Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆698Updated 6 months ago
- Annotated version of the Mamba paper☆457Updated 8 months ago
- Helpful tools and examples for working with flex-attention☆469Updated 3 weeks ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆293Updated 5 months ago
- Sequence modeling with Mega.☆298Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆507Updated last year
- Implementation of Linformer for Pytorch☆257Updated 10 months ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆642Updated last year
- Neighborhood Attention Extension. Bringing attention to a neighborhood near you!☆366Updated this week
- Implementation of https://srush.github.io/annotated-s4☆469Updated last year
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆476Updated 3 weeks ago
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆394Updated this week
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆350Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆213Updated 3 months ago
- Implementation of Bit Diffusion, Hinton's group's attempt at discrete denoising diffusion, in Pytorch☆333Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆225Updated 2 months ago
- [ECCV 2024] Official PyTorch implementation of RoPE-ViT "Rotary Position Embedding for Vision Transformer"☆213Updated 3 weeks ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆246Updated 6 months ago
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆437Updated 10 months ago
- ☆283Updated 2 months ago
- Simple, minimal implementation of the Mamba SSM in one pytorch file. Using logcumsumexp (Heisen sequence).☆102Updated last month
- Efficient implementations of state-of-the-art linear attention models in Pytorch and Triton☆1,339Updated this week
- Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models☆760Updated 4 months ago
- Reading list for research topics in state-space models☆241Updated 2 weeks ago
- PyTorch implementation of MAR+DiffLoss https://arxiv.org/abs/2406.11838☆1,011Updated last month
- Effortless plugin and play Optimizer to cut model training costs by 50%. New optimizer that is 2x faster than Adam on LLMs.☆378Updated 5 months ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,098Updated 2 years ago