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

[Core] Refactor activation and normalization layers #5493

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

sayakpaul
Copy link
Member

Internal Slack thread (internal to Diffusers maintainers):
https://huggingface.slack.com/archives/C04DBJ0HLH1/p1697859469537249

@stevhliu docs look okay to you?

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

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

Nice and clean docstrings! 👍

docs/source/en/_toctree.yml Outdated Show resolved Hide resolved
docs/source/en/_toctree.yml Outdated Show resolved Hide resolved
src/diffusers/models/activations.py Outdated Show resolved Hide resolved
src/diffusers/models/activations.py Outdated Show resolved Hide resolved
src/diffusers/models/normalization.py Outdated Show resolved Hide resolved
src/diffusers/models/normalization.py Outdated Show resolved Hide resolved
src/diffusers/models/normalization.py Outdated Show resolved Hide resolved
sayakpaul and others added 2 commits October 23, 2023 22:08
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 23, 2023

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

@@ -162,6 +162,10 @@
title: Conceptual Guides
- sections:
- sections:
- local: api/activations
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move all of this under "internal classes" to make sure that users know that it's not public API and more prone to breaking changes?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Would it not make sense to update in a bulk PR?

Cc: @stevhliu too.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, I can update and create a new "internal classes" section in a separate PR if you'd like!

Copy link
Member Author

Choose a reason for hiding this comment

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

That'd be great. So, I am merging it now then.

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.

Looks good! Thanks for the clean-up. Let's just make sure that the classes are clearly marked as internal classes in the doc

@sayakpaul sayakpaul merged commit 77241c4 into main Oct 24, 2023
13 checks passed
@sayakpaul sayakpaul deleted the refactor/norm-activation-layers branch October 24, 2023 03:19
linoytsaban pushed a commit to linoytsaban/diffusers that referenced this pull request Oct 24, 2023
* move out the activations.

* move normalization layers.

* add doc.

* add doc.

* fix: paths

* Apply suggestions from code review

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* style

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
* move out the activations.

* move normalization layers.

* add doc.

* add doc.

* fix: paths

* Apply suggestions from code review

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* style

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* move out the activations.

* move normalization layers.

* add doc.

* add doc.

* fix: paths

* Apply suggestions from code review

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* style

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* move out the activations.

* move normalization layers.

* add doc.

* add doc.

* fix: paths

* Apply suggestions from code review

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* style

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
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.

4 participants