SSH pipe
If you have ssh, you can log a run:
python train.py 2>&1 | ssh ssh.modgrad.com
- Your output is echoed back unchanged.
- The run’s board link is printed first, on stderr.
- Metric lines become rows, parsed as on the
/textendpoint. Print the step on every metric line. - End of input finishes the run with exit code 0. A dropped connection leaves it unfinished.
Your key is your identity
No signup, no password, any key type. Your first connect makes a project for the
key, and the same key always lands there. The project is kept, and anyone with its
link can read it. It gets 200 MB until you sign in on the web with the key
(ssh ssh.modgrad.com login), then your account’s 1 GB (limits).
Commands
Each connection runs one fixed command, never a shell.
| command | what it does |
|---|---|
ssh ssh.modgrad.com (with input piped in) |
stream into a new run with an automatic name |
ssh ssh.modgrad.com run <name> |
the same, into the run <project>/<name> |
ssh ssh.modgrad.com token |
print a project token for this key’s project, for the HTTP API or wandb; it expires after 30 days |
ssh ssh.modgrad.com runs |
list this key’s runs |
ssh ssh.modgrad.com tail <run> |
latest values of a run |
ssh ssh.modgrad.com login |
a one-time link, valid 10 minutes |
ssh ssh.modgrad.com help |
usage |
Signing in with your key
ssh ssh.modgrad.com login prints a link. Opening it signs the browser in with
this key, or adds the key to the account the browser is signed in to. A key pasted
into your account on the web can only run login and help until such a link
confirms it.
Using the token with wandb
ssh ssh.modgrad.com token
prints the token on stdout and names the project on stderr
(modgrad: project token for <project> ...). Then:
export WANDB_BASE_URL=https://app.modgrad.com
export WANDB_API_KEY=<token>
export WANDB_PROJECT=<project>
python train.py
A token writes to one project, so set WANDB_PROJECT. wandb runs land next to
your piped ones.