lucidrains / local-attentionLinks
An implementation of local windowed attention for language modeling
☆460Updated 5 months ago
Alternatives and similar repositories for local-attention
Users that are interested in local-attention are comparing it to the libraries listed below
Sorting:
- Implementation of Linformer for Pytorch☆290Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆708Updated last week
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆784Updated last year
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆379Updated last year
- Sequence modeling with Mega.☆296Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆366Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 3 years ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆595Updated 7 months ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆214Updated 2 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,136Updated 3 years ago
- ☆163Updated 2 years ago
- Fully featured implementation of Routing Transformer☆296Updated 3 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆536Updated last year
- My take on a practical implementation of Linformer for Pytorch.☆416Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆220Updated 10 months ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆345Updated last year
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆194Updated 2 years ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆776Updated last year
- Long Range Arena for Benchmarking Efficient Transformers☆759Updated last year
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆265Updated 3 years ago
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆225Updated last year
- Pytorch library for fast transformer implementations☆1,724Updated 2 years ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆204Updated last year
- ☆292Updated 6 months ago
- Implementation of Axial attention - attending to multi-dimensional data efficiently☆385Updated 3 years ago
- VQVAEs, GumbelSoftmaxes and friends☆577Updated 3 years ago
- Tiny PyTorch library for maintaining a moving average of a collection of parameters.☆432Updated 9 months ago
- This is a pytorch implementation of k-means clustering algorithm☆314Updated 4 months ago
- Implementation of Bit Diffusion, Hinton's group's attempt at discrete denoising diffusion, in Pytorch☆350Updated last year
- Learning Rate Warmup in PyTorch☆411Updated 3 weeks ago