-
Notifications
You must be signed in to change notification settings - Fork 615
Print out the version number #2083
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
Conversation
[ghstack-poisoned]
torchtitan/train.py
Outdated
|
|
||
| import torchtitan | ||
| logger.info( | ||
| "TorchTitan version: %s (0.0.0 means __version__ is not defined correctly).", |
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.
when would it be not defined?
can we just put Undefined instead of 0.0.0 as the version, so that we don't need to explain even when the version is normal?
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 believe "undefined" is going to break some package installation. We can do "0.0.0+unknown". But the explanation is better to stay there for people who don't know the version restriction well.
tianyu-l
left a comment
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.
sg, one nit
Stack from ghstack (oldest at bottom):
This PR and #2070 can resolve #2043.
This should not affect
.github/scripts/update_version.shas.github/scripts/update_version.shwill append the version at the end of the file, which will overwrite the value.