AI SeedbankHelp preserve open and free AI for humanity's future

← All models

stabilityai_stable-diffusion-xl-base-1.0

stabilityai · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: openrail++ tags:

  • text-to-image
  • stable-diffusion

SD-XL 1.0-base Model Card

Model

SDXL consists of an ensemble of experts pipeline for latent diffusion: In a first step, the base model is used to generate (noisy) latents, which are then further processed with a refinement model (available here: https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/) specialized for the final denoising steps. Note that the base model can be used as a standalone module.

Alternatively, we can use a two-stage pipeline as follows: First, the base model is used to generate latents of the desired output size. In the second step, we use a specialized high-resolution model and apply a technique called SDEdit (https://arxiv.org/abs/2108.01073, also known as "img2img") to the latents generated in the first step, using the same prompt. This technique is slightly slower than the first one, as it requires more function evaluations.

Source code is available at https://github.com/Stability-AI/generative-models .

Model Description

  • Developed by: Stability AI
  • Model type: Diffusion-based text-to-image generative model
  • License: CreativeML Open RAIL++-M License
  • Model Description: This is a model that can be used to generate and modify images based on text prompts. It is a Latent Diffusion Model that uses two fixed, pretrained text encoders (OpenCLIP-ViT/G and CLIP-ViT/L).
  • Resources for more information: Check out our GitHub Repository and the SDXL report on arXiv.

Model Sources

For research purposes, we recommend our generative-models Github repository (https://github.com/Stability-AI/generative-models), which implements the most popular diffusion frameworks (both training and inference) and for which new functionalities like distillation will be added over time. Clipdrop provides free SDXL inference.

  • Repository: https://github.com/Stability-AI/generative-models
  • Demo: https://clipdrop.co/stable-diffusion

Evaluation

The chart above evaluates user preference for SDXL (with and without refinement) over SDXL 0.9 and Stable Diffusion 1.5 and 2.1. The SDXL base model performs significantly better than the previous variants, and the model combined with the refinement module achieves the best overall performance.

🧨 Diffusers

Make sure to upgrade diffusers to >= 0.19.0:

pip install diffusers --upgrade

In addition make sure to install transformers, safetensors, accelerate as well as the invisible watermark:

pip install invisible_watermark transformers accelerate safetensors

To just use the base model, you can run:

from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
pipe.to("cuda")

# if using torch < 2.0
# pipe.enable_xformers_memory_efficient_attention()

prompt = "An astronaut riding a green horse"

images = pipe(prompt=prompt).images[0]

To use the whole base + refiner pipeline as an ensemble of experts you can run:

from diffusers import DiffusionPipeline
import torch

# load both base & refiner
base = DiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
)
base.to("cuda")
refiner = DiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-refiner-1.0",
    text_encoder_2=base.text_encoder_2,
    vae=base.vae,
    torch_dtype=torch.float16,
    use_safetensors=True,
    variant="fp16",
)
refiner.to("cuda")

# Define how many steps and what % of steps to be run on each experts (80/20) here
n_steps = 40
high_noise_frac = 0.8

prompt = "A majestic lion jumping from a big stone at night"

# run both experts
image = base(
    prompt=prompt,
    num_inference_steps=n_steps,
    denoising_end=high_noise_frac,
    output_type="latent",
).images
image = refiner(
    prompt=prompt,
    num_inference_steps=n_steps,
    denoising_start=high_noise_frac,
    image=image,
).images[0]

When using torch >= 2.0, you can improve the inference speed by 20-30% with torch.compile. Simple wrap the unet with torch compile before running the pipeline:

pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)

If you are limited by GPU VRAM, you can enable cpu offloading by calling pipe.enable_model_cpu_offload instead of .to("cuda"):

- pipe.to("cuda")
+ pipe.enable_model_cpu_offload()

For more information on how to use Stable Diffusion XL with diffusers, please have a look at the Stable Diffusion XL Docs.

Optimum

Optimum provides a Stable Diffusion pipeline compatible with both OpenVINO and ONNX Runtime.

OpenVINO

To install Optimum with the dependencies required for OpenVINO :

pip install optimum[openvino]

To load an OpenVINO model and run inference with OpenVINO Runtime, you need to replace StableDiffusionXLPipeline with Optimum OVStableDiffusionXLPipeline. In case you want to load a PyTorch model and convert it to the OpenVINO format on-the-fly, you can set export=True.

- from diffusers import StableDiffusionXLPipeline
+ from optimum.intel import OVStableDiffusionXLPipeline

model_id = "stabilityai/stable-diffusion-xl-base-1.0"
- pipeline = StableDiffusionXLPipeline.from_pretrained(model_id)
+ pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id)
prompt = "A majestic lion jumping from a big stone at night"
image = pipeline(prompt).images[0]

You can find more examples (such as static reshaping and model compilation) in optimum documentation.

ONNX

To install Optimum with the dependencies required for ONNX Runtime inference :

pip install optimum[onnxruntime]

To load an ONNX model and run inference with ONNX Runtime, you need to replace StableDiffusionXLPipeline with Optimum ORTStableDiffusionXLPipeline. In case you want to load a PyTorch model and convert it to the ONNX format on-the-fly, you can set export=True.

- from diffusers import StableDiffusionXLPipeline
+ from optimum.onnxruntime import ORTStableDiffusionXLPipeline

model_id = "stabilityai/stable-diffusion-xl-base-1.0"
- pipeline = StableDiffusionXLPipeline.from_pretrained(model_id)
+ pipeline = ORTStableDiffusionXLPipeline.from_pretrained(model_id)
prompt = "A majestic lion jumping from a big stone at night"
image = pipeline(prompt).images[0]

You can find more examples in optimum documentation.

Uses

Direct Use

The model is intended for research purposes only. Possible research areas and tasks include

  • Generation of artworks and use in design and other artistic processes.
  • Applications in educational or creative tools.
  • Research on generative models.
  • Safe deployment of models which have the potential to generate harmful content.
  • Probing and understanding the limitations and biases of generative models.

Excluded uses are described below.

Out-of-Scope Use

The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.

Limitations and Bias

Limitations

  • The model does not achieve perfect photorealism
  • The model cannot render legible text
  • The model struggles with more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
  • Faces and people in general may not be generated properly.
  • The autoencoding part of the model is lossy.

Bias

While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:4ea63ccf5f1fe277d4fcce8e01f331272bdee825&dn=stabilityai_stable-diffusion-xl-base-1.0

Open magnet in torrent client · infohash 4ea63ccf5f1fe277d4fcce8e01f331272bdee825

Files & hashes

PathSizesha1sha256
01.png4.4 MB (4,608,613 B)051128bc99d660934b71f86a9a49e1e45b188e75f40474e9ef8787d8209c275ade4254fc544dce290922b2e07650911ea255530c
LICENSE.md13.8 KB (14,109 B)af7e355e31c0d976933aa0d06759611151ad8c3919b6998b569b53ac1fc2158a8a3202c8699a9a4605b47075715d9c96be7fb6d0
README.md8.5 KB (8,668 B)3de812966870aa7122954891ce74faabc77335a940d263065b8a3e9a41996c257e11463fd97ae956ebf4e3f8b9625e0d78183893
comparison.png127.2 KB (130,252 B)b66e414aae477b4cab71afecdb09c72ce4d40641236672de00184fca58a7437e01cc229819f7c7eae7f331770bc38cca547d7e0f
model_index.json609 B (609 B)6cc5138ddb67e9309c9b4e058e33e52087f1d2156d7b93508390ab91ac5bfbe4aeb4dc2d83f7bb1b05fb069d714b5b0c75f70d44
pipeline.png78.3 KB (80,188 B)6b1b855d1990dae016602a5855581b4c23cee376bbd01b409416c75d486caaeefea3e4b79b91b4262fc87007452ed1ee6ca1cc05
scheduler/scheduler_config.json479 B (479 B)e5bc8421e047838523be7acfb6720f167f7382f6af3e45a949aff8b8341ab8b811429ec03fee857a700a1d9477363e4fff9666e2
sd_xl_base_1.0.safetensors6.46 GB (6,938,078,334 B)2a44fcf3fa12f0864099c090f80cc5e89a52fef231e35c80fc4829d14f90153f4c74cd59c90b779f6afe05a74cd6120b893f7e5b
sd_xl_base_1.0_0.9vae.safetensors6.46 GB (6,938,078,334 B)34538495e45954c28f3e588b329ced25da395241e6bb9ea85bbf7bf6478a7c6d18b71246f22e95d41bcdd80ed40aa212c33cfeff
sd_xl_offset_example-lora_1.0.safetensors47.3 MB (49,553,604 B)fe458263d72d3ef8b1fad0d2d896fae9d4213e684852686128f953d0277d0793e2f0335352f96a919c9c16a09787d77f55cbdf6f
text_encoder/config.json565 B (565 B)cde352ada4bb95fdad2fc503b8121257cef215a639b8b2e4b1949e36969caa425b6c81c68bace99198dd9078ce05d16ad401fe7f
text_encoder/model.fp16.safetensors234.7 MB (246,144,152 B)8d19e655ec09629d4ae2c231e7391368c0a867d4660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd
text_encoder/model.safetensors469.5 MB (492,265,168 B)fcc3417d15e22093b4c9fdb75ff47f1568f4cf3a5c3d6454dd2d23414b56aa1b5858a72487a656937847b6fea8d0606d7a42cdbc
text_encoder/openvino_model.bin469.4 MB (492,242,672 B)747fd8c518c0f6d0c0907d0ab3b001825b62bc51bbc78395c8cee553a17380e9b1a9a47da926c98731ba31306032d7d45fadb29b
text_encoder/openvino_model.xml1.0 MB (1,057,789 B)b1dbeb4e024f81740dd66b1f3dc5a2e610f0c700ab5cf7327374d8c984f4e963564a329f92c9dad08dac9eee9b8dca86b912f1c9
text_encoder_2/config.json575 B (575 B)da1848b5ed17b676f021578838f12c4023b86379a892d1c3a69a7e9247a24de2bc1d5891e3109a54696e53be20093af671072c34
text_encoder_2/model.fp16.safetensors1.29 GB (1,389,382,176 B)10de4271d7dee04c4137d9699d0d836d9cdd4a83ec310df2af79c318e24d20511b601a591ca8cd4f1fce1d8dff822a356bcdb1f4
text_encoder_2/model.onnx_data2.59 GB (2,778,639,360 B)12f86c5f30101b673fc8fa2ef1b5ef5dc0527b813da7ac65349fbd092e836e3eeca2c22811317bc804fd70af157b4550f2d4bcb5
text_encoder_2/model.safetensors2.59 GB (2,778,702,264 B)0ce1455001c27c9951dc9c4dc81d953e75ace9703a6032f63d37ae02bbc74ccd6a27440578cd71701f96532229d0154f55a8d3ff
text_encoder_2/openvino_model.bin2.59 GB (2,778,640,120 B)5659e346a052de4c453eae6b8159b5e287cd9049549d05154b0c09d46226f85abd48552f0ef999af4f24a95b3fb62d5e7d059570
text_encoder_2/openvino_model.xml2.7 MB (2,790,191 B)df47189ff8222646a74883d466e587a42511fa1438f0a4ff68dd918b24908a264140c2ad0e057eca82616f75c17cbf4a099ad6ad
tokenizer/merges.txt512.3 KB (524,619 B)76e821f1b6f0a9709293c3b6b51ed90980b3166b9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
tokenizer/special_tokens_map.json472 B (472 B)2c2130b544c0c5a72d5d00da071ba130a9800fb2c4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac
tokenizer/tokenizer_config.json737 B (737 B)2e8612a429492973fe60635b3f44a28b065cfac019d7b034cb0cc3ce9766c2231373ab8aa8991fc72e2c8f76558bfaae3de0d563
tokenizer/vocab.json1.0 MB (1,059,962 B)469be27c5c010538f845f518c4f5e8574c78f7c8e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349
tokenizer_2/merges.txt512.3 KB (524,619 B)76e821f1b6f0a9709293c3b6b51ed90980b3166b9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
tokenizer_2/special_tokens_map.json460 B (460 B)ae0c5be6f35217e51c4c000fd325d8de0294e99cf118ab3a983206e4f32583448de6bd6aae4ee21869135cef1f5848a753cdaab6
tokenizer_2/tokenizer_config.json725 B (725 B)a8438e020c4497a429240d6b89e0bf9a6e2ffa92c9d23941f76a41cbd50eda9290f57be7828f0a7a677939e9ef181f7e12bd1bdf
tokenizer_2/vocab.json1.0 MB (1,059,962 B)469be27c5c010538f845f518c4f5e8574c78f7c8e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349
unet/config.json1.6 KB (1,680 B)c8714c90f0e2409156da42781954416cb7df36af30ebc70750223e59006f7f2b4e1e6c102570aa19a9c4ae3e1fbe7591332dbae6
unet/diffusion_pytorch_model.fp16.safetensors4.78 GB (5,135,149,760 B)510c3d9d1b2a825dfaeb5cfb72a7ad58ed509cd983e012a805b84c7ca28e5646747c90a243c65c8ba4f070e2d7ddc9d74661e139
unet/diffusion_pytorch_model.safetensors9.56 GB (10,270,077,736 B)2617b5a8cf5406e50bf65ff1eb98328730da4385357650fbfb3c7b4d94c1f5fd7664da819ad1ff5a839430484b4ec422d03f710a
unet/model.onnx_data9.56 GB (10,269,854,720 B)96f0aff1da9a667d2207dc77ca416640437b08e67905b71f0044c5ea8fea8ca0451bd73cad53492ad50f964c49c3ff9250afa350
unet/openvino_model.bin9.56 GB (10,269,856,428 B)0009784202156dce8ccec4a3d70d1ebe6c085aba2d586bcb83c004ab07f5899adcac3d46189afe058d6a581570f0a613a010d9ec
unet/openvino_model.xml21.5 MB (22,577,438 B)96c6ecfb3f11560c9d137d9f135b5cece81a7c1718955f96dffdba5612c4b554451f4ccc947c93e46df010173791654af4d0d7f6
vae/config.json642 B (642 B)a66a171ba7c8efb1a8fc3bdc64e65318eade8e130b331c8ac22ded5f9997a144a575c1d113d6169aff262c353f39015bd24a6264
vae/diffusion_pytorch_model.fp16.safetensors159.6 MB (167,335,342 B)8dd5be31b8505f3a37d6205d1a94d870827b5049bcb60880a46b63dea58e9bc591abe15f8350bde47b405f9c38f4be70c6161e68
vae/diffusion_pytorch_model.safetensors319.1 MB (334,643,268 B)394db2718ef8c821699bd13f6243bf37d30b68c51598f3d24932bcfe6634e8b618ea1e30ab1d57f5aad13a6d2de446d2199f2341
vae_1_0/config.json607 B (607 B)29a4d9ff621cd8e3b50d80eb10e08450187d29b889a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
vae_1_0/diffusion_pytorch_model.fp16.safetensors159.6 MB (167,335,342 B)11aa5df5367cc597440197b548c6f75be3be6205eb6516ab7e1104d5d1a174a4d65c57835ae38061531d0a2192103aecfb790cc1
vae_1_0/diffusion_pytorch_model.safetensors319.1 MB (334,643,268 B)770beef5fe1408a2b301a2ea6547c8899341198d27ed3b02e09638568e99d4398c67bc654dde04e6c0db61fb2d21dba630e7058a
vae_decoder/config.json607 B (607 B)29a4d9ff621cd8e3b50d80eb10e08450187d29b889a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
vae_decoder/openvino_model.bin188.8 MB (197,961,232 B)dc496ae2551c48e2ac5518ee3018105cca93b67934ea744ad1d75fb6b8825e31f5adbe7d62cbe2e7d061535b0a12e69c2f72d0f4
vae_decoder/openvino_model.xml968.9 KB (992,181 B)f34c23011ce9c094bb0093828846e37268068e97dd61f43e981282b77ecaecf5fc5c842d504932bae78ac99ec581cee50978b423
vae_encoder/config.json607 B (607 B)29a4d9ff621cd8e3b50d80eb10e08450187d29b889a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
vae_encoder/openvino_model.bin130.3 MB (136,655,184 B)cfa6efc9475d1386f98727dde31e0e9a4580c78997f04b0cf74808c7bd9b6e09f080e8cd24821943c3c06b153145989889215ce5
vae_encoder/openvino_model.xml830.0 KB (849,965 B)664c9e26027429d587a6f2eab17892a276aa3d7ca3ec36b6f3f74d0cb2b005b7c0a1e5426c5ef1e7163b33e463ea57fa049c5996

Cite this release

Canonical URL
https://aiseedbank.org/models/stabilityai_stable-diffusion-xl-base-1.0/
Slug
stabilityai_stable-diffusion-xl-base-1.0
Infohash
4ea63ccf5f1fe277d4fcce8e01f331272bdee825
License
openrail++
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: stabilityai_stable-diffusion-xl-base-1.0.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorystabilityai/stable-diffusion-xl-base-1.0
Revision (pinned)462165984030d82259a11f4367a4eed129e94a7b
Fetched at2026-09-04T05:55:00Z
License at fetchopenrail++
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T06:05:42Z

openrail++57.93 GB (62,201,525,785 bytes)diffusersonnxsafetensorstext-to-imagestable-diffusionendpoints_compatiblediffusers:StableDiffusionXLPipelinepaper: 2307.01952paper: 2211.01324paper: 2108.01073paper: 2112.10752