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

correct the return statement of _init_infer_auto_device_map #3279

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

Nech-C
Copy link
Contributor

@Nech-C Nech-C commented Dec 8, 2024

What does this PR do?

Fixes #3276

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?

@SunMarc

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.

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

LGTM ! Would be awesome to have this in a patch @muellerzr . This won't impact transformers as we don't pass a max_memory=None there but would be nice to fix for other libs that uses accelerate.

@SunMarc SunMarc requested a review from muellerzr December 9, 2024 13:12
@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.

@muellerzr
Copy link
Collaborator

Thanks for working on a fix! Think this still doesn't 100% solve it since there are still some errors.

@SunMarc
Copy link
Member

SunMarc commented Dec 13, 2024

Should work now ! The failing tests where unrelated to this PR.

@SunMarc SunMarc mentioned this pull request Dec 13, 2024
4 tasks
Copy link
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Great! Will include this as part of the patch today

@muellerzr muellerzr merged commit 200c9eb into huggingface:main Dec 13, 2024
25 checks passed
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.

Calling infer_auto_device_map() with max_memory=None throws an error in version 1.2.0
4 participants