Skip to content

Fix common tests for FP16#1588

Merged
anton-l merged 2 commits into
mainfrom
patch-common-tests
Dec 7, 2022
Merged

Fix common tests for FP16#1588
anton-l merged 2 commits into
mainfrom
patch-common-tests

Conversation

@anton-l

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

Copy link
Copy Markdown
Member

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

HuggingFaceDocBuilderDev commented Dec 7, 2022

Copy link
Copy Markdown

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


class DDIMPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
pipeline_class = DDIMPipeline
test_cpu_offload = False

Copy link
Copy Markdown
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

@patrickvonplaten patrickvonplaten left a comment

Copy link
Copy Markdown
Contributor

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.

3 participants