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 bug where SetFitHead not moved to non-cuda devices on init #518

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajmssc
Copy link

@ajmssc ajmssc commented May 1, 2024

On my M2 macbook the SetFitHead is not moved to mps on init.
This is because of a typo in the ternary operation to determine the GPU.

@ajmssc
Copy link
Author

ajmssc commented May 3, 2024

@tomaarsen

@osanseviero
Copy link
Member

cc @pcuenca as well

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you 🙌

@ajmssc
Copy link
Author

ajmssc commented May 10, 2024

@pcuenca you're gonna have to do the merging because I don't have that option

@pcuenca
Copy link
Member

pcuenca commented May 10, 2024

@ajmssc I know! I wanted to wait a few hours in case @tomaarsen wanted to comment, merging now :)

lol, actually I can't do it either (or run the workflow), so let's wait for a maintainer.

@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.

@ajmssc
Copy link
Author

ajmssc commented May 28, 2024

@tomaarsen @pcuenca what do you want to do with this PR?

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.

None yet

4 participants