lucidrains / Mega-pytorch
Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena
☆203Updated last year
Related projects ⓘ
Alternatives and complementary repositories for Mega-pytorch
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆207Updated last year
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆94Updated last year
- Sequence modeling with Mega.☆297Updated last year
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆247Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆214Updated 2 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆224Updated 2 months ago
- ☆164Updated last year
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆194Updated 8 months ago
- Implementation of Discrete Key / Value Bottleneck, in Pytorch☆87Updated last year
- Sequence Modeling with Structured State Spaces☆60Updated 2 years ago
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆106Updated 3 years ago
- Implementation of a Transformer that Ponders, using the scheme from the PonderNet paper☆78Updated 3 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆359Updated last year
- Implementation of Perceiver AR, Deepmind's new long-context attention network based on Perceiver architecture, in Pytorch☆86Updated last year
- Pytorch implementation of Compressive Transformers, from Deepmind☆157Updated 3 years ago
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆124Updated 2 years ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆205Updated 2 months ago
- Implementation of Hourglass Transformer, in Pytorch, from Google and OpenAI☆84Updated 2 years ago
- Another attempt at a long-context / efficient transformer by me☆37Updated 2 years ago
- Implementation of GateLoop Transformer in Pytorch and Jax☆86Updated 4 months ago
- Standalone Product Key Memory module in Pytorch - for augmenting Transformer models☆72Updated 3 months ago
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆122Updated 9 months ago
- Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways - in Jax (Equinox framework)☆185Updated 2 years ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆179Updated last year
- Implementation of Fast Transformer in Pytorch☆171Updated 3 years ago
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆116Updated 3 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆222Updated 2 years ago
- Implementation of Flash Attention in Jax☆194Updated 8 months ago