eduler = LCMScheduler.from_config(pipe.scheduler.config)

prompt = "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"

generator = torch.manual_seed(0)
image = pipe(
    prompt=prompt, num_inference_steps=4, generator=generator, guidance_scale=8.0
).images[0]  Notice that we use only 4 steps for generation which is way less than what’s typically used for standard SDXL. Some details to keep in mind: To perform classifier-free 