{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "lucidrains-robo-ttt--add-test-time-training-memory",
 "repo": "lucidrains/robo_ttt",
 "repo_url": "https://github.com/lucidrains/robo_ttt",
 "repo_slug": "lucidrains-robo-ttt",
 "title": "Add a test-time training memory to a model",
 "page_title": "How to add a test-time training memory to a model with Robo TTT",
 "summary": "Wrap attended action chunks with TTTWrapper and an MLP memory in a few lines of PyTorch.",
 "who": "A robotics researcher who wants to try RoboTTT ideas in an existing policy.",
 "problem": "Reimplementing a new paper's method from scratch is slow.",
 "outcome": "A working TTT layer returning outputs and next fast weights with matching shapes.",
 "steps": [
  "Install with `pip install robo-ttt`",
  "Build a 2-layer MLP memory and wrap it in MemoryKeyValueBind",
  "Create TTTWrapper(512, memory = memory)",
  "Pass action chunks and check the output shape"
 ],
 "agent_prompt": "Install lucidrains/robo_ttt, run the basic MemoryKeyValueBind plus TTTWrapper example on random tensors of shape (2, 5, 4, 512), and confirm the output shape matches the input.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "It is an unofficial implementation of the paper, so verify results against the original work.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "python",
 "requirements": [
  "Python with PyTorch"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lucidrains-robo-ttt/add-test-time-training-memory/",
 "md": "https://dedupedai.com/use-cases/lucidrains-robo-ttt/add-test-time-training-memory/index.md",
 "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 hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/lucidrains-robo-ttt--add-test-time-training-memory.json",
 "api_version": "v1"
}
