Downloads · 30 days
23
7% of all-time downloads
inclusionAI/TwinFlow
TwinFlow is a text-to-image model from inclusionAI. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
<h1 align="center"TwinFlow: Realizing One-step Generation on Large Models with Self-adversarial Flows</h1
Downloads · 30 days
23
7% of all-time downloads
All-time downloads
336
Public
Repo size
57.7 GB
Likes
125
Trending 1
Click a slice to open those files.
.safetensors57.7 GB · 100%
From the Hugging Face model README
<a href="https://arxiv.org/abs/2512.05150" target="_blank"><img src="https://img.shields.io/badge/Paper-b5212f.svg?logo=arxiv" height="21px"></a>
Checkout 2-NFE visualization of TwinFlow-Qwen-Image 👇

We introduce TwinFlow, a framework that realizes high-quality 1-step and few-step generation without the pipeline bloat.
Instead of relying on external discriminators or frozen teachers, TwinFlow creates an internal "twin trajectory". By extending the time interval to $t\in[−1,1]$, we utilize the negative time branch to map noise to "fake" data, creating a self-adversarial signal directly within the model.
Then, the model can rectify itself by minimizing the difference of the velocity fields between real trajectory and fake trajectory, i.e. the $\Delta_\mathrm{v}$. The rectification performs distribution matching as velocity matching, which gradually transforms the model into a 1-step/few-step generator.

Key Advantages:
Install the latest diffusers:
pip install git+https://github.com/huggingface/diffusers
Run inference demo inference.py:
python inference.py
@article{cheng2025twinflow,
title={TwinFlow: Realizing One-step Generation on Large Models with Self-adversarial Flows},
author={Cheng, Zhenglin and Sun, Peng and Li, Jianguo and Lin, Tao},
journal={arXiv preprint arXiv:2512.05150},
year={2025}
}
TwinFlow is built upon RCGM and UCGM, with much support from InclusionAI.