-
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
[RFC] Move logger v_num
information out of progress bar and into simple log statement
#12175
Comments
v_num
information out of progress bar and into simple log statementv_num
information out of progress bar and into simple log statement
If my guess is correct: My understanding:When multiple training tasks are launched and we want to stop one of them based on the logging information, we need to idenfity which console corresponding to a target log/tensorboard. Without an My Concern for proposed refactor:Log statements at the start of training has some limitations: If too many information printed in the console, it can be diffcult to find out something printed in the beginning of training process. When My Suggestion:However, I feel Since this This modification follows the idea that: fixed items come first, mutable values follow. |
@semaphore-egg thanks for your input! @awaelchli @carmocca do you have any thoughts? |
I agree with @semaphore-egg and his/her understanding is correct. We have the v_num for exactly this reason. I agree v_num is just a different name for "ver" or "version", so why not call it version directly? A removal in my opinion is not desired, as I have expressed in the past. I consider this a good default. @carmocca is in favor of removing it. |
But this is a problem of the tool used to launch the script (e.g.
Note that doing this or renaming it to
Yes 😁 |
Note that the OP advocates for moving it, not removing it. Did you mean that moving it off the pbar is also not desired? |
Thanks @awaelchli and @carmocca for providing your thoughts. I agree with @carmocca and still think we should move this out of the pbar.
I could be wrong, but this seems to me like not a super common case, and when this is the case the user can still easily add the logger version to the pbar. That is why it is customizable to the user's preferences. |
Proposed refactor
Remove
v_num
from the progress bar here:https://github.com/PyTorchLightning/pytorch-lightning/blob/5da065e287b44e2c1fe4f7951003813ed45365c9/pytorch_lightning/callbacks/progress/base.py#L217-L223
And add a simple Python log statement at the start of training with the version number for each logger.
Motivation
It is a bit unclear to me why we have the logger v_num on the progress bar - there is no direct relation between the two. Why not have this information in a simple log statement at the start of training, and leave more space in the progress bar for other information? As @carmocca put it, the progress bar is "prime real estate".
When we have multiple loggers, we have the strange behavior of concatenating the two version numbers (relic of LoggerCollection) and if the concatenated version numbers is longer than 4 digits we truncate it:
https://github.com/PyTorchLightning/pytorch-lightning/blob/5da065e287b44e2c1fe4f7951003813ed45365c9/pytorch_lightning/callbacks/progress/base.py#L220-L222
Instead, we can just have log statements like this at the start of training:
cc @justusschock @awaelchli @rohitgr7 @edward-io @Borda @ananthsub @kamil-kaczmarek @Raalsky @Blaizzy @carmocca
The text was updated successfully, but these errors were encountered: