lucidrains / local-attentionLinks
An implementation of local windowed attention for language modeling
☆470Updated 2 weeks ago
Alternatives and similar repositories for local-attention
Users that are interested in local-attention are comparing it to the libraries listed below
Sorting:
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆793Updated last year
- Implementation of Linformer for Pytorch☆294Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆719Updated last week
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆379Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆368Updated last year
- Sequence modeling with Mega.☆297Updated 2 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆214Updated 2 years ago
- ☆163Updated 2 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆352Updated last year
- Fully featured implementation of Routing Transformer☆297Updated 3 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 3 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆220Updated 11 months ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆538Updated last year
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,142Updated 3 years ago
- PyTorch implementation of "data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language" from Meta AI☆182Updated 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
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆226Updated last year
- Long Range Arena for Benchmarking Efficient Transformers☆762Updated last year
- VQVAEs, GumbelSoftmaxes and friends☆581Updated 3 years ago
- My take on a practical implementation of Linformer for Pytorch.☆417Updated 3 years ago
- ☆292Updated 7 months ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆788Updated last year
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆486Updated last year
- An implementation of masked language modeling for Pytorch, made as concise and simple as possible☆179Updated last year
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆196Updated 2 years ago
- Pytorch library for fast transformer implementations☆1,725Updated 2 years ago
- Unofficial PyTorch implementation of Google's FNet: Mixing Tokens with Fourier Transforms. With checkpoints.☆74Updated 2 years ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆267Updated 3 years ago
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆600Updated 8 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆228Updated 10 months ago