nemo_automodel.components.loggers.wandb_utils
nemo_automodel.components.loggers.wandb_utils
Module Contents
Functions
API
Initialize a W&B run from a config dict.
A recipe-agnostic counterpart to recipe-local build_wandb helpers: it
takes the already-resolved wandb kwargs (project, entity, name, …) and
the full run config to record, and falls back to default_name when no
run name is given.
Parameters:
wandb_cfg
Keyword args forwarded to wandb.init (e.g. project, entity, name).
full_config
The full resolved config to store as the run’s config.
default_name
Run name to use when wandb_cfg does not set one.
Returns:
The initialized wandb.Run.
Patches wandb logger to suppress upload messages.
These occur usually on KeyboardInterrupt or program crash.
To print the log url: run = wandb.init(…) print(run.url)