Skip to content

Conversation

@stevhliu
Copy link
Member

@stevhliu stevhliu commented Aug 7, 2023

Fixes #4487 to remove attention slicing section and add a disclaimer to the enable_attention_slicing function because most users use SDPA or xFormers now, and enabling attention slicing with these can cause slowdowns.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 7, 2023

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

@stevhliu stevhliu requested review from sayakpaul and yiyixuxu August 7, 2023 17:28
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Looks good to me. Should we keep the discarded information somewhere still?

@stevhliu
Copy link
Member Author

stevhliu commented Aug 8, 2023

Added an example usage in the functions docstring! I think the docstring description still conveys all the discarded information in a more concise way :)

@stevhliu stevhliu merged commit e31f38b into huggingface:main Aug 10, 2023
@stevhliu stevhliu deleted the remove-attention-slicing branch August 10, 2023 18:00
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* remove attention slicing

* apply feedback
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* remove attention slicing

* apply feedback
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.

Remove attention slicing from docs

3 participants