---
title: "Introducing Würstchen: Fast Diffusion for Image Generation"
description: "Würstchen is a text-to-image diffusion model whose text-conditional Prior (Stage C) runs in a latent space with 42x spatial compression, far beyond the usual 4-8x."
url: "https://swe.quest/articles/introducing-wurstchen-fast-diffusion-for-image-generation-7dba36d9df7944a1"
canonical: "https://huggingface.co/blog/wuerstchen"
source: "Hugging Face"
published: "2023-09-13"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["computer-vision","inference","python"]
---

# Introducing Würstchen: Fast Diffusion for Image Generation

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-09-13, 6 min read, Announcement. Original: [https://huggingface.co/blog/wuerstchen](https://huggingface.co/blog/wuerstchen)

## Summary

Würstchen is a text-to-image diffusion model whose text-conditional Prior (Stage C) runs in a latent space with 42x spatial compression, far beyond the usual 4-8x. Two decoder stages, a VQGAN (Stage A) and a Diffusion Autoencoder (Stage B), reconstruct images from that latent. The result is faster, lower-memory inference than SDXL and much cheaper training: 9,000 GPU hours for v1 and 24,602 for v2, against 150,000 for Stable Diffusion 1.4. The model is integrated into Diffusers, with example code for AutoPipeline inference, PyTorch 2 SDPA or xFormers attention, CPU offload and torch.compile, where compilation takes up to 2 minutes up front for faster runs afterwards.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- diffusion models basics
- PyTorch

## Keywords

Würstchen, Diffusers, Stable Diffusion XL, VQGAN, torch.compile, Flash Attention, xFormers

## Related posts

- [Stable Diffusion with 🧨 Diffusers](https://swe.quest/articles/stable-diffusion-with-diffusers-03ca8448e680e397.md): Hugging Face · 2022-08-22 · Medium · 15 min read · Computer vision, Inference & serving, Machine learning, Python
  Stable Diffusion is a latent diffusion model that denoises compressed 64×64 latents rather than pixels, combining a VAE, a text-conditioned U-Net with cross-attention, and a frozen CLIP text encoder.
- [State of open video generation models in Diffusers](https://swe.quest/articles/state-of-open-video-generation-models-in-diffusers-9770186e8fdb5a0a.md): Hugging Face · 2025-01-27 · Medium · 16 min read · Inference & serving, Computer vision, Video & media, Performance engineering, Model training
  Open video generation models such as HunyuanVideo, CogVideoX, LTX-Video, Mochi-1 and Allegro share a common architecture: T5-style text encoders, a DiT-based denoiser over 3D spatio-temporal tokens, a spatially and temporally compressing VAE, and a scheduler.
- [VQ-Diffusion](https://swe.quest/articles/vq-diffusion-60af6753b8809ca3.md): Hugging Face · 2022-11-30 · Hard · 7 min read · Computer vision, Machine learning, Python
  VQ-Diffusion is a conditional latent diffusion model whose noising and denoising run over a discrete VQ-VAE codebook rather than Gaussian noise.
- [Diffusers welcomes Stable Diffusion 3](https://swe.quest/articles/diffusers-welcomes-stable-diffusion-3-f6ced777e2fcbd47.md): Hugging Face · 2024-06-12 · Medium · 7 min read · Computer vision, Inference & serving, Model training, Python
  Stable Diffusion 3 Medium (2B parameters) is now usable through Diffusers.
- [Welcome FLUX.3 Image Klein in Diffusers](https://swe.quest/articles/welcome-flux-3-image-klein-in-diffusers-478c83816e6db758.md): Hugging Face · 2026-10-15 · Medium · 16 min read · Computer vision, Inference & serving, Model training, Python
  FLUX.3 Image Klein from Black Forest Labs is supported in Diffusers from launch.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
