Skip to main content
Global functions in W&B are top-level functions that you call directly, such as wandb.init() or wandb.login(). Unlike methods that belong to specific classes, these functions provide direct access to W&B’s core functionality without needing to instantiate objects first.

Available functions

Example

The most common workflow begins with authenticating with W&B, initializing a run, and logging values (such as accuracy and loss) from your training loop. The first steps are to import wandb and use the global functions login() and init():