#304304th of 433 in ML frameworks and libraries

titans-pytorch

Unofficial PyTorch implementation of the Titans neural memory architecture

Stars
2k
License
MIT
Last commit
Nov 2026
Last release
Feb 2026
Language
Python
Stars, last 30 weeks+81
28 Apr 2026: 1,933 stars5 May 2026: 1,934 stars12 May 2026: 1,940 stars19 May 2026: 1,943 stars26 May 2026: 1,945 stars2 Jun 2026: 1,946 stars9 Jun 2026: 1,951 stars16 Jun 2026: 1,951 stars23 Jun 2026: 1,955 stars30 Jun 2026: 1,958 stars7 Jul 2026: 1,958 stars14 Jul 2026: 1,963 stars21 Jul 2026: 1,965 stars28 Jul 2026: 1,966 stars4 Aug 2026: 1,967 stars11 Aug 2026: 1,968 stars18 Aug 2026: 1,972 stars25 Aug 2026: 1,974 stars1 Sept 2026: 1,977 stars8 Sept 2026: 1,978 stars15 Sept 2026: 1,979 stars22 Sept 2026: 1,982 stars29 Sept 2026: 1,985 stars6 Oct 2026: 1,988 stars13 Oct 2026: 1,990 stars20 Oct 2026: 1,996 stars27 Oct 2026: 2,000 stars3 Nov 2026: 2,004 stars10 Nov 2026: 2,008 stars17 Nov 2026: 2,010 stars24 Nov 2026: 2,014 stars

1,933 on 28 Apr 20262,014 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PyTorch implementation of the Titans paper's test-time-learned neural memory, installable as `titans-pytorch`. It provides a standalone `NeuralMemory` layer and a `MemoryAsContextTransformer` (MAC configuration) with persistent and long-term memory tokens. It also holds experiments with memory architectures beyond the paper's 1-4 layer MLP.

Who it is for: ML researchers experimenting with test-time memory and long-context models

Strengths

  • Standalone `NeuralMemory` layer usable separately from the transformer
  • Includes a MAC transformer with sampling and a `train_mac.py` experiment script
  • Installable from PyPI with `pip install titans-pytorch`
  • MIT license, with a Colab notebook for a quick run

Weaknesses

  • Unofficial implementation, not from the paper's authors
  • Research code: no benchmarks or pretrained weights listed
  • Training is done by editing `train_mac.py`; no config or CLI
  • Documentation is limited to two usage snippets

What it needs

  • Needs PyTorch, uv

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#302maniskillGPU-parallelized robot simulation and learning framework for manipulation tasks Live demo ↗ (opens in a new tab)3.6k stars+83 (+2.4%) in 30 daysApache-2.042 out of 100
#303tensorflow/recommendersKeras-based library for building TensorFlow recommender models2k starsApache-2.042 out of 100
#305opentsnePython t-SNE library with FIt-SNE and Barnes-Hut for large datasets1.6k starsBSD-3-Clause42 out of 100
#306flashkdaCUTLASS-based CUDA kernels for Kimi Delta Attention forward pass1.3k starsMIT42 out of 100
#307deepchemPython library for deep learning on molecules, materials and biological data7.2k starsMIT41 out of 100