lucidrains / local-attention
An implementation of local windowed attention for language modeling
☆447Updated 3 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 Rotary Embeddings, from the Roformer paper, in Pytorch☆673Updated 5 months ago
- Implementation of Linformer for Pytorch☆283Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆764Updated last year
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆377Updated last year
- Sequence modeling with Mega.☆295Updated 2 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,129Updated 3 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆362Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆217Updated 8 months ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆330Updated 10 months ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆739Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆526Updated last year
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆213Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 3 years ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆203Updated last year
- Fully featured implementation of Routing Transformer☆291Updated 3 years ago
- My take on a practical implementation of Linformer for Pytorch.☆415Updated 2 years ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆582Updated 5 months ago
- Pytorch library for fast transformer implementations☆1,703Updated 2 years ago
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆223Updated last year
- Implementation of Axial attention - attending to multi-dimensional data efficiently☆377Updated 3 years ago
- Long Range Arena for Benchmarking Efficient Transformers☆753Updated last year
- ☆164Updated 2 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆190Updated 2 years ago
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆465Updated last year
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆262Updated 3 years ago
- Implementation of a U-net complete with efficient attention as well as the latest research findings☆278Updated last year
- Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch☆1,140Updated last year
- Helpful tools and examples for working with flex-attention☆766Updated last week
- Root Mean Square Layer Normalization☆241Updated 2 years ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆289Updated last month