lucidrains / rotary-embedding-torch
Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch
☆651Updated 3 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☆428Updated 2 months ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆751Updated 10 months ago
- Helpful tools and examples for working with flex-attention☆695Updated this week
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆565Updated 3 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆372Updated last year
- Annotated version of the Mamba paper☆475Updated last year
- Implementation of Linformer for Pytorch☆274Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆518Updated last year
- Implementation of https://srush.github.io/annotated-s4☆485Updated 2 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆318Updated 9 months ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆714Updated last year
- Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch☆407Updated 2 months ago
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆306Updated 2 months ago
- Neighborhood Attention Extension. Bringing attention to a neighborhood near you!☆426Updated this week
- Sequence modeling with Mega.☆295Updated 2 years ago
- Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch☆506Updated 4 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆218Updated 7 months ago
- [ECCV 2024] Official PyTorch implementation of RoPE-ViT "Rotary Position Embedding for Vision Transformer"☆290Updated 3 months ago
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆455Updated last year
- 🦁 Lion, new optimizer discovered by Google Brain using genetic algorithms that is purportedly better than Adam(w), in Pytorch☆2,106Updated 3 months ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,116Updated 3 years ago
- 🚀 Efficient implementations of state-of-the-art linear attention models in Torch and Triton☆2,144Updated this week
- [ICLR2025 Spotlight🔥] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters☆535Updated last month
- Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Models☆779Updated 8 months ago
- minLoRA: a minimal PyTorch library that allows you to apply LoRA to any PyTorch model.☆454Updated last year
- Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch☆1,132Updated last year
- [ICML 2024 Best Paper] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution (https://arxiv.org/abs/2310.16834)☆530Updated last year
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆270Updated 11 months ago
- Long Range Arena for Benchmarking Efficient Transformers☆747Updated last year
- Collection of papers on state-space models☆583Updated 3 weeks ago