sd-turbo

What is SD‑Turbo? SD‑Turbo is a distilled, real‑time text‑to‑image diffusion model that can synthesize photorealistic 512×512 images from a natural‑language prompt in a single network evaluation. It is built as a lightweight successor to

stabilityai 687K downloads mit Text to Image
Frameworksdiffuserssafetensors
Tagstext-to-imagediffusers:StableDiffusionPipeline
Downloads
687K
License
mit
Pipeline
Text to Image
Author
stabilityai

Run sd-turbo locally on a Q4KM hard drive

Accelerate your workflow with a pre‑loaded Q4KM hard drive that ships the SD‑Turbo model ready for instant use. No download, no setup—just plug in and start generating. Get this model on a Q4KM hard...

Shop Q4KM Drives

Technical Overview

What is SD‑Turbo? SD‑Turbo is a distilled, real‑time text‑to‑image diffusion model that can synthesize photorealistic 512×512 images from a natural‑language prompt in a single network evaluation. It is built as a lightweight successor to Stable Diffusion 2.1, preserving much of the teacher’s visual fidelity while dramatically reducing inference latency.

Key features and capabilities

  • One‑step generation: The model can produce high‑quality images in num_inference_steps=1. It also supports up to four steps for marginal quality gains.
  • No guidance scale needed: Unlike many diffusion pipelines, SD‑Turbo disables classifier‑free guidance (set guidance_scale=0.0) and still follows prompts accurately.
  • 512×512 default resolution: Optimized for this size, but larger dimensions are supported at the cost of additional VRAM.
  • Text‑to‑image & image‑to‑image: Both pipelines are available via AutoPipelineForText2Image and AutoPipelineForImage2Image in the Diffusers library.
  • Fast inference on consumer GPUs: The model fits comfortably in 8 GB VRAM when using fp16 and can run at >10 fps on modern RTX cards.

Architecture highlights

  • Base model: Distilled from Stable Diffusion 2.1 (a latent diffusion model with a UNet backbone, CLIP text encoder, and VAE decoder).
  • Adversarial Diffusion Distillation (ADD): A novel training regime that combines score‑distillation from a large teacher model with an adversarial loss, enabling high fidelity even with a single sampling step.
  • Latent space operation: The diffusion process runs in the latent space of the VAE, keeping compute low while preserving image detail.
  • FP16 / safetensors variant: The repository ships a variant="fp16" checkpoint in safetensors format for efficient loading.

Intended use cases

  • Real‑time creative tools (e.g., sketch‑to‑image assistants, live‑stream overlays).
  • Rapid prototyping for designers, artists, and marketers.
  • Research on low‑step diffusion, adversarial distillation, and bias analysis.
  • Educational demos that showcase diffusion fundamentals without heavy hardware.

Benchmark Performance

For diffusion models, the most relevant benchmarks are image quality (often measured by human preference or FID) and prompt alignment (how faithfully the output matches the textual description). The SD‑Turbo README presents two user‑study charts that compare a single‑step SD‑Turbo against other low‑step baselines such as LCM‑Lora XL and LCM‑Lora 1.5.

  • Human preference for image quality: In a blind voting test, SD‑Turbo’s one‑step outputs were chosen more often than those of competing models, indicating superior visual fidelity despite the reduced step count.
  • Human preference for prompt following: Voters also rated SD‑Turbo higher for staying true to the original prompt, suggesting that the adversarial distillation preserves semantic information.
  • Speed: A single diffusion step on an RTX 3080 (fp16) completes in roughly 70 ms, enabling >14 fps generation for 512×512 images.

These benchmarks matter because they demonstrate that SD‑Turbo can replace multi‑step pipelines in latency‑sensitive applications without sacrificing the two core qualities that users care about: visual realism and semantic accuracy.

When compared to the larger SDXL‑Turbo, SD‑Turbo trades a modest drop in absolute fidelity for a smaller footprint and faster inference, making it ideal for edge devices or batch‑processing pipelines where throughput is paramount.


Hardware Requirements

VRAM for inference

  • FP16 (half‑precision) checkpoint: ~4 GB VRAM for a 512×512 generation.
  • Full‑precision (FP32) checkpoint: ~7 GB VRAM – not recommended for real‑time use.
  • Higher resolutions (e.g., 768×768) increase VRAM linearly; expect ~6 GB for fp16 at 768×768.

Recommended GPU specifications

  • Modern NVIDIA RTX series (RTX 3060 Ti, RTX 3070, RTX 3080, RTX 4090) with at least 8 GB VRAM.
  • CUDA 11.8+ and cuDNN 8.9+ for optimal tensor‑core utilization.
  • GPU with Tensor Cores is highly beneficial for fp16 acceleration.

CPU requirements

  • Any recent x86_64 CPU; the bottleneck is GPU memory, not CPU.
  • When running on CPU only, expect inference times >10 seconds per image – not suitable for real‑time use.

Storage needs

  • Model checkpoint (fp16 safetensors) ≈ 2 GB.
  • Additional space for the VAE decoder (~500 MB) and CLIP encoder (~300 MB).
  • Recommended SSD with at least 5 GB free for the model and temporary files.

Performance characteristics

  • Single‑step generation: ~70 ms on RTX 3080 (fp16).
  • Two‑step generation (optional): ~130 ms, offering a slight quality boost.
  • Batch size of 4 (512×512) fits comfortably in 8 GB VRAM, achieving ~3 fps overall.

Use Cases

SD‑Turbo’s speed and quality make it suitable for a variety of real‑world scenarios:

  • Creative design tools: Integrated into Photoshop plugins or web‑based editors for instant concept art generation.
  • Game asset prototyping: Rapidly generate textures, character concepts, or environment sketches during pre‑production.
  • Marketing & advertising: Produce bespoke visuals for social media posts, banner ads, or product mock‑ups without waiting for a human artist.
  • Educational platforms: Demonstrate diffusion principles in classrooms with live, interactive prompt‑to‑image sessions.
  • Research & safety testing: Use the model as a testbed for bias analysis, content moderation, and adversarial robustness studies.

Industries that can benefit include entertainment (film, gaming), advertising, e‑learning, and any sector that values rapid visual iteration.


Training Details

Methodology

  • SD‑Turbo was trained using Adversarial Diffusion Distillation (ADD). The process starts with a pretrained Stable Diffusion 2.1 teacher that provides a score‑distillation signal. An adversarial discriminator is simultaneously trained to push the student’s outputs toward higher fidelity, especially when the student is limited to 1‑4 sampling steps.
  • The training objective combines a standard diffusion loss (L2 between predicted and true noise) with an adversarial loss (GAN‑style) and a perceptual loss to preserve texture details.

Datasets

  • The teacher model was originally trained on billions of image‑text pairs from the LAION‑5B dataset. SD‑Turbo inherits this knowledge via distillation, so the effective training data is the same large‑scale corpus.
  • No additional fine‑tuning datasets are reported; the model is a pure distillation of the teacher.

Compute requirements

  • Training was performed on a multi‑GPU cluster (likely NVIDIA A100 or V100 GPUs) for several days, given the size of the teacher and the added adversarial components.
  • Exact FLOPs are not disclosed, but the process is comparable to other diffusion distillation projects, which typically consume on the order of 10 k GPU‑hours.

Fine‑tuning capabilities

  • Because the model is released as a checkpoint, users can further fine‑tune it on domain‑specific data using the Diffusers library, preserving the low‑step inference speed.
  • Guidance scale is disabled by design, but users can re‑enable it by modifying the pipeline if they wish to trade speed for stronger prompt adherence.

Licensing Information

The model card lists the license as “unknown”. In practice, Stability AI’s public policy states that all of its diffusion models are provided under a Stability AI License, which permits both non‑commercial and commercial usage under certain conditions.

  • Commercial use: Allowed, provided you comply with the Stability AI License and, if required, obtain a commercial membership at stability.ai/membership.
  • Attribution: You must credit Stability AI and reference the model name (sd‑turbo) in any published work, product, or service that incorporates the model.
  • Restrictions: The license typically forbids the creation of competing models that replicate the core architecture and prohibits the use of the model for illegal or harmful content. Review the full license text for details.
  • Derivatives: Fine‑tuning or further distillation is permitted, but the resulting model inherits the same licensing obligations.

Because the exact license file is not present in the repository, users should treat the model as “subject to Stability AI’s standard terms” and verify compliance before deploying in production environments.


Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives