Views
No views yet
stabilityai/stable-diffusion-3.5-medium, fine-tuned with Flow-DPPO on GenEval2 in the single-reward setting (optimizing the GenEval2 reward only).1import torch
2from diffusers import StableDiffusion3Pipeline
3from peft import PeftModel
4
5pipe = StableDiffusion3Pipeline.from_pretrained(
6 "stabilityai/stable-diffusion-3.5-medium",
7 torch_dtype=torch.bfloat16,
8)
9
10# Load the Flow-DPPO LoRA adapter
11pipe.transformer = PeftModel.from_pretrained(
12 pipe.transformer,
13 "Tencent-Hunyuan-Multimodal-RL/SD3.5-GenEval2-Single-Reward",
14 torch_dtype=torch.bfloat16,
15)
16
17pipe.enable_model_cpu_offload() # remove and call pipe.to("cuda") if you have enough VRAM
18
19prompt = "four white cats are behind a red bagel"
20image = pipe(
21 prompt,
22 height=1024,
23 width=1024,
24 guidance_scale=4.5,
25 num_inference_steps=40,
26 max_sequence_length=512,
27 generator=torch.Generator("cpu").manual_seed(0),
28).images[0]
29image.save("output.png")1@article{ping2026flowdppo,
2 title={Flow-DPPO: Divergence Proximal Policy Optimization for Flow Matching Models},
3 author={Ping, Bowen and Zhou, Xiangxin and Qi, Penghui and Luo, Minnan and Bo, Liefeng and Pang, Tianyu},
4 journal={arXiv preprint arXiv:2606.11025},
5 year={2026}
6}