> ## 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.

# Stop or recreate a training job

> Stop a running or pending training job, or run an existing job's configuration again as a new job, with the Baseten CLI or the Training API.

Stop a job to end it and release its GPUs. To run the same configuration again later, recreate the job: Baseten creates a new job from the original's configuration, and the original stays as it is.

## Stop a job

> [!WARNING]
>
> Stopping a job can't be undone. Checkpoints the job already synced stay available, and you can [recreate the job](#recreate-a-job) to run its configuration again.

> [tab] Baseten CLI
>
> **To stop a job**:
>
> 1. Run the following command, replacing `<job_id>` with the job ID, and confirm when prompted:
>
>    ```bash theme={"system"}
>    baseten train job stop --job-id <job_id>
>    ```
>
>    The command prints `Stopped training job <job_id>. Synced checkpoints remain accessible.` To skip the prompt in scripts, add `--yes`; when stdin isn't a terminal, the command requires it.
>
> 2. Confirm that the job stopped:
>
>    ```bash theme={"system"}
>    baseten train job describe --job-id <job_id> --jq '.training_job.current_status'
>    ```
>
>    The command prints `"TRAINING_JOB_STOPPED"`.

> [tab] Training API
>
> **To stop a job**:
>
> 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 [Stop a training job](https://docs.baseten.co/reference/training-api/stop-training-job.md), replacing `<project_id>` and `<job_id>` with the project and job IDs:
>
> ```bash theme={"system"}
> curl --request POST \
>   --url "https://api.baseten.co/v1/training_projects/<project_id>/jobs/<job_id>/stop" \
>   --header "Authorization: Bearer $BASETEN_API_KEY"
> ```
>
> The response's `training_job.current_status` is `TRAINING_JOB_STOPPED`.

## Recreate a job

The new job starts from the beginning and gets a new ID.

> [tab] Baseten CLI
>
> **To recreate a job**:
>
> 1. Run the following command, replacing `<job_id>` with the original job's ID:
>
>    ```bash theme={"system"}
>    baseten train job recreate --job-id <job_id>
>    ```
>
>    The command prints `Created training job <new_job_id> from <job_id>.`
>
> 2. To confirm the new job exists, describe it, replacing `<new_job_id>` with the ID the command printed:
>
>    ```bash theme={"system"}
>    baseten train job describe --job-id <new_job_id>
>    ```
>
>    The `ID:` line is the new job's ID.

> [tab] Training API
>
> **To recreate a job**:
>
> Send a request to [Recreate a training job](https://docs.baseten.co/reference/training-api/recreate-training-job.md), replacing `<project_id>` and `<job_id>` with the original job's project and job IDs:
>
> ```bash theme={"system"}
> curl --request POST \
>   --url "https://api.baseten.co/v1/training_projects/<project_id>/jobs/<job_id>/recreate" \
>   --header "Authorization: Bearer $BASETEN_API_KEY"
> ```
>
> The response's `training_job.id` is the new job's ID.

To continue training from where a job stopped instead of from the beginning, start a new job that [loads its latest checkpoint](https://docs.baseten.co/training/loading.md).

## Next steps

* [Monitor training jobs](https://docs.baseten.co/training/management.md): Follow the new job's status and logs.
* [Delete a job or project](https://docs.baseten.co/training/delete-jobs.md): Remove the stopped job and its undeployed checkpoints.
