Is it possible to save metrics offline and sync them to W&B later?
less than a minute
By default, wandb.init
starts a process that syncs metrics in real time to the cloud. For offline use, set two environment variables to enable offline mode and sync later.
Set the following environment variables:
WANDB_API_KEY=$KEY
, where$KEY
is the API Key from your settings page.WANDB_MODE="offline"
.
Here is an example of implementing this in a script:
Sample terminal output is shown below:

After completing work, run the following command to sync data to the cloud:

Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.