#118 · Primary category: Deep Learning Frameworks
titans-pytorch
Unofficial implementation of Titans, SOTA memory for transformers, in Pytorch
Project last updated:07/13/26
GitHub Stars
2.0K
Forks
207
Contributors
2
License
MIT
Why we included this project
Transformers run into trouble when the context window gets long, and the Titans line of work attacks that by adding a neural memory module that keeps learning at test time. This repo is the unofficial PyTorch port, and it ships the pieces ready to use: a standalone NeuralMemory block plus a MemoryAsContextTransformer that pairs local attention with persistent and long-term memory tokens. Both are small, composable, and install with a single pip command, so they drop into an existing training loop without much ceremony. The included training and sampling scripts give you a working baseline for prototyping long-context language models. It is an implementation library, not a pretrained model, so expect to spend real training time before judging how the architecture behaves on your own data.
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.