lucidrains / rotary-embedding-torchLinks
Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch
☆694Updated 6 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
Sorting:
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆379Updated last year
- An implementation of local windowed attention for language modeling☆454Updated 5 months ago
- Helpful tools and examples for working with flex-attention☆831Updated last week
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆592Updated 6 months ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆775Updated last year
- Annotated version of the Mamba paper☆485Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆340Updated last year
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆765Updated last year
- [ECCV 2024] Official PyTorch implementation of RoPE-ViT "Rotary Position Embedding for Vision Transformer"☆335Updated 6 months ago
- [ICLR2025 Spotlight🔥] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters☆562Updated 4 months ago
- Implementation of Linformer for Pytorch☆287Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆535Updated last year
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆519Updated last month
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆319Updated 5 months ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆298Updated 2 months ago
- Sequence modeling with Mega.☆296Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆219Updated 10 months ago
- Implementation of https://srush.github.io/annotated-s4☆498Updated 2 years ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆230Updated 9 months ago
- ☆292Updated 6 months ago
- Muon: An optimizer for hidden layers in neural networks☆897Updated last week
- Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models☆792Updated 2 weeks ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆364Updated last year
- Neighborhood Attention Extension. Bringing attention to a neighborhood near you!☆528Updated this week
- Rotary Transformer☆970Updated 3 years ago
- VQVAEs, GumbelSoftmaxes and friends☆572Updated 3 years ago
- Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAI☆284Updated 2 weeks ago
- Implementation of rectified flow and some of its followup research / improvements in Pytorch☆309Updated this week
- A pytorch implementation of the vector quantized variational autoencoder (https://arxiv.org/abs/1711.00937)☆768Updated 2 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆214Updated 2 years ago