alt.freeweights.image / stable-diffusion-xl-refiner-1.0
From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.imageSubject:

stable-diffusion-xl-refiner-1.0

Date: 2026-11-15Commit: 5d4cfe8Signed: 2DC28CC7B26A283B ✓

Image to image model with 2.3B parameters. Safetensors weights, 30.9 GB in all. Published by stabilityai under OpenRAIL++-M (custom).

2.3B params30.9GBstable-diffusion-xl-refiner-1.0safetensorscustom terms
FactsParams2.3BSize30.9 GBFormatssafetensorsTaskimage to imageLicenseOpenRAIL++-M (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get stabilityai/stable-diffusion-xl-refiner-1.0
# manifest sha256 1be6ddc6e677… · 30.9 GB · 26 files
$ fw verify ./stable-diffusion-xl-refiner-1.0 stabilityai/stable-diffusion-xl-refiner-1.0
From sourceHosted (signed)stabilityai/stable-diffusion-xl-refiner-1.0Last check: 2026-11-15 00:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
30.9 GB
Weights
30.9 GB (safetensors)
Parameters
2.3B
Formats
safetensors
Task
image to image
License
OpenRAIL++-M (custom) (custom)
Files
26, each with a sha256
Publisher
stabilityai
Added
2026-11-15
Section
alt.freeweights.image
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 00:25 UTCpassed

Model card

From the publisher at commit 5d4cfe8. Shown as plain text with links; images open at the publisher.

SD-XL 1.0-refiner Model Card#

Image: row01

Model#

Image: pipeline

SDXL consists of an ensemble of experts pipeline for latent diffusion: In a first step, the base model (available here: https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) is used to generate (noisy) latents, which are then further processed with a refinement model 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#
Model Sources#

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

Evaluation#

Image: comparison 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.18.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

Yon can then use the refiner to improve images.

import torch
from diffusers import StableDiffusionXLImg2ImgPipeline
from diffusers.utils import load_image

pipe = StableDiffusionXLImg2ImgPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-refiner-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
)
pipe = pipe.to("cuda")
url = "https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/aa_xl/000000009.png"

init_image = load_image(url).convert("RGB")
prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt, image=init_image).images

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 advanced use cases, please have a look at the docs.

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.

Files

26 files · 30.9 GBWeights 30.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 26 files with their sha256
FileSizesha256
.gitattributes1.56 KBef770cfcc4f91641d93abd1119da54bb7af0708aee11fd90ce5575b2b908fba7
01.png5.35 MB8fe56c6b7fffb7244dced398592b11443043d04431ab1907dc89cba5eb7fe72a
LICENSE.md14.1 KB19b6998b569b53ac1fc2158a8a3202c8699a9a4605b47075715d9c96be7fb6d0
README.md5.54 KB5859612ff210d6acfb57c932c3693cddd0d58b91b9de70f1c156c958f9bbfe3d
comparison.png130 KB236672de00184fca58a7437e01cc229819f7c7eae7f331770bc38cca547d7e0f
model_index.json612 Bfd8505d561ba844819c270a183d383fcdb2737858f5a4d0a9ffa29b4ffe99170
pipeline.png80.2 KBbbd01b409416c75d486caaeefea3e4b79b91b4262fc87007452ed1ee6ca1cc05
scheduler/scheduler_config.json479 Baf3e45a949aff8b8341ab8b811429ec03fee857a700a1d9477363e4fff9666e2
sd_xl_refiner_1.0.safetensors6.08 GB7440042bbdc8a24813002c09b6b69b64dc90fded4472613437b7f55f9b7d9c5f
sd_xl_refiner_1.0_0.9vae.safetensors6.08 GB8d0ce6c016004cbdacd50f937dad381d8c396628d621a7f97191470532780164
text_encoder_2/config.json575 Ba892d1c3a69a7e9247a24de2bc1d5891e3109a54696e53be20093af671072c34
text_encoder_2/model.fp16.safetensors1.39 GBec310df2af79c318e24d20511b601a591ca8cd4f1fce1d8dff822a356bcdb1f4
text_encoder_2/model.safetensors2.78 GB3a6032f63d37ae02bbc74ccd6a27440578cd71701f96532229d0154f55a8d3ff
tokenizer_2/merges.txt525 KB9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
tokenizer_2/special_tokens_map.json460 Bf118ab3a983206e4f32583448de6bd6aae4ee21869135cef1f5848a753cdaab6
tokenizer_2/tokenizer_config.json725 Bc9d23941f76a41cbd50eda9290f57be7828f0a7a677939e9ef181f7e12bd1bdf
tokenizer_2/vocab.json1.06 MBe089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349
unet/config.json1.71 KB223a875f1fdc4156ef56c2db6ffd37c7871998da8416e1d4dd1f59649acb58ac
unet/diffusion_pytorch_model.fp16.safetensors4.52 GB3ea0376dcf065eaefd27806394a90e310001b1a71d4f1cf1f655e86c0e566ffe
unet/diffusion_pytorch_model.safetensors9.04 GB54f9cd2f2daf3aeec0b2708fa3dbc0e84e4f8ddd1ddead42e5bc60c6572c989f
vae/config.json642 B0b331c8ac22ded5f9997a144a575c1d113d6169aff262c353f39015bd24a6264
vae/diffusion_pytorch_model.fp16.safetensors167 MBbcb60880a46b63dea58e9bc591abe15f8350bde47b405f9c38f4be70c6161e68
vae/diffusion_pytorch_model.safetensors335 MB1598f3d24932bcfe6634e8b618ea1e30ab1d57f5aad13a6d2de446d2199f2341
vae_1_0/config.json607 B89a914a415bc3211fe15306c5b1d89774d928d6cc6c91dc8e86208710829355c
vae_1_0/diffusion_pytorch_model.fp16.safetensors167 MBeb6516ab7e1104d5d1a174a4d65c57835ae38061531d0a2192103aecfb790cc1
vae_1_0/diffusion_pytorch_model.safetensors335 MB27ed3b02e09638568e99d4398c67bc654dde04e6c0db61fb2d21dba630e7058a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5d4cfe854c pinned now2026-11-15 00:25 UTC26 files · 30.9 GB

Use it

# custom terms: read the license before you download
$ fw get stabilityai/stable-diffusion-xl-refiner-1.0
# manifest sha256 1be6ddc6e677… · 30.9 GB · 26 files
$ fw verify ./stable-diffusion-xl-refiner-1.0 stabilityai/stable-diffusion-xl-refiner-1.0
Terms that come with these files. OpenRAIL++-M: the use restrictions in Attachment A pass on to you and to anyone you share the model with. Keep a copy of the license with the files.
Custom license (custom). Read the license text first. Open this panel to show the commands once you accept its terms.
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/stabilityai/stable-diffusion-xl-refiner-1.0.json --dir ./stable-diffusion-xl-refiner-1.0 $ python3 fw.py verify ./stable-diffusion-xl-refiner-1.0 ./stabilityai__stable-diffusion-xl-refiner-1.0.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/stable-diffusion-xl-refiner-1.0 --revision 5d4cfe854c9a9a87939ff3653551c2b3c99a4356 --local-dir ./stable-diffusion-xl-refiner-1.0
diffusersRun the pipeline with diffusers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from diffusers import DiffusionPipeline pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", revision="5d4cfe854c9a9a87939ff3653551c2b3c99a4356")
Packaged for ComfyUI. Most image, video and music models run in ComfyUI . Check the publisher's page for the workflow. Freeweights does not host it.

License

Name
CreativeML Open RAIL++-M
Id
LicenseRef-OpenRAIL++-M
Class
Custom terms
Redistribution
click-through
Listing
Hosted (signed)
Terms
OpenRAIL++-M: the use restrictions in Attachment A pass on to you and to anyone you share the model with. Keep a copy of the license with the files.
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE.md
Text sha256
19b6998b569b53ac1fc2158a8a3202c8699a9a4605b47075715d9c96be7fb6d0
Terms gate
Yes. The commands stay folded until you open them after reading the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.imageSubject: stable-diffusion-xl-refiner-1.0Date: 2026-11-15Commit: 5d4cfe8Signed: 2DC28CC7B26A283B ✓
Upstream
stabilityai/stable-diffusion-xl-refiner-1.0
Pinned commit
5d4cfe854c9a9a87939ff3653551c2b3c99a4356
Manifest
stable-diffusion-xl-refiner-1.0.json · .minisig
Manifest sha256
1be6ddc6e6777314c49d3b100f7a5268d55d5b4d6ad7bc9c6630c181a9c1120d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 00:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/stabilityai/stable-diffusion-xl-refiner-1.0.json $ curl -O https://freeweights.allternit.com/manifests/stabilityai/stable-diffusion-xl-refiner-1.0.json.minisig $ minisign -Vm stable-diffusion-xl-refiner-1.0.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Read license, then download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/stable-diffusion-xl-refiner-1.0
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. stable-diffusion-xl-refiner-1.0.json. Provenance. Takedown history: none.
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Boogu-Image
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-HD
From: lodestones <huggingface.co/lodestones>Subject: Chroma1-HD
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-Radiance
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: ERNIE-Image
From: baidu <huggingface.co/baidu>Subject: ERNIE-Image