Skip to content
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

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

ravi-mosaicml
Copy link
Contributor

  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

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
Copy link
Contributor

@jbloxham jbloxham left a 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!

Copy link
Contributor

@Averylamp Averylamp left a 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)

@ravi-mosaicml
Copy link
Contributor Author

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

FYI here is the convention: https://docs.python.org/3/howto/logging-cookbook.html#formatting-styles

@ravi-mosaicml ravi-mosaicml merged commit 722edf0 into dev Dec 17, 2021
@ravi-mosaicml ravi-mosaicml deleted the ravi/ux branch December 17, 2021 00:41
@Averylamp
Copy link
Contributor

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

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

coryMosaicML pushed a commit to coryMosaicML/composer that referenced this pull request Feb 23, 2022
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run_mosaic_trainer.py to print help text when invoked without arguments
3 participants