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

Do not use torch.float64 on the mps device #942

Merged
merged 6 commits into from
Oct 26, 2022
Merged

Do not use torch.float64 on the mps device #942

merged 6 commits into from
Oct 26, 2022

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Oct 22, 2022

Fixes #940.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 22, 2022

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

@pcuenca pcuenca merged commit 0343d8f into main Oct 26, 2022
@pcuenca pcuenca deleted the fix-lms-mps branch October 26, 2022 09:56
@pcuenca pcuenca restored the fix-lms-mps branch October 26, 2022 15:10
pcuenca added a commit that referenced this pull request Oct 27, 2022
* Add failing test for #940.

* Do not use torch.float64 in mps.

* style

* Temporarily skip add_noise for IPNDMScheduler.

Until #990 is addressed.

* Fix additional float64 error in mps.

* Improve add_noise test

* Slight edit – I think it's clearer this way.
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* Add failing test for huggingface#940.

* Do not use torch.float64 in mps.

* style

* Temporarily skip add_noise for IPNDMScheduler.

Until huggingface#990 is addressed.
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…ace#996)

* Add failing test for huggingface#940.

* Do not use torch.float64 in mps.

* style

* Temporarily skip add_noise for IPNDMScheduler.

Until huggingface#990 is addressed.

* Fix additional float64 error in mps.

* Improve add_noise test

* Slight edit – I think it's clearer this way.
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.

MPS crash when using LMSDiscreteScheduler
5 participants