lucidrains / Mega-pytorchLinks
Implementation of Mega, the Single-head Attention with Multi-headed EMA architecture that currently holds SOTA on Long Range Arena
☆206Updated 2 years ago
Alternatives and similar repositories for Mega-pytorch
Users that are interested in Mega-pytorch are comparing it to the libraries listed below
Sorting:
- Implementation of Gated State Spaces, from the paper "Long Range Language Modeling via Gated State Spaces", in Pytorch☆101Updated 2 years ago
- Implementation of fused cosine similarity attention in the same style as Flash Attention☆217Updated 2 years ago
- Sequence modeling with Mega.☆300Updated 2 years ago
- ☆164Updated 2 years ago
- Implementation of a Transformer that Ponders, using the scheme from the PonderNet paper☆81Updated 3 years ago
- Implementation of Fast Transformer in Pytorch☆177Updated 4 years ago
- Implementation of Discrete Key / Value Bottleneck, in Pytorch☆88Updated 2 years ago
- Implementation of Block Recurrent Transformer - Pytorch☆221Updated last year
- Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch☆252Updated 3 years ago
- Pytorch implementation of Compressive Transformers, from Deepmind☆162Updated 4 years ago
- Axial Positional Embedding for Pytorch☆83Updated 7 months ago
- Implementation of the conditionally routed attention in the CoLT5 architecture, in Pytorch☆230Updated last year
- Memory Efficient Attention (O(sqrt(n)) for Jax and PyTorch☆182Updated 2 years ago
- Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT☆222Updated last year
- Sequence Modeling with Structured State Spaces☆66Updated 3 years ago
- Standalone Product Key Memory module in Pytorch - for augmenting Transformer models☆83Updated last year
- ☆75Updated 2 years ago
- Implementation of Nyström Self-attention, from the paper Nyströmformer☆141Updated 7 months ago
- Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch☆120Updated 4 years ago
- Implementation of Feedback Transformer in Pytorch☆108Updated 4 years ago
- Implementation of GateLoop Transformer in Pytorch and Jax☆90Updated last year
- GPT, but made only out of MLPs☆89Updated 4 years ago
- Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways - in Jax (Equinox framework)☆188Updated 3 years ago
- Implementation of Hourglass Transformer, in Pytorch, from Google and OpenAI☆95Updated 3 years ago
- TF/Keras code for DiffStride, a pooling layer with learnable strides.☆124Updated 3 years ago
- Just some miscellaneous utility functions / decorators / modules related to Pytorch and Accelerate to help speed up implementation of new…☆123Updated last year
- Implementation of Memformer, a Memory-augmented Transformer, in Pytorch☆123Updated 4 years ago
- Some personal experiments around routing tokens to different autoregressive attention, akin to mixture-of-experts☆119Updated last year
- Implementation of Perceiver AR, Deepmind's new long-context attention network based on Perceiver architecture, in Pytorch☆91Updated 2 years ago
- Official PyTorch Implementation of Long-Short Transformer (NeurIPS 2021).☆228Updated 3 years ago