I have only added vae, text enconders from Stability AI, consolidated the unet and converted to a single .safetensor file FP32 and BF16.
This repository contains the fine-tuned UNet weights from the Inversion-DPO method, built upon Stable Diffusion XL. The model has been trained using Direct Preference Optimization (DPO) techniques combined with inversion methods to improve generation quality and alignment.
1from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel
2import torch
3
4# Load the fine-tuned UNet
5unet = UNet2DConditionModel.from_pretrained(
6 "ezlee258258/Inversion-DPO",
7 subfolder="unet"
8)
9
10# Load the pipeline with the fine-tuned UNet
11pipe = StableDiffusionXLPipeline.from_pretrained(
12 "stabilityai/stable-diffusion-xl-base-1.0",
13 unet=unet
14)
15pipe = pipe.to("cuda")
16
17# Generate images
18prompt = "A beautiful landscape with mountains and lakes"
19image = pipe(prompt).images[0]
20image.save("output.png")
1@misc{li2025inversiondpo,
2 title={Inversion-DPO: Precise and Efficient Post-Training for Diffusion Models},
3 author={Zejian Li and Yize Li and Chenye Meng and Zhongni Liu and Yang Ling and Shengyuan Zhang and Guang Yang and Changyuan Yang and Zhiyuan Yang and Lingyun Sun},
4 year={2025},
5 eprint={2507.11554},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV}
8}
For questions and support, please visit our
GitHub repository.