Beyond Pairwise Preferences: Listwise Reward-Aware Alignment for Diffusion Models
Paper • 2605.26491 • Published
How to use austin-k-wang/DiffusionLAIR-SD1.5 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("austin-k-wang/DiffusionLAIR-SD1.5", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]DiffusionLAIR SD1.5 is a preference-optimized fine-tune of Stable Diffusion v1.5. The UNet was fine-tuned using the Diffusion LAIR objective, while the text encoder, VAE, and other pipeline components were kept frozen.
runwayml/stable-diffusion-v1-5stable-diffusion-v1-5/stable-diffusion-v1-5451f4fe16113bff5a5d2269ed5ad43b0592e9a14StableDiffusionPipelineimport torch
from diffusers import StableDiffusionPipeline
model_id = "austin-k-wang/DiffusionLAIR-SD1.5"
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float16,
use_safetensors=True,
).to("cuda")
generator = torch.Generator(device="cuda").manual_seed(42)
image = pipe(
"A queen with red hair and a green and black dress stands veiled in a highly detailed and elegant digital painting.",
generator=generator,
guidance_scale=7.5,
num_inference_steps=30,
).images[0]
image.save("output.png")
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5