Skip to main content
GitHub source Save data logged to W&B locally without uploading it to the cloud. Use wandb online or wandb sync to upload offline runs. Examples: Run a script in offline mode to log data locally without syncing to the cloud
wandb offline
python train.py  # Logs data locally, does not sync to W&B cloud
Run a script in offline mode, then sync the run to the cloud when ready
wandb offline
python train.py
wandb sync --sync-all  # Sync all offline runs to the cloud

Usage

wandb offline [OPTIONS]

Options

help

Show this message and exit.
FlagDefaultType
--helpFalseBOOL

CLI Help

Usage: offline [OPTIONS]

  Save data logged to W&B locally without uploading it to the cloud.

  Use `wandb online` or `wandb sync` to upload offline runs.

  Examples:

  Run a script in offline mode to log data locally without syncing to the
  cloud

  ```bash wandb offline python train.py  # Logs data locally, does not sync to
  W&B cloud ```

  Run a script in offline mode, then sync the run to the cloud when ready

  ```bash wandb offline python train.py wandb sync --sync-all  # Sync all
  offline runs to the cloud ```

Options:
  --help  Show this message and exit.