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

Inference from local fine-tuned checkpoints #13

Open
Thedatababbler opened this issue Jun 27, 2024 · 1 comment
Open

Inference from local fine-tuned checkpoints #13

Thedatababbler opened this issue Jun 27, 2024 · 1 comment

Comments

@Thedatababbler
Copy link

Hi,
Thank you for your brilliant work and beautiful code. I found most of your tutorial scripts and codes to be quite self-explanatory, but I do not find code samples how to load fine-tuned checkpoints to do inference. I've trained my own model use the pytorch training trainer with lora, as you showed in your examples. However, since I'm not quite familiar with the diffuser and peft modules, I have trouble load the the checkpoints I trade. Currently, I just set up the model as I did in the training script and load every parameter from the ckpt file, but I feel that might not be the best practice. Would you mind to provide some sample code for inferencing from loading local ckpt file? Thank you!

@Thedatababbler
Copy link
Author

Plus, I use the .sample function from the flash_diffusion_model to do inference. However, with this method, all of my generated images are like following:
image

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

1 participant