Skip to main content
Finish previous runs before starting new runs to log multiple runs within a single script. The recommended way to do this is by using wandb.init() as a context manager because this finishes the run and marks it as failed if your script raises an exception:
You can also call run.finish() explicitly:

Multiple active runs

Starting with wandb 0.19.10, you can set the reinit setting to "create_new" to create multiple simultaneously active runs.
See Multiple runs per process for more information about reinit="create_new", including caveats about W&B integrations.
Experiments