Manage your models on a map.
Give each model version a card. Connect cards to show what came from where, then open any card to find what changed, how it trained, and which checkpoint earned each score.
Quick start · Use it from AI agents · Connect your runs · 简体中文
The roadmap groups versions by date or generation. Select a card to trace its ancestors. See both layouts in motion
Requires Node.js 22 or later.
git clone https://github.com/FunkyFrog1/TorchMap.git
cd TorchMap
npm startOpen the local viewer and try the built-in model roadmap. Open TorchMap locally
To try training and evaluation together, keep the viewer running and open a second terminal in the same folder.
node examples/walkthrough.mjsOpen the URL printed by the script. This fictional project includes a baseline, a run continued from a 40K EMA checkpoint, and evaluations linked to specific checkpoints.
- Record the change. Add a model card, link its upstream versions, and describe what changed. Repeats with a different seed can share a card as separate runs.
- Compare training. Double-click a card to see its curves alongside its direct parent. Select more cards on the roadmap to compare other branches.
- Find the checkpoint behind a score. A late test of a 40K checkpoint still appears at step 40,000. Each result carries its dataset, protocol, and weight variant.
The local, read-only MCP server lets an agent find model cards, trace their lineage to an exact starting checkpoint, and look up checkpoint scores. Comparisons use the recorded dataset, split, protocol, and weight variant, and return links back to the viewer.
Run npm ci in your TorchMap checkout and start the viewer. The VS Code button opens the install dialog. When first starting the server, enter the absolute path to your local TorchMap/src/mcp.mjs.
Replace the path below with the absolute path to your local entry point.
codex mcp add torchmap -- node "/absolute/path/to/TorchMap/src/mcp.mjs"Add this entry to your project’s .cursor/mcp.json and replace the path with the absolute path to your local entry point.
{
"mcpServers": {
"torchmap": {
"command": "node",
"args": ["/absolute/path/to/TorchMap/src/mcp.mjs"]
}
}
}Set TENSORMAP_URL in the server environment if your viewer uses a different loopback address or port. The default is http://127.0.0.1:18770.
Try asking, “Which checkpoint did Delayed decay start from? Compare its 55K EMA score with Baseline on heldout-v1, and link both cards.”
- Existing experiment files. Point the directory viewer at your shared project folder with
node src/directory-server.mjs "/path/to/projects". Directory format - Training and evaluation scripts. Use
node src/cli.mjs helpor adapt the example to report metrics, register weights, and attach results. Set"split": "test"or"split": "validation"explicitly for custom datasets. Event protocol · Runnable example - Codex skill. Give the included skill your project folder and output paths to register a version or attach a report to a checkpoint. TorchMap skill
The protocol is framework-independent and retains the tensormap/… identifiers and TENSORMAP_* environment variables. The viewer binds to loopback. Use an SSH tunnel for shared access.
Development · npm ci · npm test · npx playwright install chromium · npm run test:ui
v0.6.1 · Report an issue · MIT license
- FunkyFrog1
- Codex contributed the local MCP integration and its documentation. @codex


