Skip to main content
Initialize or update W&B configuration for the current directory. Set a project and entity, create local W&B settings, and prepare the directory for experiment tracking. For example, set up W&B for the current directory with guided prompts for team and project selection:
$ wandb init
To set the default project to “foobar” and the default entity to “team-awesome” without prompts:
$ wandb init --project foobar --entity team-awesome
To set the W&B mode to offline:
$ wandb init --mode offline
To reset existing W&B configuration for the current directory:
$ wandb init --reset

Usage

wandb init [OPTIONS]

Options

OptionDescription
--project, -pSet the project to upload runs to.
--entity, -eSet the entity to scope the project to.
--resetReset existing W&B configuration for the directory. (default: False)
--mode, -mSet the W&B mode. One of ‘online’, ‘offline’, or ‘disabled’.