lucidrains / FLASH-pytorch
Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"
☆361Updated 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☆190Updated 2 years ago
- An implementation of local windowed attention for language modeling☆436Updated 3 months ago
- Implementation of Linformer for Pytorch☆278Updated last year
- ☆189Updated last year
- Code for the ALiBi method for transformer language models (ICLR 2022)☆521Updated last year
- A pytorch &keras implementation and demo of Fastformer.☆188Updated 2 years ago
- Rotary Transformer☆932Updated 3 years ago
- Transformer based on a variant of attention that is linear complexity in respect to sequence length☆755Updated 11 months ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 2 years ago
- RoFormer V1 & V2 pytorch☆492Updated 2 years ago
- An implementation of the efficient attention module.☆306Updated 4 years ago
- Fully featured implementation of Routing Transformer☆293Updated 3 years ago
- 基于Gated Attention Unit的Transformer模型(尝鲜版)☆97Updated 2 years ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch☆665Updated 4 months ago
- Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms☆259Updated 3 years ago
- ☆619Updated this week
- A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models☆726Updated last year
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆375Updated last year
- FLASHQuad_pytorch☆67Updated 3 years ago
- [ICLR 2024]EMO: Earth Mover Distance Optimization for Auto-Regressive Language Modeling(https://arxiv.org/abs/2310.04691)☆121Updated last year
- My take on a practical implementation of Linformer for Pytorch.☆413Updated 2 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆212Updated 2 years ago
- Sequence modeling with Mega.☆295Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆217Updated 7 months ago
- Implement the paper "Self-Attention with Relative Position Representations"☆128Updated 4 years ago
- Implementation of "Attention Is Off By One" by Evan Miller☆190Updated last year
- Implementation of Fast Transformer in Pytorch☆173Updated 3 years ago
- Tutel MoE: Optimized Mixture-of-Experts Library, Support DeepSeek FP8/FP4☆797Updated last week
- Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention☆260Updated 3 years ago
- Transformer with Untied Positional Encoding (TUPE). Code of paper "Rethinking Positional Encoding in Language Pre-training". Improve exis…☆251Updated 3 years ago