-
Notifications
You must be signed in to change notification settings - Fork 433
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
Print help on run_mosaic_trainer.py
, cleaned up verbosity.
#170
Conversation
1. Moved the `datadir` onto trainer hparams to avoid an UnusedArgumentWarning 2. Setting the default loglevel to warning 3. Cleaned up warnings to not print a useless extra second line showing the source code of the warning.warn call 4. Cleaned up the launch script to be not-very-verbose by default; but added a -v option for verbosity. 5. If `run_mosaic_trainer.py` is run without args, then the help is printed. Closes #88, #128
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.
Looks good - just some questions!
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.
lgtm. I also have a preference for fstrings instead of old python2 format. Even if wanting to put args at the end, I think I'd still prefer
this is a string with: {argname}
.format(argname=item)
FYI here is the convention: https://docs.python.org/3/howto/logging-cookbook.html#formatting-styles |
I don't think we need to follow this convention although it does save one evaluation call. %s does lead to bugs when you are printing tuples and items such as that. Becomes more confusing in terms of readability as well |
…l#170) 1. Moved the `datadir` onto trainer hparams to avoid an UnusedArgumentWarning 2. Setting the default loglevel to warning 3. Cleaned up warnings to not print a useless extra second line showing the source code of the warning.warn call 4. Cleaned up the launch script to be not-very-verbose by default; but added a -v option for verbosity. 5. If `run_mosaic_trainer.py` is run without args, then the help is printed. Closes mosaicml#88, mosaicml#128
datadir
onto trainer hparams to avoid an UnusedArgumentWarningrun_mosaic_trainer.py
is run without args, then the help is printed.Closes #88, #128