wandb.init()to the beginning of your training script as well as your evaluation script, and each piece would be tracked as a run in W&B.
wandb.init()spawns a new background process to log data to a run, and it also syncs data to wandb.ai by default so you can see live visualizations.
wandb.init()to start a run before logging data with
wandb.init()returns a run object, and you can also access the run object via
wandb.finishto finalize and cleanup the run. However, if you call
wandb.initfrom a child process, you must explicitly call
wandb.finishat the end of the child process.
wandb.config, a dictionary-like object for saving inputs to your job, like hyperparameters for a model or settings for a data preprocessing job. The config will show up in a table in the UI that you can use to group, filter, and sort runs. Keys should not contain
.in their names, and values should be under 10 MB. If dict, argparse or absl.flags: will load the key value pairs into the
wandb.configobject. If str: will look for a yaml file by that name, and load config from that file into the
-mcommit message in git. This helps you remember what you were doing when you ran this run.
download()on an artifact, this is the directory where downloaded files will be saved. By default this is the
None. Defaults to
None. Cases: -
None(default): If the new run has the same ID as a previous run, this run overwrites that data. -
True): if the preivous run on this machine crashed, automatically resume it. Otherwise, start a new run. -
"allow": if id is set with
WANDB_RUN_ID="UNIQUE_ID"and it is identical to a previous run, wandb will automatically resume the run with that id. Otherwise, wandb will start a new run. -
"never": if id is set with
WANDB_RUN_ID="UNIQUE_ID"and it is identical to a previous run, wandb will crash. -
"must": if id is set with
WANDB_RUN_ID="UNIQUE_ID"and it is identical to a previous run, wandb will automatically resume the run with the id. Otherwise wandb will crash. See our guide to resuming runs for more.
wandb.init()calls in the same process. (default:
False) You can also pass a dict, json string, or yaml filename.
"never"(default): requires you to link your W&B account before tracking the run so you don't accidentally create an anonymous run. -
"allow": lets a logged-in user track runs with their account, but lets someone who is running the script without a W&B account see the charts in the UI. -
"must": sends the run to an anonymous account instead of to a signed-up user account.
"disabled". Defaults to online.
True, this crashes the script if a user isn't logged in to W&B. If
False, this will let the script run in offline mode if a user isn't logged in to W&B. (default:
configkeyword argument to add metadata, like hyperparameters, to your run.