stabilityai · image

stable-diffusion-xl-base-1.0

stabilityai/stable-diffusion-xl-base-1.0

stable-diffusion-xl-base-1.0 at Q4_K_S is exactly 1,491,773,408 bytes (1.39 GiB / 1.49 GB) — an effective 4.648 bits per weight, not the nominal 4.

From the file· summed from 1 file(s)
Parameters
2.6B
Architecture
sdxl
Context
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_K_S1.39 GiB1,491,773,4084.648Old-Fisherman
Q5_K_S1.68 GiB1,808,194,5285.634Old-Fisherman

Pipeline components

a diffusion model is a graph of parts, not one file
ComponentSizeShareCan live on the CPU?
vae0.65 GiB2%no, must be resident
text encoder 26.47 GiB20%yes — the usual first VRAM saving
denoiser23.91 GiB74%no, must be resident
text encoder1.15 GiB4%yes — the usual first VRAM saving
Full pipeline32.18 GiBresident if nothing is offloaded

The parameter count published for a diffusion model describes the denoiser alone. Running it also requires its text encoder and VAE, and the text encoder is often nearly as large as the denoiser — which is why offloading it is the standard first move when you run out of memory. This repository also ships a single-file copy of the denoiser at its root; we count it once, not twice.

We publish component sizes here, not throughput. Community-submitted image-generation rates do exist for many GPUs and we show them on the hardware pages, but they aggregate runs at different resolutions, step counts and settings, so they cannot be attributed to one model. Peak memory during sampling is unmeasured by any public source, and we do not estimate it.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_S at roughly 1.35 GiB. The real file is 1.39 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

Architecture unavailable — this repository is gated and no ungated mirror was found. Exact file sizes above are still authoritative; only the KV math needs the config.

Questions people ask

How much VRAM does stable-diffusion-xl-base-1.0 need?
Q4_K_S is exactly 1,491,773,408 bytes (1.39 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
Which quantization of stable-diffusion-xl-base-1.0 should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.