Skip to main content

Can I run wandb offline?

If training occurs on an offline machine, use the following steps to upload results to the servers: 1. Set the environme …

Do environment variables overwrite the parameters passed to wandb.init()?

Arguments passed to wandb.init override environment variables. To set a default directory other than the system default …

How can I define the local location for `wandb` files?

WANDB_DIR= or wandb.init(dir= ): Controls the location of the wandb folder created for your training script. Defaults to …

How do I handle the 'Failed to query for notebook' error?

If you encounter the error message “Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_N …

How do I silence W&B info messages?

To suppress log messages in your notebook such as this: Set the log level to logging.ERROR to only show errors, suppress …

How do I stop wandb from writing to my terminal or my Jupyter notebook output?

Set the environment variable WANDB_SILENT to true.

How do I switch between accounts on the same machine?

To manage two W&B accounts from the same machine, store both API keys in a file. Use the following code in your reposito …

How does wandb stream logs and writes to disk?

W&B queues events in memory and writes them to disk asynchronously to manage failures and support the WANDB_MODE=offline …

Is it possible to save metrics offline and sync them to W&B later?

By default, wandb.init starts a process that syncs metrics in real time to the cloud. For offline use, set two environme …

What does wandb.init do to my training process?

When wandb.init() runs in a training script, an API call creates a run object on the servers. A new process starts to st …

What happens if internet connection is lost while I'm training a model?

If the library cannot connect to the internet, it enters a retry loop and continues to attempt to stream metrics until t …

Where are artifacts downloaded, and how can I control that?

By default, artifacts download to the artifacts/ folder. To change the location: Pass it to wandb.Artifact().download: S …