#197 · Primary category: Deep Learning Frameworks
reformer-pytorch
Reformer, the efficient Transformer, in Pytorch
Project last updated:06/21/23
GitHub Stars
2.2K
Forks
252
Contributors
11
License
MIT
Why we included this project
The Reformer architecture made long-context transformers practical by replacing exact attention with a locality-sensitive hashing approximation, and this library is a solid way to actually use it in PyTorch. You get the full language model plus the reversible encoder and LSH attention as separate classes, so you can pull out just the piece you need rather than reimplementing the paper. That split also makes it a decent reference for seeing how hashing, reversible layers, and chunking fit together. The knobs are extensive, from rotary and axial embeddings to persistent memory keys and masking, which helps when you want to probe the design space. If your work involves 8k to 16k token contexts on a modest GPU, this is worth evaluating before you build from scratch.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.