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 filepath
Usage
Arguments
path
| Name | Default | Type |
|---|---|---|
path | None | File Path |
Options
view
View runs.
| Flag | Default | Type |
|---|---|---|
--view | False | BOOL |
verbose
Enable verbose output.
| Flag | Default | Type |
|---|---|---|
--verbose | False | BOOL |
run_id
Upload to an existing run ID.
| Flag | Default | Type |
|---|---|---|
--id | None | STRING |
project
Set the project to upload the run to.
| Flag | Default | Type |
|---|---|---|
-p, --project | None | STRING |
entity
Set the entity to scope the project to.
| Flag | Default | Type |
|---|---|---|
-e, --entity | None | STRING |
job_type
Set the job type to group related runs.
| Flag | Default | Type |
|---|---|---|
--job_type | None | STRING |
sync_tensorboard
Sync TensorBoard tfevent files. On by default for specific paths, off for —sync-all.
| Flag | Default | Type |
|---|---|---|
--sync-tensorboard | None | BOOL |
include_globs
Include only runs matching these glob patterns (comma-separated).
| Flag | Default | Type |
|---|---|---|
--include-globs | None | STRING |
exclude_globs
Exclude runs matching these glob patterns (comma-separated).
| Flag | Default | Type |
|---|---|---|
--exclude-globs | None | STRING |
include_online
Include runs created in online mode.
| Flag | Default | Type |
|---|---|---|
--include-online | None | BOOL |
include_offline
Include runs created in offline mode.
| Flag | Default | Type |
|---|---|---|
--include-offline | None | BOOL |
include_synced
Include runs that are already synced.
| Flag | Default | Type |
|---|---|---|
--include-synced | None | BOOL |
mark_synced
Mark runs as synced after upload.
| Flag | Default | Type |
|---|---|---|
--mark-synced | True | BOOL |
sync_all
Sync all unsynced runs in the local wandb directory.
| Flag | Default | Type |
|---|---|---|
--sync-all | False | BOOL |
clean
Delete local data for runs that are already synced.
| Flag | Default | Type |
|---|---|---|
--clean | False | BOOL |
clean_old_hours
Delete only synced runs older than this many hours (use with —clean).
| Flag | Default | Type |
|---|---|---|
--clean-old-hours | 24 | INT |
clean_force
Skip the confirmation prompt if —clean is specified.
| Flag | Default | Type |
|---|---|---|
--clean-force | False | BOOL |
ignore
No description available.
| Flag | Default | Type |
|---|---|---|
--ignore | None | STRING |
show
Set the number of runs to show in the summary.
| Flag | Default | Type |
|---|---|---|
--show | 5 | INT |
append
Append data to an existing run instead of creating a new run.
| Flag | Default | Type |
|---|---|---|
--append | False | BOOL |
skip_console
Skip uploading console logs.
| Flag | Default | Type |
|---|---|---|
--skip-console | False | BOOL |
replace_tags
Rename tags during sync. Use ‘old=new’ pairs separated by commas.
| Flag | Default | Type |
|---|---|---|
--replace-tags | None | STRING |
help
Show this message and exit.
| Flag | Default | Type |
|---|---|---|
--help | False | BOOL |
CLI Help
bash wandb sync --sync-all
Sync a run to a specific project and entity
wandb sync --project project --entity entity