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

Fix accelerate kwargs for versions <0.28.0 #30086

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

vasqu
Copy link
Contributor

@vasqu vasqu commented Apr 6, 2024

What does this PR do?

With this PR, the creation of an accelerate config breaks when using versions < 0.28.0. This is due to the introduction of this kwarg. My suggestion is to remove the kwarg either way (with pop) as it's done for versions >=0.28.0.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@muellerzr
@pacman100

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks!

@amyeroberts
Copy link
Collaborator

Merging as the failing tests are unrelated and have been fixed upstream

@amyeroberts amyeroberts merged commit 0f94e3e into huggingface:main Apr 10, 2024
18 of 21 checks passed
@vasqu vasqu deleted the fix-accelerate-kwargs branch April 19, 2024 17:42
ArthurZucker pushed a commit that referenced this pull request Apr 22, 2024
* fix learning rate display issue in galore optimizer

* fix kwarg in accelerate when using versions < 0.28.0

* this was supposed to be in the other PR whoops
itazap pushed a commit that referenced this pull request May 14, 2024
* fix learning rate display issue in galore optimizer

* fix kwarg in accelerate when using versions < 0.28.0

* this was supposed to be in the other PR whoops
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