Skip to main content
Back

LCM-LoRA Slashes Stable Diffusion XL Generation From 50 Steps to 4

A 197M parameter LoRA adapter distilled from SDXL cuts image generation to just 2-8 steps, plug-in compatible with existing checkpoints.

Pro

  • Latent Consistency org released lcm-lora-sdxl, a 197M LoRA distilled from SDXL
  • Cuts SDXL inference from 25-50 steps to 2-8 steps with LCMScheduler
  • Based on the LCM-LoRA paper by Simian Luo, Suraj Patil, Patrick von Platen and colleagues
  • Plugs into ControlNet, T2I-Adapter, inpainting, and style LoRAs without retraining
  • Requires disabling CFG or keeping guidance scale between 1.0 and 2.0
  • Supported in Diffusers v0.23.0+ under OpenRAIL++ license

The Latent Consistency organization on Hugging Face has published lcm-lora-sdxl, a distilled LoRA adapter that cuts Stable Diffusion XL's sampling budget from the usual 25–50 steps down to 2–8. The release accompanies the technical report LCM-LoRA: A Universal Stable-Diffusion Acceleration Module by Simian Luo, Yiqin Tan, Suraj Patil, Daniel Gu, Patrick von Platen, Apolinario Passos, Longbo Huang, Jian Li, and Hang Zhao.

Consistency distillation trains a model to skip many diffusion steps at once. LCM-LoRA packages that behavior as a LoRA adapter, which means the distilled weights can be loaded on top of an existing checkpoint without retraining it. The authors applied this to SD-V1.5, SSD-1B, and SDXL, keeping memory consumption well below what a full model distillation would require.

Few-step SDXL, no checkpoint retraining

The SDXL adapter carries 197M parameters and targets stable-diffusion-xl-base-1.0. Its key advantage is portability: load it on top of any SDXL fine-tune or alongside other LoRAs, swap in LCMScheduler, and drop num_inference_steps to 4. No per-checkpoint distillation run required. Compared with numerical ODE solvers like DDIM and DPM-Solver, the adapter acts as a learned PF-ODE solver with stronger generalization across prompts and conditioning setups.

Getting started

Support lands in Diffusers from v0.23.0. A minimal text-to-image call:

import torch
from diffusers import LCMScheduler, AutoPipelineForText2Image
pipe = AutoPipelineForText2Image.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16, variant="fp16").to("cuda")
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
pipe.fuse_lora()
image = pipe(prompt="a cyborg with golden hair, 8k",
             num_inference_steps=4, guidance_scale=0).images[0]

Two configuration details matter. Switch to LCMScheduler, and keep classifier-free guidance disabled or between 1.0 and 2.0. Higher guidance scales conflict with the consistency objective and produce artifacts. The weights are released under the OpenRAIL++ license.

What it composes with

Because it ships as a LoRA rather than a standalone checkpoint, it slots into the existing SDXL ecosystem cleanly. The model card demonstrates:

  • Stacking with style LoRAs like Papercut SDXL via set_adapters(["lcm", "papercut"], adapter_weights=[1.0, 0.8]), generating in 4 steps
  • ControlNet-guided generation with controlnet-canny-sdxl-1.0-small at 5 steps
  • T2I-Adapter pipelines using the Tencent ARC canny adapter at 4 steps
  • Inpainting through AutoPipelineForInpainting with the SDXL 1.0 inpainting checkpoint

Previous acceleration methods typically required distilling each fine-tuned checkpoint separately or broke compatibility with ControlNet-style conditioning. LCM-LoRA sidesteps both problems.

Why training stays cheap

LCM distillation from a pre-trained latent diffusion model takes roughly 32 A100 GPU hours. The LoRA formulation shaves that further: the base weights stay frozen, and gradient updates touch only the low-rank matrices A and B. SDXL and SSD-1B variants were distilled on 1024×1024 images with a fixed classifier-free guidance scale of 7.5, which bakes guidance behavior into the adapter and explains why inference works best with CFG disabled.

Strengths and limits

Based on the released pipelines and community usage, where it performs well:

  • Interactive workflows: 2–8 step SDXL generation is fast enough for real-time UIs and rapid prompt iteration on a consumer GPU
  • Composes with existing style LoRAs and ControlNet, leaving the broader SDXL ecosystem intact
  • At 197M parameters, easy to load and swap without significant overhead

Where it falls short:

  • Fine detail and prompt adherence at 2 steps can lag full 25-step SDXL, particularly on complex compositions
  • Guidance is effectively locked low, so workflows that depend on high CFG for prompt fidelity will not transfer cleanly
  • ControlNet and T2I-Adapter setups require per-prompt tuning of num_inference_steps, guidance_scale, and conditioning scales

Where it fits in the acceleration landscape

Diffusion sampling speed has been attacked from two directions: better ODE solvers (DDIM, DPM-Solver) and full model distillation. LCM-LoRA collapses distillation into a portable 197M-parameter file, which is why the paper topped Hugging Face's daily paper rankings on submission and the SDXL variant has accumulated over 770 likes and tens of thousands of monthly downloads on the Hub.

For anyone shipping SDXL in production or building latency-sensitive creative tools, the trade is a single LoRA load and a scheduler swap for a 5–10x reduction in sampling cost, with existing checkpoints and conditioning stacks untouched.