DiffusionPOND / README.md
kenshinn's picture
Avoid auto library_name:peft override so root config.json counts downloads
12f1bbf verified
|
Raw History Blame Contribute Delete
10.6 kB
metadata
license: apache-2.0
base_model:
  - stabilityai/stable-diffusion-3.5-medium
  - tensorart/stable-diffusion-3.5-medium-turbo
  - Wan-AI/Wan2.1-T2V-1.3B-Diffusers
  - Wan-AI/Wan2.1-T2V-14B-Diffusers
base_model_relation: adapter
tags:
  - text-to-image
  - text-to-video
  - diffusion
  - flow-matching
  - few-step
  - reinforcement-learning
  - lora
  - stable-diffusion-3.5
  - wan2.1
  - rcm
  - arxiv:2612.03900

DiffusionPOND Checkpoints

DiffusionPOND: Scalable and Online Reinforcement Learning for Few-step Diffusion Models

Zhenglin Cheng1,2,3,4  ·  Peng Sun1,3,4  ·  Jun Xie1,2,3,4  ·  Jiacheng Liu5  ·  Jiaming Liu4,*  ·  Jiaqi Wang2  ·  Tao Lin3

1Zhejiang University  ·  2SII  ·  3Westlake University  ·  4Tencent  ·  5MBZUAI   (*Project Lead)

arXiv Project Page GitHub License

Model Summary

This repository hosts the main-table PEFT LoRA generator checkpoints for DiffusionPOND (Positive–Negative Distribution Matching), a teacher-free, black-box online reinforcement learning framework directly for few-step diffusion and flow models (NFE = 4).

Instead of relying on pretrained teacher anchors, differentiable reward models, or tractable denoising likelihoods, DiffusionPOND ranks online rollouts from the evolving generator into positive and negative distributions and optimizes the generator through a single distribution-matching objective.

All released weights are stored in standard safetensors PEFT LoRA format (adapter_model.safetensors + adapter_config.json) and verified for bit-exact forward parity against the training checkpoints in Tencent-TEXCH/DiffusionPOND.

Released Checkpoints

Subdirectory Paper Experiment Base Model Weight Snapshot LoRA Spec Size adapter_model.safetensors SHA-256
sd35m-geneval-5000-ema SD3.5-M · GenEval SD3.5-M + 4-step Turbo LoRA 5,000 steps (EMA) r=32, alpha=64 75.2 MB 123799a8decd76a354ed48ce4fdb259e35dfe7f5c9d24d2bfa65ff0e02cc44f0
sd35m-ocr-5000-ema SD3.5-M · OCR SD3.5-M + 4-step Turbo LoRA 5,000 steps (EMA) r=32, alpha=64 75.2 MB 580500096e76bf6401c144521d5b3fdc5dbbc9ee4f1ee0067945b1007e897083
sd35m-pickscore-5000-ema SD3.5-M · PickScore SD3.5-M + 4-step Turbo LoRA 5,000 steps (EMA) r=32, alpha=64 75.2 MB bc4eabc0f5e5d54a1c37316362b405e79aefc4f7964732ab7cd55e55d2d33e81
sd35m-multireward-5000-ema SD3.5-M · Multi-reward (GenEval + PickScore + CLIPScore + HPSv2.1) SD3.5-M + 4-step Turbo LoRA 5,000 steps (EMA) r=32, alpha=64 75.2 MB a9e7eb5501a2eef085211e598cb818ca15c76685330439c19f4be476b7a9bc9f
wan21-1.3b-rcm-1000-online Wan 2.1 1.3B · rCM (MQ:TA = 1:3) Wan2.1-T2V-1.3B-rCM (4-step) 1,000 steps (online) r=64, alpha=64 188.8 MB 36b04c7837e18c9bf558a6f1f8ea2731231b95a69c2ce7d5909b8a3eeeabd66c
wan21-14b-rcm-700-online Wan 2.1 14B · rCM (TA:MQ:VQ = 7:2:1) Wan2.1-T2V-14B-rCM (4-step) 700 steps (online) r=64, alpha=64 838.9 MB 9a8df2eb12137e0cf3869071aa66e954dce17803f1308608e9d5bdb6aee07d4b

Usage

1. Text-to-Image (SD3.5-M-Turbo + DiffusionPOND LoRA, NFE = 4)

The SD3.5-M adapters were trained on top of stabilityai/stable-diffusion-3.5-medium with the TensorArt 4-step Turbo LoRA (tensorart/stable-diffusion-3.5-medium-turbo) fused at FP32 into the transformer before casting to BF16:

import torch
from diffusers import SD3Transformer2DModel, StableDiffusion3Pipeline
from peft import PeftModel

BASE_MODEL = "stabilityai/stable-diffusion-3.5-medium"
TURBO_REPO = "tensorart/stable-diffusion-3.5-medium-turbo"
POND_REPO = "Tencent-TEXCH/DiffusionPOND"
ADAPTER = "sd35m-pickscore-5000-ema"  # or sd35m-geneval-5000-ema / sd35m-ocr-5000-ema / sd35m-multireward-5000-ema

# 1. Load SD3.5-M transformer at FP32 and fuse the 4-step Turbo LoRA
transformer = SD3Transformer2DModel.from_pretrained(
    BASE_MODEL, subfolder="transformer", torch_dtype=torch.float32
)
turbo_weights = StableDiffusion3Pipeline.lora_state_dict(
    TURBO_REPO, weight_name="lora_sd3.5m_4steps.safetensors"
)
transformer.load_lora_adapter(turbo_weights, prefix="transformer", adapter_name="turbo")
transformer.fuse_lora(lora_scale=1.0)
transformer.unload_lora()
transformer = transformer.to(dtype=torch.bfloat16)

# 2. Mount the DiffusionPOND PEFT LoRA adapter
transformer = PeftModel.from_pretrained(
    transformer, POND_REPO, subfolder=ADAPTER, is_trainable=False
)

# 3. Build pipeline and sample in 4 steps (guidance_scale=1.0)
pipe = StableDiffusion3Pipeline.from_pretrained(
    BASE_MODEL, transformer=transformer, torch_dtype=torch.bfloat16
).to("cuda")

image = pipe(
    prompt="A serene mountain lake reflecting autumn foliage at golden hour, 35mm film photography",
    num_inference_steps=4,
    sigmas=[1.0, 0.933535, 0.750749, 0.392171, 0.0],
    guidance_scale=1.0,
    height=1024,
    width=1024,
    generator=torch.Generator(device="cuda").manual_seed(42),
).images[0]
image.save("output.png")

2. Text-to-Video (Wan2.1-T2V 1.3B / 14B rCM + DiffusionPOND LoRA, NFE = 4)

The Wan2.1 adapters were trained on top of the 4-step rCM-distilled WanTransformer3DModel (converted to Diffusers format via python -m visual_rl.models.convert_rcm_wan in Tencent-TEXCH/DiffusionPOND):

import torch
from diffusers import WanTransformer3DModel
from peft import PeftModel

RCM_TRANSFORMER_DIR = "/path/to/rCM_Wan2.1_T2V_1.3B_480p-diffusers"  # or 14B equivalent
POND_REPO = "Tencent-TEXCH/DiffusionPOND"
ADAPTER = "wan21-1.3b-rcm-1000-online"  # or wan21-14b-rcm-700-online

transformer = WanTransformer3DModel.from_pretrained(
    RCM_TRANSFORMER_DIR, torch_dtype=torch.float32
)
transformer = PeftModel.from_pretrained(
    transformer, POND_REPO, subfolder=ADAPTER, is_trainable=False
).to(device="cuda", dtype=torch.bfloat16).eval()

For full 4-step rCM video generation (sigma_max=1600.0, rollout_mid_angles=[1.3, 1.0, 0.6], guidance_scale=1.0, 81 frames at 16 FPS) and VBench / Gemini evaluation scripts, please follow the instructions in Tencent-TEXCH/DiffusionPOND.

Evaluation Results

Text-to-Image (SD3.5-M, 1024×1024)

Method NFE GenEval OCR PickScore CLIPScore HPSv2.1 Aesthetic (OOD) ImageReward (OOD)
SD3.5-M (Base) 40 0.683 0.534 22.773 29.272 0.288 5.265 0.989
SD3.5-M-Turbo 4 0.587 0.284 22.331 28.145 0.266 5.275 0.526
+ DiffusionPOND (ours) 4 0.767 0.948 23.885 30.867 0.328 5.608 1.346

(Single-reward adapters correspond to GenEval, OCR, and PickScore columns; CLIPScore, HPSv2.1, Aesthetic, and ImageReward are evaluated with sd35m-multireward-5000-ema.)

Text-to-Video (Wan2.1-T2V-1.3B & 14B, NFE = 4)

Method NFE VBench Total VBench Qual. VBench Sem. Test MQ Test TA Test VQ (OOD)
Wan2.1-T2V-1.3B 50 82.65 83.30 80.08 0.480 -0.821 0.096
Wan2.1-T2V-1.3B-rCM 4 83.70 84.57 80.21 0.326 -0.638 0.021
+ DiffusionPOND (wan21-1.3b-rcm-1000-online) 4 84.25 85.14 80.69 0.705 -0.469 0.434
  • Wan2.1-T2V-14B (wan21-14b-rcm-700-online): Achieves +20.1% Gemini-judged test-set preference improvement over the 4-step rCM initialization and +10.9% over the 50-step Wan2.1-T2V-14B base model at 720p.

Intended Use, Limitations, and Risks

  • Intended use: Research and experimentation on few-step diffusion/flow reinforcement learning, text-to-image generation, and text-to-video generation.
  • Limitations: These checkpoints are LoRA adapters that require their corresponding upstream base models and 4-step sampling schedules. Single-reward adapters optimize for their respective target reward and may exhibit reward-specific trade-offs compared to multi-reward adapters.
  • Risks and bias: Because these adapters modify pretrained SD3.5-M and Wan2.1 backbones, they inherit the visual biases, artifacts, and safety limitations of the upstream base models. Users should apply appropriate safety filtering before deployment in user-facing applications.

License

The DiffusionPOND LoRA adapter weights released in this repository are licensed under the Apache License 2.0 (see LICENSE).

Use of these adapters together with upstream base models is additionally subject to the licenses of those base models:

Citation

@article{cheng2026diffusionpond,
  title   = {DiffusionPOND: Scalable and Online Reinforcement Learning for Few-step Diffusion Models},
  author  = {Zhenglin Cheng and Peng Sun and Jun Xie and Jiacheng Liu and Jiaming Liu and Jiaqi Wang and Tao Lin},
  journal = {arXiv preprint arXiv:2612.03900},
  year    = {2026}
}