Skip to content

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Sep 12, 2023

What does this PR do?

Fixes failing model test with custom diffusion attention processor

FAILED tests/models/test_models_unet_2d_condition.py::UNet2DConditionModelTests::test_custom_diffusion_save_load - RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat2 in method wrapper_CUDA_mm)

Fixes # (issue)

Before submitting

Who can review?

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.

@patrickvonplaten
Copy link
Contributor

Thanks!

@patrickvonplaten patrickvonplaten merged commit f64d52d into main Sep 12, 2023
@patrickvonplaten patrickvonplaten deleted the test-model-custom-diffusion-fix branch September 12, 2023 15:51
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
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.

2 participants