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

Update free model hooks #5680

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Update free model hooks #5680

merged 1 commit into from
Nov 7, 2023

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Nov 7, 2023

What does this PR do?

We have failing slow pipeline tests related to model_cpu_offload, where not all components are moved back to cpu after inference because they do not use maybe_free_model_hooks. This PR updates the pipelines to offload all components correctly after inference.

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

patrickvonplaten commented Nov 7, 2023

Great, nice fix!

@DN6 DN6 merged commit 8ca179a into main Nov 7, 2023
13 checks passed
kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
@kashif kashif deleted the model-offload-fixes branch December 5, 2023 09:00
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
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.

None yet

2 participants