Usage
Description
Restore the code, config, or Docker environement from a previous W&B run. Recreate the environment of a previous run so you can reproduce it. Requires authentication with W&B. Restore up to three pieces of state, depending on what the original run recorded:- Config (always): Write the run config to wandb/config.yaml.
-
Git (if available): Check out the original commit on a new
wandb/run_id branch. Fetch and apply any saved diff patch.
If the original commit cannot be found,
fall back to an upstream commit if the original cannot be found.
Run this command from the same git repository as the original run. Skip
this step with
--no-git. - Docker (if available): If the run was executed inside a Docker container, start the same image with the original command.
Arguments
| Name | Default | Type |
|---|---|---|
run | STR | True |
Options
| Flag | Type | Description |
|---|---|---|
--no-git | BOOL Flag | Skip git restoration. Only restore config and Docker state. Default: False |
--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 |