Skip to main content
Glama
ultralytics-mcp
by amanharshx

training_start

Destructive

Starts a billable cloud training run from an existing model or base checkpoint, using one dataset and required epochs; confirm billing before launch.

Instructions

Start a cloud training job from an existing model or a base checkpoint (state-changing, may cost credits). Checkpoint mode is chosen by the model ref's shape and owner, not a list of model families: a name ending in .pt, or a model owned by another account (ul://owner/project/model or owner/project/model), is used as the base checkpoint, and the server decides whether it exists. Any other ref is one of your own models to retrain. Trains on exactly one dataset and requires epochs. The dataset is validated immediately, so an unusable dataset is rejected before any compute starts. In checkpoint mode a project model is created first, because starting requires a model id, so any rejection when training starts leaves that model behind, unrequested: a missing or not-ready dataset, an invalid gpu_type, a checkpoint/dataset task mismatch, or a 503 GPU_UNAVAILABLE when no GPU of the requested type is in stock, which is not a caller error (choose another gpu_type). The error names the model so it can be reviewed and deleted (models_delete) if unwanted. Starting is billable immediately: the platform has no cost preview before that, so the projected cost and remaining balance are only reported after the job starts. Training an existing model that already has a recorded run (any status past pending/untrained) replaces that model's status, epoch count, and training result history the instant the new job starts, and that history cannot be recovered afterward; the previously uploaded weights survive. That path requires confirm_history_loss=true in addition to confirm_cost=true. Checkpoint mode never destroys an existing model's history since it always creates a new one, so it never needs confirm_history_loss, including for another account's model — its own risk is the possible leftover model described above. An untrained or never-trained model needs no extra confirmation either. Use training_cancel to stop a job that is already running. Requires confirm_cost=true.

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": {
      "model": "<model>",
      "project": "<project>",
      "dataset": "<dataset>",
      "gpu_type": "<gpu_type>",
      "epochs": "<epochs>"
    },
    "name": "training_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRun name for callbacks.
batchNoImages per batch: -1 targets about 60% GPU memory, a value between 0 and 1 sets a memory fraction, and a positive integer fixes the image count.
imgszNoTarget input size: square batches normally, or the long-side size with rect=true.
modelYesYour own model to retrain (slug with project, owner/project/model, or ul://owner/project/model), or a base checkpoint: a .pt name such as yolo26n.pt or yolov5nu.pt, or another account's model such as ul://ultralytics/yolov5/yolov5nu (examples illustrative). Checkpoint mode auto-creates a project model.
epochsYesMaximum full passes over the training set.
datasetYesDataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI.
projectYesProject ref that owns the training job and resolved model.
gpu_typeYesCloud GPU type to allocate for training.
train_argsNoAdditional YOLO training arguments passed through to the platform. epochs, imgsz, batch, and name here are silently overridden by the matching top-level input when both are set; data and model are rejected outright if present here.
confirm_costNoMust be true to allow a credit-costing training run. Starting is billable immediately; the platform has no cost preview before that, so the estimated cost and remaining balance are only reported after the job starts.
confirm_history_lossNoMust be true to restart training on an existing model that already has a recorded run. Doing so replaces that model's status, epoch count, and training result history irrecoverably; the previously uploaded weights survive. Not required for an untrained model or for checkpoint mode, which creates a new model instead. Separate from confirm_cost.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.17
    • changedInput schema / properties / model / description
      Previous value: -"Existing model ref, or official YOLO base checkpoint such as yolo11n.pt or yolo11n-seg.pt. Checkpoint mode auto-creates a project model."New value: +"Your own model to retrain (slug with project, owner/project/model, or ul://owner/project/model), or a base checkpoint: a .pt name such as yolo26n.pt or yolov5nu.pt, or another account's model such as ul://ultralytics/yolov5/yolov5nu (examples illustrative). Checkpoint mode auto-creates a project model."
  2. Changed9 schema fields changedv0.1.15
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / confirm_history_loss / description
      Previous value: -"Must be true to restart training on an existing model that already has a recorded run. Doing so replaces that model's status, epoch count, and per-epoch metric history irrecoverably; the previously uploaded weights survive. Not required for an untrained model or for checkpoint mode, which creates a new model instead. Separate from confirm_cost."New value: +"Must be true to restart training on an existing model that already has a recorded run. Doing so replaces that model's status, epoch count, and training result history irrecoverably; the previously uploaded weights survive. Not required for an untrained model or for checkpoint mode, which creates a new model instead. Separate from confirm_cost."
    • removedInput schema / properties / dataset / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -]
    • changedInput schema / properties / dataset / description
      Previous value: -"Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI, or a list of refs to fine-tune on sequentially."New value: +"Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI."
    • addedInput schema / properties / dataset / type
      Added value: +"string"
    • addedInput schema / properties / epochs / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / epochs / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / epochs / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / required
      Previous value: -[
      -  "model",
      -  "project",
      -  "dataset",
      -  "gpu_type"
      -]New value: +[
      +  "model",
      +  "project",
      +  "dataset",
      +  "gpu_type",
      +  "epochs"
      +]
  3. Changed6 schema fields changedv0.1.13
    • addedInput schema / properties / batch / description
      Added value: +"Images per batch: -1 targets about 60% GPU memory, a value between 0 and 1 sets a memory fraction, and a positive integer fixes the image count."
    • changedInput schema / properties / dataset / description
      Previous value: -"Dataset ref by slug, owner/slug, or ul:// URI, or a list of refs to fine-tune on sequentially."New value: +"Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI, or a list of refs to fine-tune on sequentially."
    • addedInput schema / properties / epochs / description
      Added value: +"Maximum full passes over the training set."
    • addedInput schema / properties / imgsz / description
      Added value: +"Target input size: square batches normally, or the long-side size with rect=true."
    • addedInput schema / properties / name / description
      Added value: +"Run name for callbacks."
    • addedInput schema / properties / train_args / description
      Added value: +"Additional YOLO training arguments passed through to the platform. epochs, imgsz, batch, and name here are silently overridden by the matching top-level input when both are set; data and model are rejected outright if present here."
  4. Changed5 schema fields changedv0.1.12
    • changedInput schema / properties / confirm_cost / description
      Previous value: -"Must be true to allow a credit-costing training run."New value: +"Must be true to allow a credit-costing training run. Starting is billable immediately; the platform has no cost preview before that, so the estimated cost and remaining balance are only reported after the job starts."
    • addedInput schema / properties / confirm_history_loss
      Added value: +{
      +  "description": "Must be true to restart training on an existing model that already has a recorded run. Doing so replaces that model's status, epoch count, and per-epoch metric history irrecoverably; the previously uploaded weights survive. Not required for an untrained model or for checkpoint mode, which creates a new model instead. Separate from confirm_cost.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / dataset / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / dataset / description
      Previous value: -"Dataset ref used as training data for the job."New value: +"Dataset ref by slug, owner/slug, or ul:// URI, or a list of refs to fine-tune on sequentially."
    • removedInput schema / properties / dataset / type
      Removed value: -"string"
  5. Changed6 schema fields changedv0.1.6
    • addedInput schema / properties / confirm_cost / description
      Added value: +"Must be true to allow a credit-costing training run."
    • addedInput schema / properties / dataset / description
      Added value: +"Dataset ref used as training data for the job."
    • addedInput schema / properties / gpu_type / description
      Added value: +"Cloud GPU type to allocate for training."
    • addedInput schema / properties / model / description
      Added value: +"Existing model ref, or official YOLO base checkpoint such as yolo11n.pt or yolo11n-seg.pt. Checkpoint mode auto-creates a project model."
    • addedInput schema / properties / project / description
      Added value: +"Project ref that owns the training job and resolved model."
    • addedInput schema / properties / train_args
      Added value: +{
      +  "additionalProperties": {},
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  6. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Although annotations already declare destructiveHint=true and openWorldHint=true, the description goes well beyond them: it discloses immediate billing with no cost preview, that restarting a recorded model irrecoverably replaces status/epoch count/result history while weights survive, and that a checkpoint-mode rejection can leave an orphaned project model that must be cleaned up with models_delete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the mode-selection rule before the edge cases, and nearly every sentence carries a distinct operational fact. It is long and revisits history loss twice (the general rule, then the checkpoint-mode exemption), which costs some tightness but not comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a billable, destructive, 11-parameter tool with an open-ended train_args passthrough and no output schema, the description covers cost, irreversibility, failure modes, leftover resources, and cleanup path. An agent has everything needed to call it safely without probing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real decision logic beyond the schema: checkpoint mode is inferred from the model ref's shape (.pt suffix) or owner (another account) and the server decides existence, otherwise it is a retrain of one's own model. It also reinforces that exactly one dataset is allowed and epochs is required, which ties the required params together.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource ('Start a cloud training job') plus the two supported sources ('an existing model or a base checkpoint'), and flags that it is state-changing and billable. The distinction from siblings like training_monitor and training_cancel is immediately clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It routes the agent explicitly: 'Use training_cancel to stop a job that is already running', requires confirm_cost=true, and spells out when confirm_history_loss=true is needed versus when it is not (checkpoint mode, untrained model). It even advises choosing another gpu_type on a 503 GPU_UNAVAILABLE rather than treating it as a caller error.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.