.from_pretrained("runwayml/stable-diffusion-v1-5")

>>> # Use a different scheduler
>>> from diffusers import LMSDiscreteScheduler

>>> scheduler = LMSDiscreteScheduler.from_config(pipeline.scheduler.config)
>>> pipeline.scheduler = scheduler  maybe_free_model_hooks  < source > ( )    Function that offloads all components, removes all model hooks that were added when using
enable_model_cpu_offload and then applies them again. In case the model 