List checkpoints
A checkpoint request needs the project ID as well as the job ID. To print both, run the following command:ID: line is the job ID, and the Project: line ends with the project ID.
- Baseten CLI
- Training API
To list a job’s checkpoints:Run the following command, replacing The command lists each checkpoint’s name, type, base model, size, and sync status, newest first:A checkpoint whose
<job_id> with your training job’s ID: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.- Baseten CLI
- Training API
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.-
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_rankis the node that wrote the file, andrelative_file_nameis its path in$BT_CHECKPOINT_DIR: -
Download each file into
./checkpoints, under a directory for the node that wrote it: -
Confirm the download:
For the record above, the command prints
checkpoints/rank-0/checkpoint-50/adapter_model.safetensors.
--output json, the command prints a table with the columns NODE, NAME, SIZE, MODIFIED, and URL.Next steps
- Load a checkpoint into a new job: Continue training from a synced checkpoint.
- Deploy a checkpoint: Serve a checkpoint as a model.
- Set a checkpoint expiry: Have Baseten delete checkpoints you no longer need.