Skip to main content
List a job’s checkpoints to confirm they’ve synced or to find the one to load or deploy. Download their files to evaluate them locally, or to keep a copy before the job is deleted or the checkpoints expire.

List checkpoints

A checkpoint request needs the project ID as well as the job ID. To print both, run the following command:
The ID: line is the job ID, and the Project: line ends with the project ID.
To list a job’s checkpoints:Run the following command, replacing <job_id> with your training job’s ID:
The command lists each checkpoint’s name, type, base model, size, and sync status, newest first:
A checkpoint whose SYNC column reads COMPLETE has finished syncing to Baseten storage, so you can load, deploy, or download it. The . row is the root of $BT_CHECKPOINT_DIR, which holds every file the job wrote there.

Download checkpoint files

Each file comes with a presigned download URL that expires 7 days after you generate it. Use the URLs for evaluation and testing. To serve a checkpoint, deploy it instead.
To download a job’s checkpoint files:These steps use jq to build a directory for each file, so install it first if it isn’t on your PATH.
  1. Save the presigned URLs for every file in the job’s checkpoints, replacing <job_id> with your training job’s ID:
    The file holds one record per file. node_rank is the node that wrote the file, and relative_file_name is its path in $BT_CHECKPOINT_DIR:
  2. Download each file into ./checkpoints, under a directory for the node that wrote it:
  3. Confirm the download:
    For the record above, the command prints checkpoints/rank-0/checkpoint-50/adapter_model.safetensors.
Without --output json, the command prints a table with the columns NODE, NAME, SIZE, MODIFIED, and URL.

Next steps