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

hasattr check for Wandb 0.17.6 #3531

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

mvpatel2000
Copy link
Contributor

@mvpatel2000 mvpatel2000 commented Aug 8, 2024

What does this PR do?

Wandb 0.17.6 changed disabled mode in this PR: wandb/wandb#8037, which breaks wandb logger when running with disabled mode as certain attributes (entity, project) are not set. This wraps these attributes in a check to see if they exist.

This should not break any internal workflows as we have churned from WandB completely in favor of MLFlow, but it may affect open source users so we should prioritize including in patch release.

@mvpatel2000 mvpatel2000 requested review from a team as code owners August 8, 2024 17:33
Copy link
Contributor

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

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

would it be safer to just make the setting of self._enabled conditional on what mode wandb is in?

@mvpatel2000 mvpatel2000 requested review from bigning, dakinggg and a team August 8, 2024 17:37
@mvpatel2000
Copy link
Contributor Author

would it be safer to just make the setting of self._enabled conditional on what mode wandb is in?

While possible, I would prefer to rely on wandb's handling of disabled as it's less code surface for us to own and maintain. This is especially true since we now don't use wandb so it's harder to test things like mocking disabled.

If more things break, we can do that, but for now, I'd prefer to leave as is and consider this code as frozen as possible

@mvpatel2000 mvpatel2000 merged commit 4a9756f into mosaicml:dev Aug 8, 2024
14 checks passed
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/wandb-fix branch August 8, 2024 18:23
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.

3 participants