Replies: 3 comments 1 reply
-
I was literally just looking into that now :) I was looking at supporting
We also could support it just in |
Beta Was this translation helpful? Give feedback.
-
Had a bit of a think about this, The best approach to this would be to handle it all in The However we can simply make "sub module" Then in `ModelSet' sub-module would be lazy loaded, so first model that needs it will load it, if next model loaded needs it it will stay loaded, otherwise unloaded How to link a Will open a PR for this soon, With initial goal of shared |
Beta Was this translation helpful? Give feedback.
-
For my use case (Windows App with One model at a time), it would be good enough to check if the sub model is loaded (same file) and not load it again. Other people's use cases (Server hosted with multiple models concurrently) may be more complex, requiring more fine tuned control of loading sub models. Regards, |
Beta Was this translation helpful? Give feedback.
-
Currently when Loading a SD model, it loads all the sub models.
Was wondering what is the best way to share VAE Encoder, Decoder, Tokenizer and TextEncoder sub-models between different SD Models, so that they are not all loaded again when SD Model is switched. In most cases only the Unet model is different.
Thanks,
Ash
Beta Was this translation helpful? Give feedback.
All reactions