-
Notifications
You must be signed in to change notification settings - Fork 377
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
[PyTorch] transformer engine modifies root logger #1294
Comments
Hi Markus! I can certainly add a name to the logger! I guess I meant for these package availability messages (e.g. this and this) to be global messages that are not tied to a particular module. What do you mean by |
Hi Charlene,
Not the format, but the log level. I was surprised as well 😄 By omitting the name argument when calling
So modyfing the root logger with these two lines: TransformerEngine/transformer_engine/pytorch/attention.py Lines 100 to 101 in 7fb22c3
I double checked that with the following snippet: import logging
logger = logging.getLogger("MyApp")
logging.basicConfig(level=logging.DEBUG)
# when this gets uncommented, there is no logging output to the console anymore
#import transformer_engine
logger.debug("This is a debug message.") Can you reproduce this? |
Hello everyone,
we noticed that since #1226, transformer engine modifies the root logger of Python in the global scope:
TransformerEngine/transformer_engine/pytorch/attention.py
Lines 100 to 101 in 7fb22c3
That means that importing transformer-engine already modifies the logger setup of the application.
Is it maybe possible to use a named logger?
fa_logger = logging.getLogger("FlashAttention")
for example?(related to this issue #1065)
Thank you 😄
The text was updated successfully, but these errors were encountered: