Skip to content

[docs] Create clearer optimization sections #4870

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 5 commits into from
Sep 13, 2023

Conversation

stevhliu
Copy link
Member

@stevhliu stevhliu commented Sep 1, 2023

Implements #4786 to tidy up the optimization/special hardware section so topics are more discoverable


</Tip>

CPU offloading can also be chained with attention slicing to reduce memory consumption to less than 2GB.
Copy link
Member Author

Choose a reason for hiding this comment

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

Should we still promote attention slicing here with CPU offloading (and below for model offloading)? I think we removed it a while ago and we're just keeping it in the docstring

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 1, 2023

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

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

New structure/format looks good to me - thanks!

@stevhliu
Copy link
Member Author

For some reason, the PR link to the docs does not reflect the latest changes so please be aware of that! I'll leave this open a little while longer to allow others some time to chime in before I merge 🙂

@stevhliu stevhliu marked this pull request as ready for review September 11, 2023 20:14
@stevhliu stevhliu merged commit 19edca8 into huggingface:main Sep 13, 2023
@stevhliu stevhliu deleted the optim-reorg branch September 13, 2023 22:21
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* refactor

* update general optim sections

* update more sections

* few more updates

* benchmark code
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