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 add LORA/weight to replicate-javascript? #182

Open
Pickra opened this issue Jan 3, 2024 · 2 comments
Open

How to add LORA/weight to replicate-javascript? #182

Pickra opened this issue Jan 3, 2024 · 2 comments

Comments

@Pickra
Copy link

Pickra commented Jan 3, 2024

Hey, I'm a noob so please be gentle.

I want to add LORA/weight to an instance of SDXL.

I'm using replicate-javascript to run an SDXL model. I trained a different instance of SDXL on replicate.com and downloaded the weights. How do I add the weights/LORA via replicate-javascript? Or there's no docs for this because that's not how it works?

Thank you.

@mattt
Copy link
Member

mattt commented Jan 3, 2024

Hi @Pickra. If you fine-tuned SDXL on Replicate, you can run that model directly. Here's a comprehensive guide for how all of that works: https://replicate.com/blog/fine-tune-sdxl

@Pickra
Copy link
Author

Pickra commented Jan 3, 2024

Thanks for getting back to me @mattt !

I'm aware I can run the model on replicate. I want to train for multiple types of fantasy characters. The SDXL base instance is giving me poor results, but the training gets good results.

I could retrain the same model and not have to worry about the LORAs but I thought the best approach was to create/train multiple LORAs and apply them to 1 instance of SDXL. It's possible I'm misunderstanding or am unaware of the optimal way to get trained results for multiple types of fantasy characters.

Please advise. Thank you.

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