-
Notifications
You must be signed in to change notification settings - Fork 36
LoRA loading and LoRA application #20
Conversation
new lcm's 1.5 lora is very good if onnxstack can support it at some point! very low at size, can generate very good images at 4 steps |
Looks like I went down the wrong rabbit whole with the first implementation However I think this may be the route |
# Conflicts: # OnnxStack.Core/Model/OnnxModelAdapter.cs
this repo just released lora and lcm lora= |
So what should have been a trivial thing to add has become impossible ATM. There does not seem to be a way to access the model layers using the Onnx C# API :/ This will have to be done outside ONNX, so perhaps time to find another C# tensor library that can read onnx, and apply changes |
Not possible at this time, Closing |
PR to introduce LoRA (Low Rank Adaptation) support
Adding most of this to the
OnnxStack.Core
as LoRA will be used for other projects outsideStableDiffusion
(Text Generation etc)IOnnxModelService
to load/unload LoRA filesIOnnxAdaperService
to manage LoRA application, support multiple applicationsIStableDiffusionService
forIOnnxAdaperService
Research Links
https://medium.com/openvino-toolkit/enable-lora-weights-with-stable-diffusion-controlnet-pipeline-94fb06c86ea2
Discussion about this feature
#16