lucidrains / local-attention
An implementation of local windowed attention for language modeling
☆420Updated last month
Alternatives and similar repositories for local-attention:
Users that are interested in local-attention are comparing it to the libraries listed below
- Implementation of Linformer for Pytorch☆266Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆738Updated 9 months ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆635Updated 2 months ago
- Sequence modeling with Mega.☆298Updated 2 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆370Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆226Updated 2 years ago
- Fully featured implementation of Routing Transformer☆288Updated 3 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆210Updated 2 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆185Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆515Updated last year
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆358Updated last year
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆178Updated last year
- A simple cross attention that updates both the source and target in one step☆162Updated 9 months ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆204Updated last year
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆306Updated 8 months ago
- ☆163Updated 2 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,115Updated 3 years ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆692Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆218Updated 6 months ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆257Updated 3 years ago
- Implementation of Axial attention - attending to multi-dimensional data efficiently☆371Updated 3 years ago
- Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch☆1,120Updated last year
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆559Updated 2 months ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆251Updated 2 years ago
- ☆288Updated 2 months ago
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆217Updated last year
- Implementation of H-Transformer-1D, Hierarchical Attention for Sequence Learning☆160Updated last year
- Long Range Arena for Benchmarking Efficient Transformers☆745Updated last year
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆452Updated last year
- Pytorch implementation of Compressive Transformers, from Deepmind☆155Updated 3 years ago