Skip to content

Conversation

@sepal
Copy link
Contributor

@sepal sepal commented Oct 4, 2023

What does this PR do?

Fixes #5260 by reducing the channels of the downblocks of the UNet model.

So far all tests pass on my local machine without any changes, except for test_stable_diffusion_xl_euler. The deviation for image slice check is bigger than 0.01, which is why I changed the assert to 0.1. Are we ok with this?

According to time the running the tests without the optimizations took 2:13.44, with it only took 1:04.99 total, so the speed up seems worth it.

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.

@sepal sepal marked this pull request as ready for review October 5, 2023 07:11
@sepal
Copy link
Contributor Author

sepal commented Oct 6, 2023

@sayakpaul can I add you as a reviewer?

@sayakpaul sayakpaul requested a review from DN6 October 9, 2023 07:30
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.

LGTM 👍🏽

@DN6 DN6 merged commit 2ed7e05 into huggingface:main Oct 9, 2023
@sepal sepal deleted the faster-fast-tests-reduce-down-blocks branch October 9, 2023 09:30
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…#5290)

* Reduce number of down block channels

* Remove debug code

* Set new excepted image slice values for sdxl euler test
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.

[HacktoberFest] make fast test for StableDiffusionXLPipeline smaller when applicable

4 participants