---
title: How to Run MemT-1.0-Pro With Transformers and Save Memory
url: "https://goremy.ai/blog/articles/run-memt-1-0-pro-locally-transformers"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-26T09:20:14.395Z"
updated: "2026-11-26T09:20:14.395Z"
topic: Local AI
description: Install MemT-1.0-Pro, load it in bfloat16, and use create_session, enable_memory and save_state to keep memory between sessions. Includes license notes.
---

# How to Run MemT-1.0-Pro With Transformers and Save Memory

> Install MemT-1.0-Pro, load it in bfloat16, and use create_session, enable_memory and save_state to keep memory between sessions. Includes license notes.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-26

## How do you install and run MemT-1.0-Pro and save its memory?

You need Python 3.11 or newer, a CUDA build of PyTorch, the packages in the repo's `requirements.txt`, and two extra pinned packages: `mamba-ssm==2.3.2.post1` and `causal-conv1d==1.6.2.post1`. Load the model with Hugging Face Transformers using `trust_remote_code=True` and bfloat16. Create a session with `model.create_session(tokenizer)`, chat with `enable_memory=True`, and call `session.save_state("file.safetensors")`. To resume, pass that file as `state=` to a new session.

## TL;DR

- MemT-1.0-Pro is an open-weight model from MemTensor that keeps **memory as part of the model's own computation**, so it does not have to re-read the whole conversation each time.
- Setup needs **Python 3.11+, a CUDA build of PyTorch, and exact versions** of `mamba-ssm` and `causal-conv1d`, because the Nemotron backbone depends on them.
- The model has **554B total parameters**, so plan for a multi-GPU server, not a laptop.
- With `enable_memory=True`, a turn is written into **latent memory and the plaintext context is cleared**.
- `save_state` writes memory to a `.safetensors` file, and a new session started from that file has **zero stored messages** but can still answer questions about the earlier conversation.
- The license is **OpenMDW-1.1**, and the backbone and third-party parts keep their own licenses, so check them before you ship anything.

## What is MemT-1.0-Pro?

MemT-1.0-Pro is the largest model in the MemT-1.0 family from MemTensor. The family is built around one idea: the model carries a memory state with it, instead of relying only on a long text history that you keep feeding back in.

Most chat setups work like this. Every new message is sent along with the full past conversation, and the model re-reads all of it. That history takes up space and cost grows as it gets longer. MemT-1.0 instead updates a memory state at the end of each turn or segment. According to the model card, that persistent state stays the same size, and at a 128K-token history it cuts storage by about 66 times compared with a full-context KV cache (the working store a standard model builds while reading a long history).

The Pro model is built on NVIDIA's Nemotron-3-Ultra-550B-A55B backbone. The card lists 554B total parameters and 59B activated parameters per token, plus 4.23B trainable memory parameters.

## What do you need before you install it?

The model card gives these requirements:

| Requirement | Detail |
|---|---|
| Python | 3.11 or newer |
| PyTorch | A CUDA build that matches your GPU |
| Repo packages | `pip install -r requirements.txt` |
| Extra for Pro | `mamba-ssm==2.3.2.post1` |
| Extra for Pro | `causal-conv1d==1.6.2.post1` |

The card says those two versions match the "validated Pro environment." Treat them as exact pins. If you use different versions, you are on your own, because the authors tested this combination.

The card does not list GPU memory requirements, so I will not guess at a specific card. You can do the arithmetic yourself, though. At bfloat16, each parameter takes 2 bytes. With 554B parameters, the weights alone come to roughly 1.1 terabytes before you count anything else. That points to a multi-GPU server or a cloud instance. If you only want to try the idea on smaller hardware, the family also includes MemT-1.0-Nano (36B total parameters), which the card says uses the same Transformers workflow.

## How do you load the model?

Install the packages first:

```bash
pip install -r requirements.txt
pip install mamba-ssm==2.3.2.post1 causal-conv1d==1.6.2.post1
```

Then load the tokenizer and model, as shown on the card:

```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline

model_id = "MemMemTensor/MemT-1.0-Pro"  # Or a local model directory.
```

Use the correct ID, which is `MemTensor/MemT-1.0-Pro`:

```python
model_id = "MemTensor/MemT-1.0-Pro"  # Or a local model directory.
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype=torch.bfloat16,
    device_map="auto",
    attn_implementation="eager",
)
```

A few settings matter here:

- **`trust_remote_code=True`** lets Transformers run the custom model code that ships with the repo. That code is what adds the session and memory features. It also means you are running code from a third party, so read it first if your company has rules about that.
- **`dtype=torch.bfloat16`** loads the weights in 16-bit format.
- **`device_map="auto"`** spreads the model across the GPUs it finds.
- **`attn_implementation="eager"`** uses the standard attention code path, as the card specifies.

## How do you chat with memory turned on?

Memory works through sessions. You create one, then tell it which turns to store.

```python
session = model.create_session(tokenizer)

session.chat(
    "I have a three-month-old kitten named memmy who loves eating "
    "small shrimp and is excellent at remembering things.",
    enable_memory=True,
    enable_thinking=False,
)

answer = session.chat(
    "What are my kitten's name, age, favorite food, and special trait?",
    enable_thinking=False,
)
print(answer)
```

With `enable_memory=True`, the model saves the past and current turns into latent local memory and clears the plaintext conversation context. "Latent" means the information lives in the model's internal numbers, not as readable text. The second question does not set `enable_memory`, and the model still answers from memory. On the card, it returns the name Memmy, age three months, favorite food small shrimp, and the trait of an excellent memory.

The `enable_thinking=False` argument turns off the model's thinking mode for these calls, as in the card's examples.

## How do you save and resume a memory session?

Call `save_state` to write the memory to disk, then start a new session from that file:

```python
state_path = "memmy_memory.safetensors"
session.save_state(state_path)
session.close()

restored = model.create_session(tokenizer, state=state_path)
print(len(restored.messages))  # 0

answer = restored.chat("How old is my kitten?", enable_thinking=False)
print(answer)  # Your kitten is **3 months old**.

restored.close()
```

Three details are worth noting:

1. `save_state` saves local memory, **including any unsaved conversation turns**. You do not need to flush manually first.
2. The restored session has `len(restored.messages)` equal to 0. No plaintext conversation was loaded, yet the model still knew the kitten's age.
3. Close sessions with `close()` when you finish.

The `.safetensors` file is a snapshot of what the model remembers about a person or a conversation. The card does not say anything about encrypting it. Treat it like any file that holds personal or business information: control who can read it, and do not leave it in a shared folder.

## Can you still use regular chat without memory?

Yes. The card shows the standard Transformers pipeline for ordinary plaintext chat, without `enable_memory`:

```python
generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
messages = [{"role": "user", "content": "Type 'I love MemT' exactly."}]
result = generator(
    messages,
    generation_config=model.generation_config,
    tokenizer_encode_kwargs={"enable_thinking": False},
)
print(result[0]["generated_text"][-1]["content"])
```

This is useful as a first test. If the plain pipeline works, your install is sound, and any problem you hit later is likely in the session code.

## How good is its memory, honestly?

The card says that across 11 memory benchmarks, MemT-1.0-Pro, Flash and Nano rank first, second and third among the *evaluated parametric-memory methods* (methods that store memory inside the model). It also says that strong textual-memory systems, which keep and search the actual text, remain ahead overall, particularly on long histories that need detailed evidence retrieval.

So if your use case is "find the exact sentence a customer wrote six months ago," a text-based memory system may serve you better. If you care about a compact, fixed-size memory that travels with the model, MemT is the approach worth testing.

## What does the OpenMDW-1.1 license mean for you?

The card states that MemT-1.0-Pro is released under the OpenMDW-1.1 license, following the NVIDIA Nemotron backbone. It also says the backbone and third-party components keep their original licenses and copyright notices. Some inference code is adapted from Hugging Face Transformers and the MemTensor Nano release, under Apache License 2.0.

In practice, that means there are several licenses in play, not one. Before you use the model in a product or inside a company, read the OpenMDW-1.1 text at openmdw.ai and the backbone's terms, and send them to your legal or compliance team. This article is not legal advice.

## What does this mean for you?

**If you are a developer or data scientist:** build a small test first. Run the kitten example, save the state, restart your process, and confirm the restored session answers correctly. Then check how it behaves on your own data before you commit to the approach.

**If you manage a team or budget:** the hardware is the main cost question. A 554B-parameter model is a server-class workload. Ask for a pilot on rented GPUs before buying anything, and ask whether the smaller Nano model covers your need.

**If you work in compliance or IT:** `trust_remote_code=True`, multiple licenses, and saved memory files that hold conversation content are all items to review.

## What could you build around a model like this?

Models like MemT are the engine, but your team usually needs a small surrounding tool. For a pilot, that might be a tracker listing which model versions, pinned package versions and licenses you have approved, or a request form where colleagues ask for GPU time. [Remy](https://goremy.ai) can build that kind of internal app from a plain-English description, deployed with a database and sign-in, so you are not juggling a spreadsheet or paying for another subscription. It is a way to own the small tools around your AI experiments, though it does not run models like MemT itself.

## Frequently Asked Questions

### Which Python version does MemT-1.0-Pro need?

The model card says Python 3.11 or newer, with a CUDA build of PyTorch for your GPU. You also need the pinned `mamba-ssm` and `causal-conv1d` versions for the Nemotron backbone.

### Why does the model need trust_remote_code=True?

The memory and session features come from custom code in the model repository, not from the standard Transformers library. Transformers must run that code to load the model and expose methods like `create_session`. Review the code if your organization restricts third-party code.

### Does a restored session remember the plaintext conversation?

No. After restoring from a saved state, `len(restored.messages)` is 0, so no plaintext history is loaded. The model still answers questions about the earlier conversation because the information is in the restored memory state.

### Can I run MemT-1.0-Pro on a single consumer GPU?

The card gives no hardware figures, but the size says it is unlikely. At 554B parameters in bfloat16, the weights alone are roughly 1.1 TB. The smaller MemT-1.0-Nano, at 36B total parameters, is the more realistic starting point for modest hardware.

### Can I use it commercially?

It is released under OpenMDW-1.1, and the backbone and third-party components keep their own licenses. Read those terms and ask your legal team before commercial use.
