Who it is forA developer building an assistant that must pick up where a user left off after a restart or a new process.
The problemRestarting a conversation normally loses everything the model learned about the user, or forces the app to store and resend full transcripts.
The outcomeA snapshot file in the server's state directory that a new session can load, with zero stored messages and the earlier facts still answerable.
What you need first
- Linux server with NVIDIA CUDA and Python 3.11 or newer
- uv installed for the inference install step
- A complete local MemT-1.0-Nano checkpoint with BF16 weights, configuration and tokenizer assets
- Two GPUs for the Nano example in the README
- Write access to ./memt-state on the server for memory snapshots
Steps
- Complete the server setup from the persistent memory chat use case so
start_memt_nano.shis running. - In your Python session, call
snapshot = session.save_state("memmy_memory.safetensors")to commit pending turns and save memory. - Run
session.close()to end the original session. - Start a new
MemTSessionwithstate=snapshot["path"]and check thatlen(restored.messages)prints 0. - Ask a question that depends on the saved facts and confirm the reply uses them.
Prompt for your agent
Using the MemTensor/MemT-1.0 repo and a running MemT-1.0-Nano server, save memory from a session to <snapshot-name>.safetensors, then restore it in a new MemTSession. Expected output: restored.messages has length 0 and a reply to a fact-based question is correct. Verify the returned snapshot path is used as the state argument.
Caveat. Snapshots are saved in the server's configured state directory, so the restored session only works against a server that can read that directory.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page