ATH-MaaS / CHATS-SD1d5

huggingface.co
Total runs: 4
24-hour runs: 0
7-day runs: -2
30-day runs: -14
Model's Last Updated: August 19 2025
text-to-image

Introduction of CHATS-SD1d5

Model Details of CHATS-SD1d5

CHATS: Combining Human-Aligned Optimization and Test-Time Sampling for Text-to-Image Generation (ICML2025)

📝 Paper • 💡 知乎 • 💻 Github

CHATS is a next-generation framework that unifies human preference alignment with classifier-free guidance by modeling both preferred and dispreferred distributions and using a proxy-prompt-based sampling strategy for superior text–image alignment, fidelity, and aesthetic consistency. See the images generated below for examples.

CHATS results
Generation examples using CHATS (cf. Fig.1 in our paper).

🚀 Key Features
  • Human-Aligned Fine-Tuning with CFG Integration
    We integrate human preference alignment with classifier-free guidance sampling into a unified framework.

  • Proxy-Prompt Sampling
    Leverage useful signals from both preferred and dispreferred distributions at test time.

  • Data Efficiency
    State-of-the-art results across benchmarks with minimal fine-tuning effort on a small, high-quality dataset.

  • Plug-and-Play
    Compatible with any diffusion backbone and existing guidance methods.


📦 Installation
git clone https://github.com/AIDC-AI/CHATS.git
cd CHATS
pip install -r requirements.txt
📂 Model Checkpoints

We provide pretrained CHATS checkpoints for easy download and evaluation:

  • SDXL : Hugging Face

  • SD1.5 : Hugging Face

🛠️ Quick Start
import torch
from pipelines.pipeline_sdxl import ChatsSDXLPipeline
from pipelines.pipeline_sd15 import ChatsSD15Pipeline

# Load CHATS-SDXL pipeline
pipe = ChatsSDXLPipeline.from_pretrained(
        "AIDC-AI/CHATS",
        torch_dtype=torch.bfloat16
)

# or
# Load CHATS-SD1.5 pipeline
# pipe = ChatsSD15Pipeline.from_pretrained(
#         "AIDC-AI/CHATS-SD1d5",
#         torch_dtype=torch.bfloat16
# )

pipe.to("cuda")

# Generate images
images = pipe(
    prompt=["A serene mountain lake at sunset"],
    num_inference_steps=50,
    guidance_scale=5,
    seed=0
)

# Save outputs
for i, img in enumerate(images):
    img.save(f"output_{i}.png")
🏋️ Training

To train CHATS from scratch or fine-tune on your own data, run:



accelerate launch --config_file=config/ac_ds_8gpu_zero0.yaml  train.py \
        --pretrained_model_name_or_path=stabilityai/stable-diffusion-xl-base-1.0 \
        --pretrained_vae_model_name_or_path=madebyollin/sdxl-vae-fp16-fix \
        --resolution=1024 \
        --dataloader_num_workers 16 \
        --train_batch_size=1 \
        --gradient_accumulation_steps=16 \
        --max_train_steps=6000 \
        --learning_rate=3e-09 --scale_lr --lr_scheduler=constant_with_warmup --lr_warmup_steps=100 \
        --mixed_precision=bf16 \
        --allow_tf32 \
        --checkpointing_steps=100 \
        --output_dir=output \
        --resume_from_checkpoint latest \
        --use_adafactor \
        --gradient_checkpointing \
        --dataset_name=data-is-better-together/open-image-preferences-v1-binarized \
        --sdxl \
Args:
  • config_file: This DeepSpeed parameter allows you to specify the configuration file. If you wish to adjust the number of GPUs used for training, simply change the value of num_processes in the ac_ds_xgpu_zero0.yaml file to reflect the desired GPU count.
  • pretrained_model_name_or_path: name or patch of unet model to load
  • pretrained_vae_model_name_or_path: name or patch of vae model to load
  • max_train_steps: max steps to train
  • output: output dir
  • dataset_name: the huggingface sufix of the selected dataset (e.g. OIP)

See the scripts in the scripts folder for further information.

📚 Citation

If you use CHATS, please cite our ICML 2025 paper:

@inproceedings{fu2025chats,
title={CHATS: Combining Human-Aligned Optimization and Test-Time Sampling for Text-to-Image Generation},
author={Fu, Minghao and Wang, Guo-Hua and Cao, Liangfu and Chen, Qing-Guo and Xu, Zhao and Luo, Weihua and Zhang, Kaifu},
booktitle={International Conference on Machine Learning (ICML)},
year={2025}
}
🙏 Acknowledgments

The code is built upon DiffusionDPO , Diffusers , and Transformers .

📄 License

The project is released under Apache License 2.0 ( http://www.apache.org/licenses/LICENSE-2.0 , SPDX-License-identifier: Apache-2.0).

🚨 Disclaimer

We used compliance checking algorithms during the training process, to ensure the compliance of the trained model to the best of our ability. Due to complex data and the diversity of language model usage scenarios, we cannot guarantee that the model is completely free of copyright issues or improper content. If you believe anything infringes on your rights or generates improper content, please contact us, and we will promptly address the matter.

Runs of ATH-MaaS CHATS-SD1d5 on huggingface.co

4
Total runs
0
24-hour runs
-2
3-day runs
-2
7-day runs
-14
30-day runs

More Information About CHATS-SD1d5 huggingface.co Model

More CHATS-SD1d5 license Visit here:

https://choosealicense.com/licenses/apache-2.0

CHATS-SD1d5 huggingface.co

CHATS-SD1d5 huggingface.co is an AI model on huggingface.co that provides CHATS-SD1d5's model effect (), which can be used instantly with this ATH-MaaS CHATS-SD1d5 model. huggingface.co supports a free trial of the CHATS-SD1d5 model, and also provides paid use of the CHATS-SD1d5. Support call CHATS-SD1d5 model through api, including Node.js, Python, http.

CHATS-SD1d5 huggingface.co Url

https://huggingface.co/ATH-MaaS/CHATS-SD1d5

ATH-MaaS CHATS-SD1d5 online free

CHATS-SD1d5 huggingface.co is an online trial and call api platform, which integrates CHATS-SD1d5's modeling effects, including api services, and provides a free online trial of CHATS-SD1d5, you can try CHATS-SD1d5 online for free by clicking the link below.

ATH-MaaS CHATS-SD1d5 online free url in huggingface.co:

https://huggingface.co/ATH-MaaS/CHATS-SD1d5

CHATS-SD1d5 install

CHATS-SD1d5 is an open source model from GitHub that offers a free installation service, and any user can find CHATS-SD1d5 on GitHub to install. At the same time, huggingface.co provides the effect of CHATS-SD1d5 install, users can directly use CHATS-SD1d5 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

CHATS-SD1d5 install url in huggingface.co:

https://huggingface.co/ATH-MaaS/CHATS-SD1d5

Url of CHATS-SD1d5

CHATS-SD1d5 huggingface.co Url

Provider of CHATS-SD1d5 huggingface.co

ATH-MaaS
ORGANIZATIONS

Other API from ATH-MaaS

huggingface.co

Total runs: 122.7K
Run Growth: 17.1K
Growth Rate: 13.37%
Updated:August 28 2026
huggingface.co

Total runs: 14.4K
Run Growth: -83.8K
Growth Rate: -565.50%
Updated:August 15 2025
huggingface.co

Total runs: 10.3K
Run Growth: -2.0K
Growth Rate: -19.15%
Updated:August 15 2025
huggingface.co

Total runs: 4.1K
Run Growth: -12.2K
Growth Rate: -292.76%
Updated:February 13 2026
huggingface.co

Total runs: 3.8K
Run Growth: -3.4K
Growth Rate: -86.79%
Updated:February 13 2026
huggingface.co

Total runs: 889
Run Growth: -132
Growth Rate: -15.03%
Updated:August 15 2025
huggingface.co

Total runs: 889
Run Growth: -968
Growth Rate: -110.76%
Updated:July 03 2025
huggingface.co

Total runs: 532
Run Growth: -196
Growth Rate: -37.91%
Updated:November 23 2024
huggingface.co

Total runs: 435
Run Growth: -1.0K
Growth Rate: -235.78%
Updated:March 04 2025
huggingface.co

Total runs: 373
Run Growth: 308
Growth Rate: 84.38%
Updated:August 15 2025
huggingface.co

Total runs: 290
Run Growth: -435
Growth Rate: -148.97%
Updated:August 15 2025
huggingface.co

Total runs: 246
Run Growth: -353
Growth Rate: -144.08%
Updated:June 09 2026
huggingface.co

Total runs: 241
Run Growth: 125
Growth Rate: 51.65%
Updated:August 15 2025
huggingface.co

Total runs: 34
Run Growth: 13
Growth Rate: 38.24%
Updated:November 21 2024
huggingface.co

Total runs: 34
Run Growth: 15
Growth Rate: 44.12%
Updated:November 21 2024
huggingface.co

Total runs: 11
Run Growth: -7
Growth Rate: -63.64%
Updated:July 30 2025
huggingface.co

Total runs: 6
Run Growth: -21
Growth Rate: -350.00%
Updated:May 29 2025
huggingface.co

Total runs: 6
Run Growth: -12
Growth Rate: -200.00%
Updated:November 14 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2025