lucidrains / local-attentionLinks
An implementation of local windowed attention for language modeling
☆495Updated 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 Rotary Embeddings, from the Roformer paper, in Pytorch☆796Updated 6 months ago
- Implementation of Linformer for Pytorch☆306Updated 2 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆825Updated last year
- Sequence modeling with Mega.☆303Updated 3 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆390Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆372Updated 2 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆378Updated last year
- ☆163Updated 3 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆549Updated 2 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆220Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆228Updated 3 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,172Updated 4 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
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆640Updated last month
- Fully featured implementation of Routing Transformer☆300Updated 4 years ago
- This is a pytorch implementation of k-means clustering algorithm☆339Updated 11 months ago
- ☆293Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆223Updated last year
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆507Updated 2 years ago
- Long Range Arena for Benchmarking Efficient Transformers☆776Updated 2 years ago
- My take on a practical implementation of Linformer for Pytorch.☆422Updated 3 years ago
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆846Updated 2 years ago
- Implementation of Bit Diffusion, Hinton's group's attempt at discrete denoising diffusion, in Pytorch☆355Updated 2 years ago
- Tiny PyTorch library for maintaining a moving average of a collection of parameters.☆444Updated last year
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆231Updated 2 years ago
- Implementation of https://srush.github.io/annotated-s4☆512Updated 7 months ago
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆270Updated 4 years ago
- Pytorch library for fast transformer implementations☆1,760Updated 2 years ago
- Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch☆1,193Updated 2 years ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆198Updated 3 years ago