launch_training
Start a training script as a background job on a remote GPU runtime and return immediately. Poll status, logs, and metrics while the run continues.
Instructions
Launch a training script as a background job on the runtime; returns immediately.
The script may call the injected helpers log_metric(step, **kv) and
save_checkpoint_file(path), and read SEED. Poll with get_run_status /
get_logs / get_metrics; plot with plot_metrics.
requirements: space-separated pip packages to install first (e.g. "stable-baselines3 gymnasium"). env_json: JSON object of extra environment variables for the run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>",
"run_name": "<run_name>"
},
"name": "launch_training"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| env_json | No | ||
| run_name | Yes | ||
| requirements | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |