Quickstart Guide to SD(XL) Turbo

Last UpdatedChanges
11/29/2023First version published
11/30/2023New ComfyUI Nodes
12/8/2023Updates!

What is SD(XL) Turbo?

SDXL Turbo is a newly released (11/28/23) “distilled” version of SDXL 1.0, trained for, per Stability AI, “real-time synthesis” – that is – generating images extremely quickly. It’s based on a new training method called Adversarial Diffusion Distillation (ADD), and essentially allows coherent images to be formed in very few steps – even as low as one or two.

There’s now an even faster Turbo version based on SD 2.1 (512×512), called SD Turbo, which can drastically increase image generation speed, and we’re hearing rumors of an SD 1.5 based Turbo model which would outstrip any previous Turbo iteration!

Why should I be excited by SDXL Turbo?

The use-case for SDXL Turbo is similar to that of the LCM LoRA/architecturesuper-fast inference. There’s a speed/quality trade-off, but if you need to churn out hundreds of images in seconds; this is a viable option.

More exciting than Stability’s base model are the developments coming from the Civitai Community. Creator SoCalGuitarist has created the first super-fast SDXL model, based on the SDXL Turbo architecture, which allows for fast generations at normal SDXL image dimensions, and quality.

Real-time prompting with SDXL Turbo (Windows, RTX 4090)
Image generation at ~100 frames/images per second with SD Turbo
SDXL image quality comparison
sdxl prompt alignment comparison

Charts, from this study, indicating user preference, versus similar models tuned for high inference speed.

How can I use SD Turbo & SDXL Turbo?

You can download the SDXL Turbo models from Civitai here, and drop them into either ComfyUI or Automatic1111. You’ll see a speed boost in Automatic1111, but for the greatest results you’ll need to update ComfyUI – new nodes were added on 11/29 to take full advantage of SDXL Turbo.

Model NameCivitai LinkOriginal Source
SDXL Turbo (Full)LinkLink
SDXL Turbo (Pruned, fp16)LinkLink
SD TurboLinkLink

SDXL Turbo is also available on StabilityAI’s Clipdrop image generation service.

Workflows & Suggested Settings

The following workflow is an extremely basic txt2img workflow, set up for SDXL Turbo. There’s no upscaling; it’s purely designed for speed of image generation.

SettingSuggested Value
Latent Image Width512
Latent Image Height512
Steps1-5
CFG1-2.5
SamplerEuler a, LCM

Note: if using Automatic1111, install the AnimateDiff extension which will add the LCM sampler.

We can use Turbo in a variety of super-entertaining ways, including incorporating Creator ToyXYZ’s Webcam Capture nodes, to overpaint ourselves in near real-time;

Webcam Capture + SDXL Turbo (RTX 4090)

Output Examples

Below are a number of images generated using the SDXL Turbo base model, and TurboVisionXL, along with their generation parameters and time-to-generate, on an RTX 4090 GPU.

  • Model: SDXL Turbo Pruned (fp16)
  • Dimensions: 512×512
  • Steps: 1
  • CFG: 1
  • Scheduler: Euler a
  • Generation Time: ~0.3 seconds

  • Model: SDXL Turbo Pruned (fp16)
  • Dimensions: 512×512
  • Steps: 1
  • CFG: 1
  • Scheduler: Euler a
  • Generation Time: ~0.3 seconds

  • Model: SDXL Turbo Pruned (fp16)
  • Dimensions: 512×512
  • Steps: 1
  • CFG: 1
  • Scheduler: Euler a
  • Generation Time: ~0.3 seconds
  • Model: SDXL Turbo Pruned (fp16)
  • Dimensions: 512×768
  • Steps: 1
  • CFG: 1
  • Scheduler: Euler a
  • Generation Time: ~0.4 seconds
  • Model: SDXL TurboVisionXL
  • Dimensions: 1024×1024
  • Steps: 9
  • CFG: 1.7
  • Scheduler: Euler a
  • Generation Time: ~0.7 seconds
  • Model: SDXL TurboVisionXL
  • Dimensions: 1024×1024
  • Steps: 8
  • CFG: 1.7
  • Scheduler: Euler a
  • Generation Time: ~0.7 seconds

Limitations

  • This model uses Stability AI’s Non-Commercial Research Community Licence, allowing for research and non-commercial use only.
  • The native output of the SDXL Turbo model is 512×512 pixels.
  • The model cannot render text.
  • Faces, and people in general, can be funky!

The Future

We’ll continue to expand this quickstart guide with more information as it becomes available!