Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug where autoresume doesn't work due to wandb config already being set #81

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

favyen2
Copy link
Collaborator

@favyen2 favyen2 commented Dec 12, 2024

The keys already exist in wandb.config and so it throws error when we auto-resume and then try to update the config again.

To fix it we change so it only updates wandb.config if it hasn't been set already.

Really it should be okay to set the config as long as the value is exactly the same; there seem to be slight differences between the config that comes out of jsonargparse probably due to all of the processing of the config that we are doing in the LightningCLIs.

@favyen2 favyen2 requested a review from yawenzzzz January 9, 2025 19:57
Copy link
Collaborator

@yawenzzzz yawenzzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@favyen2 favyen2 merged commit ff39519 into master Jan 10, 2025
5 checks passed
@favyen2 favyen2 deleted the favyen/fix-autoresume-wandb branch January 10, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants