Skip to main content
GitHub source

Usage

wandb sync [OPTIONS] [PATH]...

Description

Upload existing local W&B run data to the cloud. Sync offline or incomplete runs from the local wandb directory to the W&B server. If PATH is provided, sync runs at that path. If no path is given, search for a ./wandb directory, then a wandb/ subdirectory. Run without arguments to print a summary of synced and unsynced runs without uploading anything. When syncing a specific path, include TensorBoard event files by default. When using --sync-all, disable TensorBoard by default (use --sync-tensorboard to enable it). PATH is a .wandb file or a run directory that contains a .wandb file. A typical path looks like ./wandb/run-YYYYMMDD_HHMMSS-RUN_ID/run-RUN_ID.wandb, where run-YYYYMMDD_HHMMSS-RUN_ID is the run directory and run-RUN_ID.wandb is the .wandb file. YYYYMMDD_HHMMSS is the timestamp of when the run was created and RUN_ID is the unique ID of the run.

Examples

Show a summary of local runs and their sync status
wandb sync
Sync a run that is locally saved at ./wandb/run-20170617_000000-abcd1234
wandb sync ./wandb/run-20170617_000000-abcd1234
Sync a specific run by its .wandb filepath
wandb sync ./wandb/run-20170617_000000-abcd1234/run-abcd1234.wandb
Sync all unsynced runs in the local wandb directory
wandb sync --sync-all
Sync a run in the “foobar-project” project and “team-awesome” entity by its .wandb filepath
wandb sync --project foobar-project --entity team-awesome ./wandb/run-20170617_000000-abcd1234/run-abcd1234.wandb
Delete local data for runs that have already been synced
wandb sync --clean
Delete synced runs older than 48 hours without a confirmation prompt
wandb sync --clean --clean-old-hours 48 --clean-force

Arguments

NameDefaultType
pathNonePATH

Options

FlagTypeDescription
--viewBOOL FlagView runs. Default: False
--verboseBOOL FlagEnable verbose output. Default: False
--idSTRUpload to an existing run ID. Default: None
--project, -pSTRSet the project to upload the run to. Default: None
--entity, -eSTRSet the entity to scope the project to. Default: None
--job_typeSTRSet the job type to group related runs. Default: None
--sync-tensorboard / --no-sync-tensorboardBOOL FlagSync TensorBoard tfevent files. On by default for specific paths, off for —sync-all. Default: None
--include-globsSTRInclude only runs matching these glob patterns (comma-separated). Default: None
--exclude-globsSTRExclude runs matching these glob patterns (comma-separated). Default: None
--include-online / --no-include-onlineBOOL FlagInclude runs created in online mode. Default: None
--include-offline / --no-include-offlineBOOL FlagInclude runs created in offline mode. Default: None
--include-synced / --no-include-syncedBOOL FlagInclude runs that are already synced. Default: None
--mark-synced / --no-mark-syncedBOOL FlagMark runs as synced after upload. Default: True
--sync-allBOOL FlagSync all unsynced runs in the local wandb directory. Default: False
--cleanBOOL FlagDelete local data for runs that are already synced. Default: False
--clean-old-hoursINTDelete only synced runs older than this many hours (use with —clean). Default: 24
--clean-forceBOOL FlagSkip the confirmation prompt if —clean is specified. Default: False
--ignoreSTRNo description available. Default: None
--showINTSet the number of runs to show in the summary. Default: 5
--appendBOOL FlagAppend data to an existing run instead of creating a new run. Default: False
--skip-consoleBOOL FlagSkip uploading console logs. Default: False
--replace-tagsSTRRename tags during sync. Use ‘old=new’ pairs separated by commas. Default: None