lucidrains / local-attentionLinks
An implementation of local windowed attention for language modeling
☆479Updated 2 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☆299Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆798Updated last year
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆757Updated 2 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆383Updated 2 years ago
- Sequence modeling with Mega.☆300Updated 2 years ago
- Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"☆370Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆227Updated 3 years ago
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆362Updated last year
- ☆164Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆543Updated last year
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆216Updated 2 years ago
- Approximate nearest neighbor search with product quantization on GPU in pytorch and cuda☆228Updated last year
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆813Updated 2 years ago
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆207Updated 2 years ago
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,148Updated 3 years ago
- Fully featured implementation of Routing Transformer☆298Updated 3 years ago
- Long Range Arena for Benchmarking Efficient Transformers☆763Updated last year
- Implementation of Block Recurrent Transformer - Pytorch☆221Updated last year
- A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model☆611Updated 10 months ago
- My take on a practical implementation of Linformer for Pytorch.☆420Updated 3 years ago
- This is a pytorch implementation of k-means clustering algorithm☆325Updated 7 months ago
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆195Updated 2 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
- A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training☆490Updated last year
- ☆293Updated 9 months ago
- Pytorch library for fast transformer implementations☆1,737Updated 2 years ago
- Implementation of H-Transformer-1D, Hierarchical Attention for Sequence Learning☆165Updated last year
- Adaptive Gradient Clipping☆149Updated 3 years ago
- Learning Rate Warmup in PyTorch☆412Updated 3 months ago
- Unofficial PyTorch implementation of Google's FNet: Mixing Tokens with Fourier Transforms. With checkpoints.☆77Updated 3 years ago