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

added extra check in __del__ #1322

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Conversation

felipemello1
Copy link
Contributor

Context

What is the purpose of this PR? Is it to

  • add a new feature
  • fix a bug
  • update tests and/or documentation
  • other (please add here)

see #1298 for context

Changelog

just add extra check

Test plan

Copy link

pytorch-bot bot commented Aug 13, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1322

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit dc522b3 with merge base 0531dcb (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 13, 2024
@SalmanMohammadi
Copy link
Collaborator

Going to be annoying - can you confirm correct error is raised when wandb isn't installed, please?
Or add a unit test? : )

@joecummings
Copy link
Contributor

Going to be annoying - can you confirm correct error is raised when wandb isn't installed, please? Or add a unit test? : )

One of us!!!!

@SalmanMohammadi
Copy link
Collaborator

image

@felipemello1
Copy link
Contributor Author

(╯°□°)╯︵ ┻━┻

@felipemello1
Copy link
Contributor Author

@joecummings @SalmanMohammadi good call :P fixed it

image

@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.56%. Comparing base (6be89c0) to head (dc522b3).
Report is 3 commits behind head on main.

Files Patch % Lines
torchtune/utils/metric_logging.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1322      +/-   ##
==========================================
- Coverage   68.57%   68.56%   -0.01%     
==========================================
  Files         258      258              
  Lines       11972    11975       +3     
==========================================
+ Hits         8210     8211       +1     
- Misses       3762     3764       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@joecummings joecummings left a comment

Choose a reason for hiding this comment

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

STAMP

@felipemello1 felipemello1 merged commit 3bc2ff3 into pytorch:main Aug 13, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants