Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Currently,
axolotl
only allows users to setwandb_run_id
, which serves as both the run ID and run name. However, if a user runs the same script multiple times (e.g., with different random seeds), the new run will overwrite the old one on WandB since thewandb_run_id
is the same and WandB only allows uniquerun_id
. Another case occurs when a user deletes a previous run on WandB and launches a new run with the samewandb_run_id
; WandB will throw errors and prevent the script from running successfully (see wandb/wandb#1192).Solution
To resolve these issues, I have added a new option,
wandb_run_name
, which sets only the run name. WandB allows multiple runs with the same run names, so the aforementioned issues are resolved. Whenwandb_run_name
is set andwandb_run_id
is not, WandB will create a random unique new ID for the new run.Backward Compatibility
For backward compatibility, that is, when
wandb_run_id
is set andwandb_run_name
is not, the run name will still be the same aswandb_run_id
.