W&B uses a Sweep Controller to manage sweeps on the cloud (standard), locally (local) across one or more machines. After a run completes, the sweep controller will issue a new set of instructions describing a new run to execute. These instructions are picked up by agents who actually perform the runs. In a typical W&B Sweep, the controller lives on the W&B server. Agents live on your machines. The following code snippets demonstrate how to initialize sweeps with the CLI and within a Jupyter Notebook or Python script.Documentation Index
Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
Use this file to discover all available pages before exploring further.
- Python script or notebook
- CLI
Use the W&B SDK to initialize a sweep. Pass the sweep configuration dictionary to the The
sweep parameter. Optionally provide the name of the project for the project parameter (project) where you want the output of the W&B Run to be stored. If the project is not specified, the run is put in an “Uncategorized” project.wandb.sweep() function returns the sweep ID. The sweep ID includes the entity name and the project name. Make a note of the sweep ID.