lucidrains / Mega-pytorch
Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena
☆204Updated last year
Alternatives and similar repositories for Mega-pytorch:
Users that are interested in Mega-pytorch are comparing it to the libraries listed below
- Sequence modeling with Mega.☆295Updated 2 years ago
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆99Updated 2 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆211Updated 2 years ago
- ☆164Updated 2 years ago
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆251Updated 2 years ago
- Sequence Modeling with Structured State Spaces☆63Updated 2 years ago
- Implementation of Discrete Key / Value Bottleneck, in Pytorch☆87Updated last year
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆226Updated 6 months ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆209Updated 6 months ago
- Implementation of Block Recurrent Transformer - Pytorch☆218Updated 6 months ago
- Implementation of Recurrent Interface Network (RIN), for highly efficient generation of images and video without cascading networks, in P…☆201Updated last year
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆225Updated 2 years ago
- Implementation of a Transformer that Ponders, using the scheme from the PonderNet paper☆80Updated 3 years ago
- Implementation of GateLoop Transformer in Pytorch and Jax☆87Updated 9 months ago
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆182Updated 2 years ago
- 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☆156Updated 3 years ago
- Easy Hypernetworks in Pytorch and Jax☆98Updated 2 years ago
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"☆372Updated last year
- Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways - in Jax (Equinox framework)☆187Updated 2 years ago
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆129Updated last year
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆116Updated 5 months ago
- Implementation of Fast Transformer in Pytorch☆173Updated 3 years ago
- Implementation of Hourglass Transformer, in Pytorch, from Google and OpenAI☆86Updated 3 years ago
- Explorations into the recently proposed Taylor Series Linear Attention☆94Updated 7 months ago
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆125Updated 3 years ago
- Implementation of Flash Attention in Jax☆206Updated last year
- Implementation of Bit Diffusion, Hinton's group's attempt at discrete denoising diffusion, in Pytorch☆342Updated last year
- A practical implementation of GradNorm, Gradient Normalization for Adaptive Loss Balancing, in Pytorch☆86Updated last year
- Implementation of Feedback Transformer in Pytorch☆105Updated 4 years ago