- The
WandbLoggerCallbackfunction automatically logs metrics reported to Tune to the Wandb API. - The
setup_wandb()function, which can be used with the function API, automatically initializes the Wandb API with Tune’s training information. You can use the Wandb API as usual. such as by usingrun.log()to log your training process.
Configure the integration
tune.run() (see example below).
The content of the wandb config entry is passed to wandb.init() as keyword arguments. The exception are the following settings, which are used to configure the WandbLoggerCallback itself:
Parameters
project (str): Name of the Wandb project. Mandatory.
api_key_file (str): Path to file containing the Wandb API KEY.
api_key (str): Wandb API Key. Alternative to setting api_key_file.
excludes (list): List of metrics to exclude from the log.
log_config (bool): Whether to log the config parameter of the results dictionary. Defaults to False.
upload_checkpoints (bool): If True, model checkpoints are uploaded as artifacts. Defaults to False.
Example
setup_wandb
setup_wandb() in your training function: