Pause a sweep
Use thewandb sweep --pause command to pause a sweep, so it temporarily stops creating new runs. Runs that are already executing continue to run until completion. Provide the sweep ID.
Resume a sweep
Resume a paused sweep with thewandb sweep --resume command, so it starts creating new runs again according to its search strategy. Provide the sweep ID.
Stop a sweep
Use thewandb sweep --stop command to stop a sweep. A stopped sweep does not create new runs. Runs that are already executing continue to run until completion. Provide the sweep ID.
Cancel a sweep
Use thewandb sweep --cancel command to cancel a sweep, forcibly terminating all active runs and preventing creation of new runs. Runs terminate abruptly, giving the running processes no chance to run user-defined signal handlers. Provide the sweep ID.
Sweep and run statuses
A sweep orchestrates multiple runs to explore hyperparameter combinations. The following sections describe how sweep status and run status interact, so you can manage your hyperparameter optimizations effectively, including how the two statuses differ, what happens when you stop an individual run, and which lifecycle command to choose.Key differences
- Sweep status controls whether the agent creates new runs. Sweep status can be
Running,Paused,Stopped,Cancelled,Finished,Failed, orCrashed. - Run status reflects the execution state of individual runs. Run status can be
Pending,Running,Finished,Failed,Crashed, orKilled.
Stop an individual run
When you stop a run in a sweep, the sweep agent automatically starts the next run in the sweep. Use this mechanism to skip poorly performing configurations without interrupting the sweep’s overall progress.Recommendations
The following recommendations help you choose the right lifecycle command for the situation, so you avoid losing useful work or holding onto unwanted compute.- Use
--pauseinstead of cancel to temporarily halt exploration without losing running experiments. - Monitor individual run statuses to identify systematic failures.
- Use
--stopfor graceful termination when you’ve found satisfactory hyperparameters. - Reserve
--cancelfor emergencies when runs consume excessive resources or produce errors.