Skip to content

[Bug][StableDiffusion] Allow loading models with Float16 in load_pipeline_from_original_stable_diffusion_ckpt #2755

@Stax124

Description

@Stax124

Describe the bug

Models loaded from .ckpt / .safetensors file are using Float32 automatically, with no obvious way to change this behavior.

Reproduction

  • Import load_pipeline_from_original_stable_diffusion_ckpt from diffusers.pipelines.stable_diffusion.convert_from_ckpt
  • Load model from .ckpt file
  • Observe extreme VRAM usage compared to Float16

Logs

No response

System Info

Diffusers: 0.14.0
OS: Linux (Kubuntu 22.04)
Python 3.10.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions