lucidrains / flash-attention
Fast and memory-efficient exact attention
☆16Updated 6 months ago
Alternatives and similar repositories for flash-attention:
Users that are interested in flash-attention are comparing it to the libraries listed below
- Implementation of the proposed Adam-atan2 from Google Deepmind in Pytorch☆101Updated 2 months ago
- Implementation of Agent Attention in Pytorch☆89Updated 6 months ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆210Updated last year
- Randomized Positional Encodings Boost Length Generalization of Transformers☆79Updated 10 months ago
- Implementation of GateLoop Transformer in Pytorch and Jax☆87Updated 7 months ago
- [NeurIPS 2023 spotlight] Official implementation of HGRN in our NeurIPS 2023 paper - Hierarchically Gated Recurrent Neural Network for Se…☆62Updated 9 months ago
- Unofficial PyTorch implementation of Google's FNet: Mixing Tokens with Fourier Transforms. With checkpoints.☆70Updated 2 years ago
- A simple but robust PyTorch implementation of RetNet from "Retentive Network: A Successor to Transformer for Large Language Models" (http…☆104Updated last year
- Implementation of a Light Recurrent Unit in Pytorch☆48Updated 3 months ago
- Implementation of a Transformer using ReLA (Rectified Linear Attention) from https://arxiv.org/abs/2104.07012☆49Updated 2 years ago
- A repository for DenseSSMs☆86Updated 9 months ago
- [EMNLP 2022] Official implementation of Transnormer in our EMNLP 2022 paper - The Devil in Linear Transformer☆59Updated last year
- Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr\"om Method (NeurIPS 2021)☆60Updated 2 years ago
- Implementation of N-Grammer, augmenting Transformers with latent n-grams, in Pytorch☆72Updated 2 years ago
- A pytorch realization of adafactor (https://arxiv.org/pdf/1804.04235.pdf )☆23Updated 5 years ago
- several types of attention modules written in PyTorch for learning purposes☆44Updated 3 months ago
- PyTorch implementation of Soft MoE by Google Brain in "From Sparse to Soft Mixtures of Experts" (https://arxiv.org/pdf/2308.00951.pdf)☆69Updated last year
- Implementation of Fast Transformer in Pytorch☆172Updated 3 years ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆97Updated last year
- Axial Positional Embedding for Pytorch☆67Updated last week
- Implementation of Griffin from the paper: "Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models"☆51Updated this week
- Griffin MQA + Hawk Linear RNN Hybrid☆85Updated 9 months ago
- CUDA implementation of autoregressive linear attention, with all the latest research findings☆44Updated last year
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆113Updated 3 months ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆257Updated 9 months ago
- Another attempt at a long-context / efficient transformer by me☆37Updated 2 years ago
- A Tight-fisted Optimizer (Tiger), implemented in PyTorch.☆11Updated 7 months ago
- (Unofficial) PyTorch implementation of grouped-query attention (GQA) from "GQA: Training Generalized Multi-Query Transformer Models from …☆149Updated 8 months ago
- Unofficial PyTorch Implementation for pNLP-Mixer: an Efficient all-MLP Architecture for Language (https://arxiv.org/abs/2202.04350)☆62Updated 2 years ago
- [ICLR 2023] "Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers" by Tianlong Chen*, Zhenyu Zhang*, Ajay Jaiswal…☆48Updated last year