lucidrains / FLASH-pytorch
Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"
☆358Updated last year
Alternatives and similar repositories for FLASH-pytorch:
Users that are interested in FLASH-pytorch are comparing it to the libraries listed below
- [ICLR 2022] Official implementation of cosformer-attention in cosFormer: Rethinking Softmax in Attention☆185Updated 2 years ago
- Implementation of Linformer for Pytorch☆266Updated last year
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆738Updated 9 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆226Updated 2 years ago
- Rotary Transformer☆895Updated 2 years ago
- An implementation of local windowed attention for language modeling☆420Updated last month
- ☆872Updated 8 months ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆370Updated last year
- My take on a practical implementation of Linformer for Pytorch.☆411Updated 2 years ago
- [ICLR 2024]EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modeling(https://arxiv.org/abs/2310.04691)☆119Updated 11 months ago
- Unofficial PyTorch implementation of Attention Free Transformer (AFT) layers by Apple Inc.☆233Updated 2 years ago
- Code for the ALiBi method for transformer language models (ICLR 2022)☆515Updated last year
- An implementation of the efficient attention module.☆301Updated 4 years ago
- A pytorch &keras implementation and demo of Fastformer.☆187Updated 2 years ago
- Sequence modeling with Mega.☆298Updated 2 years ago
- Implement the paper "Self-Attention with Relative Position Representations"☆125Updated 4 years ago
- ☆187Updated last year
- Fully featured implementation of Routing Transformer☆288Updated 3 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆210Updated 2 years ago
- Implementation of "Attention Is Off By One" by Evan Miller☆189Updated last year
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆692Updated last year
- ACL'2023: DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models☆300Updated last year
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆258Updated 3 years ago
- Implementation of Fast Transformer in Pytorch☆172Updated 3 years ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆635Updated 2 months ago
- Official implementation of TransNormerLLM: A Faster and Better LLM☆240Updated last year
- 基于Gated Attention Unit的Transformer模型(尝鲜版)☆97Updated last year
- An implementation of Performer, a linear attention-based transformer, in Pytorch☆1,115Updated 3 years ago
- ☆604Updated last month
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch☆306Updated 8 months ago