Skip to content
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

custom_pipeline not being cached #7946

Open
John0x opened this issue May 14, 2024 · 0 comments
Open

custom_pipeline not being cached #7946

John0x opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@John0x
Copy link

John0x commented May 14, 2024

Describe the bug

Components of custom pipelines (defined via custom_pipeline parameter) do not seem to be cached.
I have a multistep system where I'm loading all my components and then caching them explicitly using transformers.utils.move_cache.
I have an sdxl pipeline with custom_pipeline="lpw_stable_diffusion_xl". The normal pipeline components seem to be cached correctly but not the components of the custom_pipeline.

I'm restoring the cached components by using the Pipeline with local_files_only=True, however diffusers is always trying to reach the internet for the custom_pipeline components, which it cannot, since the env where the restoration happens, doesn't have a connection.

Reproduction

StableDiffusionXLPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16,
custom_pipeline="lpw_stable_diffusion_xl"
)

Logs

No response

System Info

latest diffusers version from main branch

Who can help?

@yiyixuxu @sayakpaul @DN6

@John0x John0x added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant