Skip to content

Raise error when logging improperly#1446

Merged
muellerzr merged 2 commits into
mainfrom
raise-err-on-logger
May 17, 2023
Merged

Raise error when logging improperly#1446
muellerzr merged 2 commits into
mainfrom
raise-err-on-logger

Conversation

@muellerzr

Copy link
Copy Markdown
Contributor

A user cannot call the logging utility in Accelerate without first building the state in some form. This PR introduces an error raising it as such and fixes #1445

@muellerzr
muellerzr requested a review from sgugger May 17, 2023 14:48
@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented May 17, 2023

Copy link
Copy Markdown

The documentation is not available anymore as the PR was closed or merged.

@sgugger sgugger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

Comment thread src/accelerate/logging.py Outdated
@muellerzr
muellerzr merged commit 6413f25 into main May 17, 2023
@muellerzr
muellerzr deleted the raise-err-on-logger branch May 17, 2023 15:16
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.

CPU never used when MPS is available, if logger is used beforehand

3 participants