Skip to content

[Tests] fix things after #7013 #7899

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

Merged
merged 9 commits into from
May 9, 2024
Merged

Conversation

sayakpaul
Copy link
Member

What does this PR do?

#7013 changed the order of channels in the watermarked which is used in our CI. This led to some assertion failures, as seen here: https://github.com/huggingface/diffusers/actions/runs/8943160603/job/24567270848#step:7:3396.

For FAILED tests/lora/test_lora_layers_sdxl.py::LoraSDXLIntegrationTests::test_sdxl_lcm_lora, I did https://huggingface.co/datasets/hf-internal-testing/diffusers-images/discussions/39.

Additionally, I fixed the reason why tests/lora/test_lora_layers_sd.py::StableDiffusionLoRATests::test_integration_move_lora_dora_cpu was failing.

Other failing tests are likely because of caching issues. Once that is resolved and if we observe assertion problems, I will fix them as we go.

@sayakpaul sayakpaul requested a review from DN6 May 9, 2024 13:24
@sayakpaul sayakpaul changed the title [Tests] fix things after #7013/ [Tests] fix things after #7013 May 9, 2024
@@ -1294,7 +1294,7 @@ def set_lora_device(self, adapter_names: List[str], device: Union[torch.device,
text_encoder_module.lora_B[adapter_name].to(device)
# this is a param, not a module, so device placement is not in-place -> re-assign
if (
hasattr(text_encoder, "lora_magnitude_vector")
hasattr(text_encoder_module, "lora_magnitude_vector")
Copy link
Member Author

Choose a reason for hiding this comment

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

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

Copy link
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

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

Thank you 👍🏽

@sayakpaul sayakpaul merged commit 305f2b4 into main May 9, 2024
17 checks passed
@sayakpaul sayakpaul deleted the fix-lora-tests-rgb-watermark-ordering branch May 9, 2024 14:05
sayakpaul added a commit that referenced this pull request Dec 23, 2024
* debugging

* save the resulting image

* check if order reversing works.

* checking values.

* up

* okay

* checking

* fix

* remove print
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