Skip to main content
Check on your training jobs with the Baseten CLI or the Training API. Each job belongs to a training project. baseten train push creates the project from the TrainingProject in your config.

List projects

To list your training projects:
The command lists each project you can access with its ID, name, team, latest job, latest job status, and creation time.

List jobs

To list training jobs:
The command lists every job in the projects you can access, newest first, with each job’s ID, project, name, status, instance type, node count, and creation time.To filter the list:
--project takes a project name or ID. --status takes one or more of pending, created, deploying, deploy-failed, running, completed, failed, stopped, or preempted. Use either flag, or both.

Check job status

To check a job’s status:Run the following command, replacing <job_id> with the job ID:
The command prints one field per line, including the job’s status, project ID, availability, queue priority, and job-level checkpoint sync status:
Availability is standard for capacity that isn’t preempted, or spot for interruptible capacity that can be preempted; see Spot capacity. Checkpoints is the job’s overall checkpoint sync status, not the SYNC value of an individual checkpoint in the checkpoint list.To print only the job’s status:
The command prints the state as a quoted string:
For what each state means, see Job lifecycle.

Stream job logs

To stream a job’s logs:Run the following command, replacing <job_id> with the job ID:
The command streams new log lines until the job stops producing them or you press Ctrl-C. Without --tail, it prints the last 30 minutes of logs.To print a different log window:
--since takes a duration such as 30m or 1h30m, or a number of days such as 3d, up to 7d.

View job metrics

To view a job’s resource metrics:Run the following command, replacing <job_id> with the job ID:
The table lists each metric’s value per node, with the time it was measured:
To sample a different window:

Next steps