Use a context manager
Usewandb.init() as a context manager. This pattern finishes the run and
marks it as failed if your script raises an exception:
Call run.finish explicitly
You can also callrun.finish() explicitly:
Multiple active runs
Inwandb 0.19.10 and later, if you need more than one run active at the same
time rather than running them sequentially, set the reinit setting to
"create_new" to create multiple simultaneously active runs.
reinit="create_new", including caveats about W&B
integrations, see Multiple runs per process.
Experiments