> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List and download checkpoints

> List a training job's checkpoints and download their files with the Baseten CLI or the Training API.

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:

```bash theme={"system"}
baseten train job describe --job-id <job_id>
```

The `ID:` line is the job ID, and the `Project:` line ends with the project ID.

> [tab] Baseten CLI
>
> **To list a job's checkpoints**:
>
> Run the following command, replacing `<job_id>` with your training job's ID:
>
> ```sh theme={"system"}
> baseten train checkpoint list --job-id <job_id>
> ```
>
> The command lists each checkpoint's name, type, base model, size, and sync status, newest first:
>
> ```output theme={"system"}
> ID             TYPE  BASE MODEL     SIZE       SYNC      CREATED
> checkpoint-50  lora  Qwen/Qwen3-4B  200.4 MiB  COMPLETE  2026-07-02T02:14:22Z
> .              lora  Qwen/Qwen3-4B  474.8 MiB  COMPLETE  2026-07-02T02:14:22Z
> checkpoint-25  lora  Qwen/Qwen3-4B  200.4 MiB  COMPLETE  2026-07-02T02:13:14Z
> ```
>
> 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`](https://docs.baseten.co/reference/sdk/training#environment-variables), which holds every file the job wrote there.

> [tab] Training API
>
> **To list a job's checkpoints**:
>
> The `curl` examples authenticate with `BASETEN_API_KEY`. Export your [API key](https://docs.baseten.co/organization/api-keys.md) first.
>
> Send a request to [Get training job checkpoints](https://docs.baseten.co/reference/training-api/get-training-job-checkpoints.md), replacing `<project_id>` and `<job_id>` with your training project and job IDs:
>
> ```bash theme={"system"}
> curl --url "https://api.baseten.co/v1/training_projects/<project_id>/jobs/<job_id>/checkpoints" \
>   --header "Authorization: Bearer $BASETEN_API_KEY"
> ```
>
> Each checkpoint in the response has an `id`, the identifier that [Set a checkpoint expiry](https://docs.baseten.co/training/checkpoint-expiry.md) takes, and a `checkpoint_name`, such as `checkpoint-50`. Its `sync_status` is `COMPLETE` once the checkpoint has synced, and its `expires_at` is when Baseten deletes it, or `null` if it has no expiry.

## 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](https://docs.baseten.co/training/deployment.md) instead.

> [tab] Baseten CLI
>
> **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:
>
>    ```bash theme={"system"}
>    baseten train checkpoint files --job-id <job_id> --output json > checkpoint-urls.json
>    ```
>
>    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`:
>
>    ```json theme={"system"}
>    [
>      {
>        "last_modified": "2026-07-02T02:14:20+00:00",
>        "node_rank": 0,
>        "relative_file_name": "checkpoint-50/adapter_model.safetensors",
>        "size_bytes": 66126768,
>        "url": "https://<bucket>.s3.amazonaws.com/training_projects/<project_id>/jobs/<job_id>/rank-0/checkpoint-50/adapter_model.safetensors?<signature>"
>      }
>    ]
>    ```
>
> 2. Download each file into `./checkpoints`, under a directory for the node that wrote it:
>
>    ```bash theme={"system"}
>    jq -r '.[] | [.url, "rank-\(.node_rank)/\(.relative_file_name)"] | @tsv' checkpoint-urls.json |
>      while IFS=$'\t' read -r url name; do
>        mkdir -p "checkpoints/$(dirname "$name")"
>        curl -sSfL -o "checkpoints/$name" "$url"
>      done
>    ```
>
> 3. Confirm the download:
>
>    ```bash theme={"system"}
>    find checkpoints -type f
>    ```
>
>    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`.

> [tab] Training API
>
> **To get a job's checkpoint download URLs**:
>
> Send a request to [Get training job checkpoint files](https://docs.baseten.co/reference/training-api/get-training-job-checkpoint-files.md), replacing `<project_id>` and `<job_id>` with your training project and job IDs:
>
> ```bash theme={"system"}
> curl --url "https://api.baseten.co/v1/training_projects/<project_id>/jobs/<job_id>/checkpoint_files" \
>   --header "Authorization: Bearer $BASETEN_API_KEY"
> ```
>
> Each item in `presigned_urls` has the file's `url`, `relative_file_name`, and `node_rank`, and `total_count` is how many files the job has. The response is paginated: when `next_page_token` is set, send the request again with a `page_token` query parameter set to that value.

## Next steps

* [Load a checkpoint into a new job](https://docs.baseten.co/training/loading.md): Continue training from a synced checkpoint.
* [Deploy a checkpoint](https://docs.baseten.co/training/deployment.md): Serve a checkpoint as a model.
* [Set a checkpoint expiry](https://docs.baseten.co/training/checkpoint-expiry.md): Have Baseten delete checkpoints you no longer need.
