Skip to content

[Feature Request] Documentation around multiple pipelines reusing model weights #1084

@theahura

Description

@theahura

Is your feature request related to a problem? Please describe.
If I have a StableDiffusionPipeline, a StableDiffusionImg2ImgPipeline, and a StableDiffusionInpaintPipeline, these will all load separate weights to the GPU even though they are all using the same model. This makes creating applications that use the full breadth of SD difficult to create.

Describe the solution you'd like
It seems like it is possible to reuse weights, according to https://discuss.huggingface.co/t/access-clip-from-stablediffusionpipeline-and-use-the-same-models-for-multiple-pipelines/24813. However, this is not at all clear from the API docs and it's also unclear whether we need to do things like route to cuda multiple times.

Describe alternatives you've considered
NA

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions