Skip to content
FunkyFrog1Public

About

A local dashboard for model lineage, training curves, and checkpoint evaluations.

Topics

Resources

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

TorchMap

Latest tag MIT license

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 · 简体中文

TorchMap roadmap showing a baseline, ablations, fine-tunes, and merged experiments

The roadmap groups versions by date or generation. Select a card to trace its ancestors. See both layouts in motion

Quick start

Requires Node.js 22 or later.

git clone https://github.com/FunkyFrog1/TorchMap.git
cd TorchMap
npm start

Open 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.mjs

Open 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.

Work from the map

  1. 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.
  2. Compare training. Double-click a card to see its curves alongside its direct parent. Select more cards on the roadmap to compare other branches.
  3. 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.
See training curves and test results

Training view comparing a fine-tune from 40K with its parent

Test view comparing Top-1 accuracy and Macro F1 by training checkpoint

Screenshots use fictional metrics.

Use TorchMap from AI agents

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.

Configure Codex Configure Cursor Install MCP in VS Code

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.

Codex

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"

Cursor

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.”

Connect your runs

  • 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 help or 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

Contributors

  • FunkyFrog1
  • Codex contributed the local MCP integration and its documentation. @codex

Contact the maintainer

About

A local dashboard for model lineage, training curves, and checkpoint evaluations.

Topics

Resources

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages