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

Set tracker log level #650

Closed
nbroad1881 opened this issue Aug 22, 2022 · 2 comments
Closed

Set tracker log level #650

nbroad1881 opened this issue Aug 22, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nbroad1881
Copy link
Contributor

Background

I have set up my tracker as follows:

from accelerate.logging import get_logger

logger = get_logger(__name__)

logging.basicConfig(
        format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
        datefmt="%m/%d/%Y %H:%M:%S",
        level=logging.WARNING,
    )

logger.setLevel(logging.WARNING)

This is followed by the accelerator.init_trackers step later in the script.

Even when setting the level to warning, I still get these messages logged:
[2022-08-22 23:21:11,960][accelerate.tracking][INFO] - Successfully logged to WandB

Desired capability

Be able to set log level for the accelerate.tracking messages.

@nbroad1881 nbroad1881 added the enhancement New feature or request label Aug 22, 2022
@muellerzr muellerzr self-assigned this Aug 24, 2022
@muellerzr
Copy link
Collaborator

Should be fixed now with #655

I don't believe it's easily possible to set the log level dynamically for those funcs, but instead we made them debug so it has to be opted in :)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants