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 custom diffusion attn processor #5663

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Update custom diffusion attn processor #5663

merged 1 commit into from
Nov 7, 2023

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Nov 6, 2023

What does this PR do?

CustomDiffusionAttnProcessor2_0 does not work when using mixed precision training when running train_custom_diffusion.py

This PR:
Updates the CustomDiffusionAttnProcessor2_0 to properly set dtypes in the KV layers to support mixed precision training.

Fixes # (issue)
#5502

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.

@DN6 DN6 requested a review from sayakpaul November 6, 2023 17:36
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 6, 2023

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

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.

Thanks!

@DN6 DN6 merged commit 6a89a6c into main Nov 7, 2023
13 checks passed
kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
update custom diffusion attn processor
@kashif kashif deleted the custom-diffusion branch December 5, 2023 08:59
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
update custom diffusion attn processor
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
update custom diffusion attn processor
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

3 participants