-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix mixed precision fine-tuning for text-to-image-lora-sdxl example. #6751
Fix mixed precision fine-tuning for text-to-image-lora-sdxl example. #6751
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Wow. I just ran it and it went smoothly. Thanks much! |
text_encoder_2_state_dict, network_alphas=network_alphas, text_encoder=text_encoder_two_ | ||
) | ||
_set_state_dict_into_text_encoder( | ||
lora_state_dict, prefix="text_encoder_2.", text_encoder=text_encoder_one_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be text_encoder_two_
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a single comment.
You're right! That was a terrible mistake! Review again please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super!
I'm still getting the error ValueError: Attempting to unscale FP16 gradients. Name: diffusers |
…uggingface#6751) * Fix mixed precision fine-tuning for text-to-image-lora-sdxl example. * fix text_encoder_two bug. --------- Co-authored-by: Sajad Norouzi <sajadn@dev-dsk-sajadn-2a-87239470.us-west-2.amazon.com>
What does this PR do?
Fixes #6442
Part of #6552
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
To Test?
training:
resuming:
Who can review?
@sayakpaul