Checkout 2-NFE visualization of TwinFlow-Z-Image-Turbo-exp 👇
👀 Original Z-Image-Turbo 2-NFE2-NFE visualization of Z-Image-Turbo
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.
TwinFlow-Z-Image-Turbo-exp/transformer/diffusion_pytorch_model-00001-of-00003.safetensors 5.1 GiBTwinFlow-Z-Image-Turbo-exp/transformer/diffusion_pytorch_model-00002-of-00003.safetensors 5.1 GiBTwinFlow-Z-Image-Turbo-exp/text_encoder/model-00002-of-00003.safetensors 3.7 GiBTwinFlow-Z-Image-Turbo-exp/text_encoder/model-00001-of-00003.safetensors 3.7 GiBTwinFlow-Z-Image-Turbo-exp/transformer/diffusion_pytorch_model-00003-of-00003.safetensors 1.3 GiBTwinFlow-Z-Image-Turbo-exp/vae/diffusion_pytorch_model.safetensors 160 MiBTwinFlow-Z-Image-Turbo-exp/text_encoder/model-00003-of-00003.safetensors 95 MiB