whatmodel.sh / image / SDXL-Lightning (4-step UNet)

SDXL-Lightning (4-step UNet) is an open-weights image model from ByteDance, released February 2024. Its published size is 2.57B parameters. Licence: openrail++.

Catalogue identity notes

ByteDance/SDXL-Lightning sdxl_lightning_4step_unet.safetensors on SDXL 1.0 base (the 1/2/8-step checkpoints are distinct and not mapped). Memory estimated as for SDXL 1.0.

Model information sources

· Parameter count ↗

UNet only: OUR COUNT from the safetensors header of the official 4-step UNet checkpoint (2,567,463,684 F16; SDXL UNet architecture). The HF API gives no total for this multi-checkpoint repo. The two CLIP text encoders and the VAE are not included. Observed 2026-10-07.

36.9±3.1#114 of 144 image modelsfrom 2 benchmark results across 2 sources* thinly tested, treat the rank as provisional

Score within the LMArena text-to-image comparison set only.

$ how it compares

The image models ranked either side of SDXL-Lightning (4-step UNet), out of 197 with a score, then more from ByteDance.

#modelscorewhereRAMreleased
154NextStep-1-Large-Edit StepFun37±3comparison only2025-08
155Step1X-Edit v1.0 StepFun37±4comparison only2025-04
156SDXL-Lightning (4-step UNet) ByteDance37±3local~4.9GB2024-02
157Kandinsky 2.2 AI Forever37±5local~12GB2023-07
158Janus-Pro-1B DeepSeek36±4api $0.0005/image +local~5.5GB2025-01
more from ByteDance
30Seedream 4.5 ByteDance64±1api $0.040/image
129UNO ByteDance43±4local~16GB2025-04

see all image models · find the ones that fit your machine

$ what it's good at

text to image▂▅▅▃▄▄█▃▁▂▁▁ #93 of 126 * · 74% of its score · 1 test

Beats Latent Diffusion text2img-large (LDM-KL-8-G, LAION-400M), VQ-Diffusion (ITHQ), Stable Diffusion XL 0.9 (base) here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
GenAI-Arena text-to-image (Elo, 4 Jun 2024)1053.0 ✎▃▃··▃·▃·█·▃▃ beats 5/8avg 1237▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 74%sharp
other tests1 not in a task · 22% of its score
testresultvs the others in its rundifficultycountswhy
MS-COCO 10K FID (whole image) ↓ (SDXL-Lightning protocol) lab22.3000 FID ✎█··██······█ beats 1/3avg 11.695 FID▇▇▇▇▇▇▇▇▇ 22%typical

$ where to run it

Other ways to run it

version

  1. Run it as published · needs ~8.9 GB, NVIDIA only · from huggingface.co/ByteDance (official)
    uv run --with diffusers --with transformers --with accelerate --with torch --with safetensors python -c "import torch; from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel, EulerDiscreteScheduler; from huggingface_hub import hf_hub_download; from safetensors.torch import load_file; b='stabilityai/stable-diffusion-xl-base-1.0'; u=UNet2DConditionModel.from_config(b, subfolder='unet').to('cuda', torch.float16); u.load_state_dict(load_file(hf_hub_download('ByteDance/SDXL-Lightning', 'sdxl_lightning_4step_unet.safetensors'), device='cuda')); p=StableDiffusionXLPipeline.from_pretrained(b, unet=u, torch_dtype=torch.float16, variant='fp16').to('cuda'); p.scheduler=EulerDiscreteScheduler.from_config(p.scheduler.config, timestep_spacing='trailing'); p('a cat holding a sign', num_inference_steps=4, guidance_scale=0).images[0].save('out.png')"

Official weights and documentation: huggingface.co/ByteDance ↗

$ how the score was worked out · GenAI Arena: An Open Evaluati… 74%, SDXL-Lightning: Progressive A… 22%

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

sourceresultsshare of the scorelicence
GenAI Arena: An Open Evaluation Platform for Generative Models (arXiv v3)1▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 74%CC-BY-4.0
SDXL-Lightning: Progressive Adversarial Diffusion Distillation (arXiv:2402.13929v3) · lab-reported1▇▇▇▇▇▇ 22%CC-BY-4.0
prior · pull toward the middle▇ 4%
weighted average= 36.9

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json