Downloads · 30 days
110
3% of all-time downloads
sd-community/sdxl-flash-lora
sdxl-flash-lora is a text-to-image model from sd-community. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Downloads · 30 days
110
3% of all-time downloads
All-time downloads
3.3K
Public
Repo size
510 MB
Likes
13
Public
Click a slice to open those files.
.safetensors510 MB · 100%
From the Hugging Face model README

Introducing the new fast model SDXL Flash, we learned that all fast XL models work fast, but the quality decreases, and we also made a fast model, but it is not as fast as LCM, Turbo, Lightning and Hyper, but the quality is higher. Below you will see the study with steps and cfg.
<lora:sdxl-flash-lora:0.55>

pip install torch diffusers
import torch
from diffusers import StableDiffusionXLPipeline, DPMSolverSinglestepScheduler
# Load model.
pipe = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", torch_dtype=torch.float16).to("cuda")
# Ensure sampler uses "trailing" timesteps.
pipe.scheduler = DPMSolverSinglestepScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
# Image generation.
pipe("a happy dog, sunny day, realism", num_inference_steps=7, guidance_scale=3).images[0].save("output.png")