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 common tests for FP16 #1588

Merged
merged 2 commits into from Dec 7, 2022
Merged

Fix common tests for FP16 #1588

merged 2 commits into from Dec 7, 2022

Conversation

anton-l
Copy link
Member

@anton-l anton-l commented Dec 7, 2022

Adapts the test to a change coming from huggingface/transformers#20602
With device_map=None the torch_dtype has to be specified to load fp16 checkpoints as fp16.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 7, 2022

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

@@ -29,6 +29,7 @@

class DDIMPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
pipeline_class = DDIMPipeline
test_cpu_offload = False
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated, just missed this previously

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Thanks!

@anton-l anton-l merged commit dc87f52 into main Dec 7, 2022
@anton-l anton-l deleted the patch-common-tests branch December 7, 2022 13:09
tcapelle pushed a commit to tcapelle/diffusers that referenced this pull request Dec 12, 2022
* Fix common tests for FP16

* revert
sliard pushed a commit to sliard/diffusers that referenced this pull request Dec 21, 2022
* Fix common tests for FP16

* revert
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

3 participants