-
Notifications
You must be signed in to change notification settings - Fork 72
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
Hide device info prints in Python #85
Comments
Both pytorch lightning and transformers are very verbose. I am adding a --quiet flag that sets all loggers to ERROR level. It will be included in the next release |
@ricardorei thanks for solving this issue a while back. |
Its in the README:
|
@ricardorei but the issue mentions calling comet from python. So am I. Not the cli |
You are right. It's just solved for the CLI interface. Ill reopen the issues as the current behaviour is still not the expected behaviour. Meanwhile I'll leave here a snippet on how to run it in a quiet mode and silencing the underlying libraries. import logging
loggers = [logging.getLogger(name) for name in logging.root.manager.loggerDict]
for logger in loggers:
logger.setLevel(logging.WARNING) Finally, you can run COMET with
|
I'm also getting a pytorch_lightning warning once I implement the code you suggested. Everything else is gone.
|
🐛 Bug / feature(?)
Whenever running COMET from the
huggingface-evaluate
library, I get the following output:When running the evaluation iteratively, it breaks the
tqdm
progress bar. I tried overriding thestd*
buffer before and flushing it before I revert it back, but the output is still there.To Reproduce
Simply run the scoring from Python.
Expected behaviour / feature description
To be able to pass a
quiet
orverbose=0
flag to the scoring function to not output the device info.Screenshots
The text was updated successfully, but these errors were encountered: