-
Notifications
You must be signed in to change notification settings - Fork 63
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
SDXL lora on inf2 #359
Comments
Hi @MrD005, Thanks for opening the issue, and the contribution is very welcomed! To support LoRA, the first thing we need to check is whether the neuron compiler support the compilation of text encoder / unet loaded with LoRA weight (theorectically yes). To do so, we can do a quick hack:
with for example pipeline.load_lora_weights("ostris/super-cereal-sdxl-lora", weight_name="cereal_box_sdxl_v1.safetensors") If the model compiled successfully, and doesn't meet any issue during the inference, then we can add offically support to the exporter:
Then we are normally all set, the compiled artifacts should contain the LoRA weights and there is nothing else to add during the inference. Much appreciation if you would like to work on it 🙏 . Feel free to ping me for review or any further question! |
Thanks @JingyaHuang i will implement this and revert back if its works or not |
@JingyaHuang i have one more query if you can help into that also |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you! |
3 similar comments
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you! |
Hi there, |
Hi @khurramkhalil, it's already supported through this PR: #483. You could also find an example here: https://huggingface.co/docs/optimum-neuron/en/tutorials/stable_diffusion#load-adapters |
Thank you very much. |
want to implement LoRA on SDXL model on inf2. Is there any support or process to implement this ?
The text was updated successfully, but these errors were encountered: