Skip to content

Conversation

sayakpaul
Copy link
Member

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 6, 2023

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

Copy link
Contributor

@williamberman williamberman left a comment

Choose a reason for hiding this comment

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

nice!

a bit confused why it didn't happen before but should be safe to merge

@sayakpaul
Copy link
Member Author

Maybe the training runs were not using mixed precision at all? Can happen in the following scenario.

We likely have to specify the accelerate mixed_precision flag after accelerate launch --mixed_precision=fp16 ... as we use accelerator.mixed_precision to determine weight_dtype?

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.

Cool!

@sayakpaul
Copy link
Member Author

I will wait for @williamberman to check out #2994 (comment) and ensure that we're on the same page regarding this.

@sayakpaul
Copy link
Member Author

@williamberman a friendly ping ^

@williamberman
Copy link
Contributor

We pass the mixed_precision arg from the cli args to the Accelerator object

mixed_precision=args.mixed_precision,

so I don't think it's an issue of whether or not accelerate launch was used. It's ok to merge without going super in depth here

@sayakpaul
Copy link
Member Author

@williamberman, hmm interesting!

I tried with an earlier accelerate version too and it failed without the changes introduced in this PR.

@sayakpaul sayakpaul merged commit e607a58 into main Apr 12, 2023
@sayakpaul sayakpaul deleted the fix/controlnet-training branch April 12, 2023 01:05
w4ffl35 pushed a commit to w4ffl35/diffusers that referenced this pull request Apr 14, 2023
…uggingface#2994)

* fix: norm group test for UNet3D.

* fix: type-casting issue in controlnet training.
dg845 pushed a commit to dg845/diffusers that referenced this pull request May 6, 2023
…uggingface#2994)

* fix: norm group test for UNet3D.

* fix: type-casting issue in controlnet training.
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…uggingface#2994)

* fix: norm group test for UNet3D.

* fix: type-casting issue in controlnet training.
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