-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[LoRA] Support original format loras for HunyuanVideo #10376
base: main
Are you sure you want to change the base?
Conversation
@sayakpaul @DN6 Not comfortable adding integrations tests with any of the existing original-format loras on the Hub/CivitAI for HunyuanVideo. They are either Anime/NSFW/Person-related loras which we usually don't use for testing. I'll work on training a style lora over the next few days and convert it to original format for integration tests. Does that sound good? |
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. |
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.
Perfect! Okay to merge for me after an integration test!
|
||
|
||
def _convert_hunyuan_video_lora_to_diffusers(original_state_dict): | ||
converted_state_dict = {k: original_state_dict.pop(k) for k in list(original_state_dict.keys())} |
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.
We usually add a check on original_state_dict
if it's been emptied for converters like this. Do we wanna do that here?
if len(original_state_dict) > 0: |
Subscribing to this PR |
Hi, does Diffusers have a training script available for training HunyuanVideo LoRAs? |
We do, thanks to @a-r-r-o-w 🐐 |
Fixes #10106 (comment)
Some LoRAs for testing:
cc @svjack Would you be able to give this a try?