Generate high-resolution images in seconds by running LCM locally on a GPU using the included Gradio interface
Attach LCM-LoRA to your existing Stable Diffusion XL or SD 1.5 setup to speed up image generation without retraining
Train your own consistency-distilled image generation model using the included training scripts
Try image generation in a browser via Hugging Face Spaces or Replicate with no local setup required
Requires a compatible GPU (NVIDIA CUDA, Intel GPU, or Apple Silicon), CPU-only inference on Windows/Linux is supported only via a linked third-party tool and will be slow.
This repository holds the official code for Latent Consistency Models, a research project focused on generating high-resolution images much faster than traditional AI image-generation methods. Standard image generators typically need dozens of processing steps to produce a result, this project introduces a technique that can create quality images in just two to four steps, which makes the process significantly quicker without a major drop in quality. The project ships two related contributions. The first is the core Latent Consistency Model itself, which is trained to skip most of the usual generation steps. The second is LCM-LoRA, a smaller plug-in module that can be attached to existing image-generation models (such as Stable Diffusion XL or SD 1.5) to speed them up without retraining the whole model from scratch. Both can be downloaded from Hugging Face and tried through live demos on Hugging Face Spaces, Replicate, and OpenXLab. For anyone who wants to run it locally, the repository includes a gradio-based interface. Setup involves installing Python dependencies, then launching a single script. The README covers installation steps for Windows, Linux, and MacOS, including notes for machines with Intel GPUs or Apple Silicon. A Google Colab notebook is also available for people who prefer not to install anything locally. The code integrates with the Hugging Face Diffusers library, which is a widely used toolkit for working with AI image-generation models. Training scripts for those who want to create their own consistency-distilled model are included in a dedicated subfolder. Community-built extensions for popular interfaces like SD-WebUI and ComfyUI are linked from the README as well, though those live in separate repositories maintained by outside contributors. The project is rooted in academic research and links to two papers that explain the underlying method in detail. It is best suited for developers or researchers with a Python environment and a compatible GPU, though CPU-only inference on Windows and Linux is also supported via a linked third-party tool.
← luosiallen on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.