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

How to load full finetune for inference? #248

Closed
BlackTea-c opened this issue Jan 27, 2025 · 2 comments
Closed

How to load full finetune for inference? #248

BlackTea-c opened this issue Jan 27, 2025 · 2 comments

Comments

@BlackTea-c
Copy link

Feature request / 功能建议

Image

Motivation / 动机

It seems like only lora inference example in README.MD

Your contribution / 您的贡献

test the full finetune(LTX-VIDEO,Cogxvideo)

@a-r-r-o-w
Copy link
Owner

Could you try something like this:

from diffusers import HunyuanVideoTransformer3DModel, HunyuanVideoPipeline

transformer = HunyuanVideoTransformer3DModel.from_pretrained("/path/to/checkpoint-3000/transformer", torch_dtype=torch.bfloat16)
pipe = HunyuanVideoPipeline.from_pretrained("hunyuanvideo-community/HunyuanVideo", transformer=transformer, torch_dtype=torch.float16)
pipe.to("cuda")

@BlackTea-c
Copy link
Author

it works,thanks.

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

No branches or pull requests

2 participants