Replies: 1 comment
-
did you find anything? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to download only the configuration files from an entire model pipeline located on hugging face (for example
runwayml/stable-diffusion-v1-5
) and then instantiate an uninitialized model from that configuration. In this process, I want to download as little content as is necessary to create the model instance, because it takes a lot of time and bandwidth to do download models online.Is there a simple way to do this using existing code? I tried using
ConfigMixin.from_config
but to no avail:This raises the following error:
As a side note, it appears to work perfectly fine to load each individual component of the pipeline one by one like this:
However, it would be best to avoid having to load individual components of a pipeline and then having to put these together manually in this way. I intend to load a large number of models in this way, so it would be tedious to have to seek which components different pipelines have and then load them using the arbitrary class specified in their config every time.
All configuration necessary to create a model should be located in the corresponding hugging face repo. Surely I am missing something, there must be a simple and efficient way to create an empty pipeline using a pretrained model as a template.
Beta Was this translation helpful? Give feedback.
All reactions