Usage
Description
Restore the code, config, and Docker state from a previous run. Recreate the environment of a previous W&B run so you can reproduce it. Run this command from the same git repository as the original run, unless you pass the--no-git flag.
Restore in three steps:
- Git — Check out the original commit on a new branch (
wandb/run_id), fetch and apply any saved diff patch, and fall back to an upstream commit if the original commit cannot be found. - Config — Write the run config to
wandb/config.yaml. - Docker — If the run used Docker, start the same image with the original command.
run_idproject:run_identity/project:run_identity/project/run_id
Examples
Restore a run with run ID “abcd1234” in the default project and entityArguments
| Name | Default | Type |
|---|---|---|
run | None | STR |
Options
| Flag | Type | Description |
|---|---|---|
--no-git | BOOL Flag | Skip git restoration. Only restore config and Docker state. Default: False |
--branch / --no-branch | BOOL Flag | Create a wandb/run_id branch or check out the commit in detached HEAD mode. Default: True |
--project, -p | STR | Specify the project to look up the run in. Default: None |
--entity, -e | STR | Specify the entity to scope the run lookup to. Default: None |