-
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
Deprecate progress_bar_refresh_rate
from Trainer constructor
#9616
Conversation
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.
One of the roles that progress bar refresh rate is serving is to disable the progress bar by setting the rate to 0.
With this flag deprecated, we still need a way for users to disable this setting.
The pattern for features that are by default enabled has been to have a boolean flag for this. For example enable_progress_bar: bool = True
on the trainer constructor makes this easy to toggle on/off.
This would match what we've done for checkpointing and what we will do for the model summary.
@awaelchli what do you think?
In what cases would a user want to disable progress bar? Also, what do you think about #9500 (comment) |
|
I would be fine with this option, but to be consistent, let's call it |
sounds good I will add a boolean flag to enable the progress_bar. @tchaton I am not a big fan of calling it |
I agree. Ideally, we would have |
…ning into refresh_rate
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.
I am not much a fan of this deprecation I feel this shall stay in Trainer...
Progressbar is a basic feature, this pushed all users to learn and define special progress bar callback just for trivial adjustment... 🤒
cc: @PyTorchLightning/core-contributors
temp block for a day till I hear some more thoughts 🐰
what would be the logic then, how many progressBar callbacks you would have to define, assuming you have a bar per step in validation, training? |
@Borda please see my comment here for a summary of why I think this makes sense: #9500 (comment)
whether trivial or not, I think all adjustments should go in callbacks, otherwise the Trainer constructor gets cluttered with lots of different "trivial adjustments" |
Not sure what you mean by multiple progress bar callbacks... I believe we only allow one. Once this deprecation is complete and we have |
Great work @daniellepintz! |
What does this PR do?
Fixes #9500
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃