-
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
[Feature Request] EarlyStopping logging on rank 0 only #13162
Comments
I think we can add this flag. It's useful for metrics logged with The relevant piece of code is here: |
Thanks! |
Hi @carmocca! I would like to take this up. |
Hi @carmocca - I have a doubt regarding this:
The metrics for callbacks are stored during epoch end: and so will our new flag be dependent on the value of Also, if the epoch level metrics will always be reduced across processes, then won't the logs be the same for all the ranks (as seen in the logs shared by @austinmw) ? |
@ekagra-ranjan For an initial implementation, I suggest you don't try to decide this automatically. Just allow the user to choose manually by passing |
🚀 Feature
Toggle switch to turn off EarlyStopping logging for processes other than rank 0
Motivation
EarlyStopping logging can be a bit spammy when viewing aggregate logs across all processes. For example, with my custom CloudWatch logger:
Pitch
It would be nice if we could turn off printing of this message on processes other than rank 0. I understand that this is actually useful to monitor in some cases, so maybe this toggle could be set to False by default.
Alternatives
Custom EarlyStopping callback?
cc @Borda @carmocca @awaelchli @rohitgr7
The text was updated successfully, but these errors were encountered: