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

Add defaults for compute_environmnent #23

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Add defaults for compute_environmnent #23

merged 1 commit into from
Mar 30, 2021

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Mar 30, 2021

#17 introduced a breaking change since it requires configs to now have a "compute_environment" field. This is fixed by re-running accelerate config but we can also be nice to the user and make sure it works for old configs as well :-)

This PR does that.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@philschmid philschmid left a comment

Choose a reason for hiding this comment

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

LGTM. Sorry for the bug. I haven´t tested old configurations.

@sgugger
Copy link
Collaborator Author

sgugger commented Mar 30, 2021

No problem @philschmid, I should have caught it during the review :-)

@sgugger sgugger merged commit 5ab0a2d into main Mar 30, 2021
@sgugger sgugger deleted the config_defaults branch March 30, 2021 19:58
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.

3 participants