-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 comparing max_steps to global step which inits at 0 #4278
Conversation
…efore exiting loop in conjuction with max steps
Codecov Report
@@ Coverage Diff @@
## master #4278 +/- ##
======================================
Coverage 93% 93%
======================================
Files 111 111
Lines 8040 8003 -37
======================================
+ Hits 7440 7441 +1
+ Misses 600 562 -38 |
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.
Great PR ! Nice cleaned up.
|
||
# progress global step according to grads progress | ||
if num_accumulated_batches_reached or num_training_batches_reached: | ||
self.trainer.global_step += 1 | ||
|
||
def accumulated_batches_reached(self): |
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.
can we have it rather as protected as it is not meant to be used by the user...
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.
Will make a followup PR
What does this PR do?
Fixes #4193
Just going to make a test before calling this ready for review.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃