lucidrains / rotary-embedding-torch
Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch
☆665Updated 4 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☆436Updated 3 months ago
- Helpful tools and examples for working with flex-attention☆720Updated this week
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆755Updated 11 months ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆569Updated 4 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆375Updated last year
- Implementation of Linformer for Pytorch☆278Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆521Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆327Updated 10 months ago
- Sequence modeling with Mega.☆295Updated 2 years ago
- Annotated version of the Mamba paper☆481Updated last year
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆726Updated last year
- [ECCV 2024] Official PyTorch implementation of RoPE-ViT "Rotary Position Embedding for Vision Transformer"☆315Updated 3 months ago
- Pytorch library for fast transformer implementations☆1,695Updated 2 years ago
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆461Updated last year
- [ICLR2025 Spotlight🔥] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters☆547Updated 2 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆217Updated 7 months ago
- Neighborhood Attention Extension. Bringing attention to a neighborhood near you!☆441Updated 3 weeks ago
- Rotary Transformer☆932Updated 3 years ago
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆311Updated 3 months ago
- Implementation of https://srush.github.io/annotated-s4☆488Updated 2 years ago
- Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAI☆1,052Updated 3 weeks ago
- Long Range Arena for Benchmarking Efficient Transformers☆750Updated last year
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆212Updated 2 years ago
- [ICML 2024 Best Paper] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution (https://arxiv.org/abs/2310.16834)☆548Updated last year
- Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models☆785Updated 9 months ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,120Updated 3 years ago
- An implementation of 1D, 2D, and 3D positional encoding in Pytorch and TensorFlow☆580Updated 5 months ago
- Root Mean Square Layer Normalization☆237Updated 2 years ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAI☆279Updated 3 weeks ago
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆407Updated 3 months ago