Skip to main content
This guide walks you through submitting a training job using the Train API.

Prerequisites

Before you begin, ensure you have:
  • A valid Scale account with SGP access
  • Your API key and account ID:
  • A Docker image pushed to the workspace registry (see Custom Images)

Submit a Job

Jobs are submitted to POST /v1/{backend}/jobs. The {backend} is one of vertex-ai, sagemaker, or azure-ml, and each install enables only the backends configured for its cloud. The job_config structure mirrors each cloud’s native job API. Every storage_mounts location must be storage your install allows; see Storage Mounts.
Response
worker_pool_specs is an array; add more pools for distributed training. Train resolves only the first pool’s image_uri from the workspace registry; other pools’ image_uri values go to Vertex AI unchanged. command and args are separate arrays.

Job Response

All backends return the same job object shape:
string
required
Unique job identifier. Use this to poll status or cancel the job.
string
required
Current job state. Transitions through PENDING → IN_PROGRESS → COMPLETED / FAILED / CANCELED / EXPIRED. A cancel request moves an active job to CANCELING until the backend reports a final state.
object
The cloud provider’s native job identifier. Shape varies by backend: job_name for Vertex AI and Azure ML, training_job_name for SageMaker.
object
Populated on failure. Contains failure_reason with the error message from the cloud provider.

Check Status

Other Endpoints

List jobs:
Cancel a job:
Returns 202 with the job in CANCELING. Cancelling a job that is already CANCELING or CANCELED returns it unchanged. Returns 409 if the job already ended as COMPLETED, FAILED, or EXPIRED. List a job’s lifecycle events:

Accessing Mounts in Your Container

On Vertex AI and Azure ML, mounted storage is available via environment variables:
SageMaker does not set these variables; see Storage Mounts for where its mounts appear.

Next Steps