Skip to content

Conversation

@patil-suraj
Copy link
Contributor

Fix gradient clipping when doing gradient accumulation. The gradients needs to clipped after they are synchronized when doing accumulation. cf huggingface/accelerate#641 (comment)
fixes #499

Although not sure why it only got triggered only in half-precision.

@patil-suraj patil-suraj requested a review from anton-l October 4, 2022 16:52
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 4, 2022

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

@patil-suraj patil-suraj merged commit 14b9754 into main Oct 4, 2022
@patil-suraj patil-suraj deleted the fix-clip-grad branch October 4, 2022 17:04
prathikr pushed a commit to prathikr/diffusers that referenced this pull request Oct 26, 2022
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.

Example unconditional training script does not work

3 participants