lucidrains / local-attentionLinks
An implementation of local windowed attention for language modeling
☆492Updated 6 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☆303Updated 2 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆823Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆788Updated 5 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆389Updated 2 years ago
- Sequence modeling with Mega.☆302Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆371Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆228Updated 3 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆223Updated last year
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆231Updated 2 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆375Updated last year
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆219Updated 2 years ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆632Updated 3 weeks ago
- ☆164Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆546Updated 2 years ago
- ☆293Updated last year
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆840Updated 2 years ago
- Fully featured implementation of Routing Transformer☆299Updated 4 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,171Updated 3 years ago
- Long Range Arena for Benchmarking Efficient Transformers☆772Updated 2 years ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆206Updated 2 years ago
- My take on a practical implementation of Linformer for Pytorch.☆421Updated 3 years ago
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆504Updated 2 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆196Updated 3 years ago
- Pytorch library for fast transformer implementations☆1,757Updated 2 years ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆269Updated 4 years ago
- PyTorch implementation of "data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language" from Meta AI☆184Updated 2 years ago
- Root Mean Square Layer Normalization☆261Updated 2 years ago
- Adaptive Gradient Clipping☆153Updated 3 years ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆261Updated 4 years ago
- Implementation of Axial attention - attending to multi-dimensional data efficiently☆397Updated 4 years ago