-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Add rounding error check to _maybe_log_save_evaluate #38714
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
base: main
Are you sure you want to change the base?
Conversation
853ad11
to
f36e160
Compare
Hi @marcndo, there are a lot of unrelated changes in this PR! Can you make sure you rebase to the latest commit and try to limit the changes to just the relevant loss rounding lines? |
Sure, I'll proceed with this right away |
1abfebe
to
77acabd
Compare
Looks okay to me now! cc @SunMarc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice. Can you try to check if tools like wandb can interpret this as expected ?
Certainly, I will proceed with this. |
fa137ff
to
b8f7430
Compare
I mean can the values be correctly displayed on the wandb table/website ? Also seems like there are some issues with changing it to an str. Another simple idea would be to just round it to 10 like logs["loss"] = round(log_eval, 10 when x < 1e-4, that should be enough precision |
I'm not sure how to verify if the values are correctly displayed on the wandb table/website. Could you provide any guidance on how to confirm this, please? |
b8f7430
to
94e2207
Compare
Just use trainer with wandb installed, it will report the results to their website |
Hi @SunMarc, please let me know if any modification is needed on this PR. |
Hi @SunMarc, just wanted to kindly follow up on the PR to see if everything looks good now or if any further changes are needed. Thanks! |
What does this PR do?
This PR aims to address the issue raised in #38032 by deciding the format in which the loss should be logged
Fixes # (issue)
#38032
Before submitting
Pull Request section? Yes
to it if that's the case. Removing the modification of loss value due to rounding off to 4 digits #38032 (comment)
documentation guidelines, and
here are tips on formatting docstrings. Yes
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.