lucidrains / flash-cosine-sim-attention
Implementation of fused cosine similarity attention in the same style as Flash Attention
☆204Updated last year
Related projects: ⓘ
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆355Updated last year
- Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena☆203Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆221Updated 2 years ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆247Updated 2 years ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆178Updated last year
- Implementation of Flash Attention in Jax☆188Updated 6 months ago
- Implementation of Fast Transformer in Pytorch☆170Updated 3 years ago
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆115Updated last month
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆116Updated 3 years ago
- Implementation of Hourglass Transformer, in Pytorch, from Google and OpenAI☆74Updated 2 years ago
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆123Updated 2 years ago
- Implementation of Linformer for Pytorch☆244Updated 8 months ago
- Simple and efficient RevNet-Library for PyTorch with XLA and DeepSpeed support and parameter offload☆123Updated 2 years ago
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆193Updated 7 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆222Updated last week
- Implementation of a U-net complete with efficient attention as well as the latest research findings☆257Updated 4 months ago
- FFCV-SSL Fast Forward Computer Vision for Self-Supervised Learning.☆199Updated last year
- Code release for "Dropout Reduces Underfitting"☆311Updated last year
- Implementation of a Transformer, but completely in Triton☆242Updated 2 years ago
- Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch☆233Updated 4 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆211Updated 3 weeks ago
- An implementation of local windowed attention for language modeling☆368Updated last week
- Sequence modeling with Mega.☆296Updated last year
- ☆192Updated this week
- ☆163Updated last year
- Explorations into the recently proposed Taylor Series Linear Attention☆85Updated last month
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆94Updated last year
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores☆263Updated 7 months ago
- A practical implementation of GradNorm, Gradient Normalization for Adaptive Loss Balancing, in Pytorch☆74Updated 7 months ago
- DiffQ performs differentiable quantization using pseudo quantization noise. It can automatically tune the number of bits used per weight …☆229Updated last year