truss train command provides subcommands for managing the full training job lifecycle.
Universal options
The following options are available for alltruss train commands:
--help: Show help message and exit.--non-interactive: Disable interactive prompts (for CI/automated environments).--remote TEXT: Name of the remote in.trussrc.
init
Initialize a training project from templates or create an empty project.Options
Template name or comma-separated list of templates to initialize. See the ML Cookbook for available examples.
Directory to initialize the project in. Defaults to current directory.
--list-examples
List all available example templates.
Examples
Initialize a project from a template:push
Submit and run a training job.Arguments
Path to the training configuration file (e.g.,
config.py).Options
--tail
Stream status and logs after submitting the job.
Name for the training job.
Team name for the training project. If not specified, Truss infers the team or prompts for selection.
The
--team flag is only available if your organization has teams enabled. Contact us to enable teams, or see Teams for more information.Examples
Submit a training job:logs
Fetch and stream logs from a training job.Options
Job ID to fetch logs from.
Project name or project ID.
Project ID.
--tail
Continuously stream new logs.
Examples
Stream logs for a specific job:metrics
View real-time metrics for a training job including CPU, GPU, and storage usage.Options
Job ID to fetch metrics from.
Project name or project ID.
Project ID.
Examples
View metrics for a specific job:view
List training projects and jobs, or view details for a specific job.Options
View details for a specific training job.
View jobs for a specific project (name or ID).
View jobs for a specific project ID.
Examples
List all training projects:stop
Stop a running training job.Options
Job ID to stop.
Project name or project ID.
Project ID.
--all
Stop all running jobs. Prompts for confirmation.
Examples
Stop a specific job:recreate
Recreate an existing training job with the same configuration.Options
Job ID of the training job to recreate. If not provided, defaults to the last created job.
--tail
Stream status and logs after recreating the job.
Examples
Recreate a specific job:download
Download training job artifacts to your local machine.Options
Job ID to download artifacts from.
Directory to download files to. Defaults to current directory.
--no-unzip
Keep the compressed archive without extracting.
Examples
Download artifacts to current directory:deploy_checkpoints
Deploy a trained model checkpoint to Baseten’s inference platform.Options
Job ID containing the checkpoints to deploy.
Project name or project ID.
Project ID.
Path to a Python file defining a
DeployCheckpointsConfig.--dry-run
Generate a Truss config without deploying. Useful for previewing the deployment configuration.
Path to output the generated Truss config. Defaults to
truss_configs/<model_version_name>_<model_version_id>.Examples
Deploy checkpoints interactively:get_checkpoint_urls
Get presigned URLs for checkpoint artifacts.Options
Job ID containing the checkpoints.
Examples
Get checkpoint URLs for a job:cache summarize
View a summary of the training cache for a project.Arguments
Project name or project ID.
Options
Sort files by column. Options:
filepath, size, modified, type, permissions.Sort order:
asc (ascending) or desc (descending).Output format:
cli-table (default), csv, or json.Examples
View cache summary:Ignore files and folders
Create a.truss_ignore file in your project root to exclude files from upload. Uses .gitignore syntax.
.truss_ignore