AI SeedbankHelp preserve open and free AI for humanity's future

← All models

Tongyi-MAI_Z-Image-Turbo

Tongyi-MAI · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 language:

  • en pipeline_tag: text-to-image library_name: diffusers

⚡️- Image
An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer

                 

Welcome to the official repository for the Z-Image(造相)project!

✨ Z-Image

Z-Image is a powerful and highly efficient image generation model family with 6B parameters. Currently there are four variants:

  • 🚀 Z-Image-Turbo – A distilled version of Z-Image that matches or exceeds leading competitors with only 8 NFEs (Number of Function Evaluations). It offers ⚡️sub-second inference latency⚡️ on enterprise-grade H800 GPUs and fits comfortably within 16G VRAM consumer devices. It excels in photorealistic image generation, bilingual text rendering (English & Chinese), and robust instruction adherence.

  • 🎨 Z-Image – The foundation model behind Z-Image-Turbo. Z-Image focuses on high-quality generation, rich aesthetics, strong diversity, and controllability, well-suited for creative generation, fine-tuning, and downstream development. It supports a wide range of artistic styles, effective negative prompting, and high diversity across identities, poses, compositions, and layouts.

  • 🧱 Z-Image-Omni-Base – The versatile foundation model capable of both generation and editing tasks. By releasing this checkpoint, we aim to unlock the full potential for community-driven fine-tuning and custom development, providing the most "raw" and diverse starting point for the open-source community.

  • ✍️ Z-Image-Edit – A variant fine-tuned on Z-Image specifically for image editing tasks. It supports creative image-to-image generation with impressive instruction-following capabilities, allowing for precise edits based on natural language prompts.

📥 Model Zoo

Model Pre-Training SFT RL Step CFG Task Visual Quality Diversity Fine-Tunability Hugging Face ModelScope
Z-Image-Omni-Base 50 Gen. / Editing Medium High Easy To be released To be released
Z-Image 50 Gen. High Medium Easy

Z-Image-Turbo 8 Gen. Very High Low N/A

Z-Image-Edit 50 Editing High Medium Easy To be released To be released

🖼️ Showcase

📸 Photorealistic Quality: Z-Image-Turbo delivers strong photorealistic image generation while maintaining excellent aesthetic quality.

📖 Accurate Bilingual Text Rendering: Z-Image-Turbo excels at accurately rendering complex Chinese and English text.

💡 Prompt Enhancing & Reasoning: Prompt Enhancer empowers the model with reasoning capabilities, enabling it to transcend surface-level descriptions and tap into underlying world knowledge.

🧠 Creative Image Editing: Z-Image-Edit shows a strong understanding of bilingual editing instructions, enabling imaginative and flexible image transformations.

🏗️ Model Architecture

We adopt a Scalable Single-Stream DiT (S3-DiT) architecture. In this setup, text, visual semantic tokens, and image VAE tokens are concatenated at the sequence level to serve as a unified input stream, maximizing parameter efficiency compared to dual-stream approaches.

📈 Performance

According to the Elo-based Human Preference Evaluation (on Alibaba AI Arena), Z-Image-Turbo shows highly competitive performance against other leading models, while achieving state-of-the-art results among open-source models.


Click to view the full leaderboard

🚀 Quick Start

Install the latest version of diffusers, use the following command:

Click here for details for why you need to install diffusers from source

We have submitted two pull requests (#12703 and #12715) to the 🤗 diffusers repository to add support for Z-Image. Both PRs have been merged into the latest official diffusers release. Therefore, you need to install diffusers from source for the latest features and Z-Image support.

pip install git+https://github.com/huggingface/diffusers
import torch
from diffusers import ZImagePipeline

# 1. Load the pipeline
# Use bfloat16 for optimal performance on supported GPUs
pipe = ZImagePipeline.from_pretrained(
    "Tongyi-MAI/Z-Image-Turbo",
    torch_dtype=torch.bfloat16,
    low_cpu_mem_usage=False,
)
pipe.to("cuda")

# [Optional] Attention Backend
# Diffusers uses SDPA by default. Switch to Flash Attention for better efficiency if supported:
# pipe.transformer.set_attention_backend("flash")    # Enable Flash-Attention-2
# pipe.transformer.set_attention_backend("_flash_3") # Enable Flash-Attention-3

# [Optional] Model Compilation
# Compiling the DiT model accelerates inference, but the first run will take longer to compile.
# pipe.transformer.compile()

# [Optional] CPU Offloading
# Enable CPU offloading for memory-constrained devices.
# pipe.enable_model_cpu_offload()

prompt = "Young Chinese woman in red Hanfu, intricate embroidery. Impeccable makeup, red floral forehead pattern. Elaborate high bun, golden phoenix headdress, red flowers, beads. Holds round folding fan with lady, trees, bird. Neon lightning-bolt lamp (⚡️), bright yellow glow, above extended left palm. Soft-lit outdoor night background, silhouetted tiered pagoda (西安大雁塔), blurred colorful distant lights."

# 2. Generate Image
image = pipe(
    prompt=prompt,
    height=1024,
    width=1024,
    num_inference_steps=9,  # This actually results in 8 DiT forwards
    guidance_scale=0.0,     # Guidance should be 0 for the Turbo models
    generator=torch.Generator("cuda").manual_seed(42),
).images[0]

image.save("example.png")

🔬 Decoupled-DMD: The Acceleration Magic Behind Z-Image

Decoupled-DMD is the core few-step distillation algorithm that empowers the 8-step Z-Image model.

Our core insight in Decoupled-DMD is that the success of existing DMD (Distributaion Matching Distillation) methods is the result of two independent, collaborating mechanisms:

  • CFG Augmentation (CA): The primary engine 🚀 driving the distillation process, a factor largely overlooked in previous work.
  • Distribution Matching (DM): Acts more as a regularizer ⚖️, ensuring the stability and quality of the generated output.

By recognizing and decoupling these two mechanisms, we were able to study and optimize them in isolation. This ultimately motivated us to develop an improved distillation process that significantly enhances the performance of few-step generation.

🤖 DMDR: Fusing DMD with Reinforcement Learning

Building upon the strong foundation of Decoupled-DMD, our 8-step Z-Image model has already demonstrated exceptional capabilities. To achieve further improvements in terms of semantic alignment, aesthetic quality, and structural coherence—while producing images with richer high-frequency details—we present DMDR.

Our core insight behind DMDR is that Reinforcement Learning (RL) and Distribution Matching Distillation (DMD) can be synergistically integrated during the post-training of few-step models. We demonstrate that:

  • RL Unlocks the Performance of DMD 🚀
  • DMD Effectively Regularizes RL ⚖️

⏬ Download

pip install -U huggingface_hub
HF_XET_HIGH_PERFORMANCE=1 hf download Tongyi-MAI/Z-Image-Turbo

📜 Citation

If you find our work useful in your research, please consider citing:

@article{team2025zimage,
  title={Z-Image: An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer},
  author={Z-Image Team},
  journal={arXiv preprint arXiv:2511.22699},
  year={2025}
}

@article{liu2025decoupled,
  title={Decoupled DMD: CFG Augmentation as the Spear, Distribution Matching as the Shield},
  author={Dongyang Liu and Peng Gao and David Liu and Ruoyi Du and Zhen Li and Qilong Wu and Xin Jin and Sihan Cao and Shifeng Zhang and Hongsheng Li and Steven Hoi},
  journal={arXiv preprint arXiv:2511.22677},
  year={2025}
}

@article{jiang2025distribution,
  title={Distribution Matching Distillation Meets Reinforcement Learning},
  author={Jiang, Dengyang and Liu, Dongyang and Wang, Zanyi and Wu, Qilong and Jin, Xin and Liu, David and Li, Zhen and Wang, Mengmeng and Gao, Peng and Yang, Harry},
  journal={arXiv preprint arXiv:2511.13649},
  year={2025}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:c4cc479f9791489692613736db762bb9b79b2f46&dn=Tongyi-MAI_Z-Image-Turbo

Open magnet in torrent client · infohash c4cc479f9791489692613736db762bb9b79b2f46

Files & hashes

PathSizesha1sha256
README.md13.4 KB (13,684 B)352aecd07acc46ad96d42ae6a7ef62f8f17172d587af5e1d7933dbfe091c4048a20805541130690ee813b8039b7f396b47e64338
assets/DMDR.webp168.9 KB (172,966 B)ebe3fd41853231fadd8508ad3c82fe9962732a762e6f3053b98d097f2aa11d3892bd9307326db41b65336bea54dc5825a0e03077
assets/Z-Image-Gallery.pdf15.0 MB (15,767,436 B)fc33a1ed883b9b59389c7ff632ddd1908b57e3876f9895b3246d2547bac74bbe0be975da500eaae93f2cad4248ad3281786b1ac6
assets/architecture.webp412.5 KB (422,392 B)9d1548366c72f5ce229c8ec3ca1065adeedc308b261af62ecc7e9749ae28e1d3a84e2f70a6c192d2017b7d8f020c7bff982ef59c
assets/decoupled-dmd.webp148.5 KB (152,062 B)57c3d297843e156894381410b2eb67f56ad2a8f84568ca559b997fc38f57dc1c3f5b1da3a3c144ae12419caa855ced972bf8c7aa
assets/leaderboard.png1.9 MB (2,034,429 B)f6e57aa6d3541d92addfbc8cadc18cadbe31d593e9fd4aa185bb7bff2b5515f2001b4d80df330595e78d6a098142e5a232bb4e4e
assets/leaderboard.webp62.3 KB (63,754 B)67cbfa6780584dce044144fb86afe495e3147abd51337709ffff7d11d0fbeb8dbd1f2acbd96acd44ed5b9e686a7e8d2339f26ab2
assets/reasoning.png7.3 MB (7,696,993 B)68e247b07ace4faeb7c50add13a99a1cc15187bc96c16b2c8d8dc67bb92ecc22d54b9955ab55136977f515bb76f4b2eb42eb3cdb
assets/showcase.jpg6.1 MB (6,433,750 B)3abda8651ed91532bc9cd9ab9be1a0481cee0c5cf6ee74e066e00596e429f5a08140aebae1678e5935ce1e11ca6c1c6cd72432ee
assets/showcase_editing.png4.5 MB (4,746,838 B)eda5054db50506f78fbcfa2ccfd3a7cfdea3e28d7d720c3157fd0b0c1f07ac826c6d380b4bcb1b6933c64eb11bfe804ccf7c26f4
assets/showcase_realistic.png6.0 MB (6,256,136 B)b23a8e36ffe67ddeb6170a411eabc58f52d02779697e6f6857f619314173508df72a14314cbb43e67475de7494123bb8b4f4eb2c
assets/showcase_rendering.png7.2 MB (7,599,237 B)5bddb23ad7b0de3845c202a3d3c6e7cbf6432f353556dd66be2200d53f957424e12ecf914ddf3eded151cde86c7353f8b231284f
model_index.json467 B (467 B)570c63a7c5580f63d0a8ed622324f50015dcf91418a90e1bc117a29a8b7961bb200c86ff0b9704609e87c7171511dc724fcdc9d3
scheduler/scheduler_config.json173 B (173 B)2349bc43351afa730341d07dd44fce4ace1c42573b979ab0956e4f5e8d02ec409ac6a4ece1555191d15bd10788fdc85fea5d13fc
text_encoder/config.json726 B (726 B)e49eccdc32f36da9c09cfa0e737084f9e0105e5e8ba006f74fecfaaeb392872a60f4a480e7ec9860153d2e1b769ec81f9a147f8a
text_encoder/generation_config.json239 B (239 B)20a8a9156fc8c3f25295ca067f61fdf120d517c52325da0f15bb848e018c5ae071b7943332e9f871d6b60e2ed22ca97d4cb993d2
text_encoder/model-00001-of-00003.safetensors3.69 GB (3,957,900,840 B)8900a4869829a979e3a63dc9d10218ad8909b8a3328a91d3122359d5547f9d79521205bc0a46e1f79a792dfe650e99fc2d651223
text_encoder/model-00002-of-00003.safetensors3.71 GB (3,987,450,520 B)8b90833426a0f18fd6eed48f686d4a9baf1a55fd6cd087b316306a68c562436b5492edbcf6e16c6dba3a1308279caa5a58e21ca5
text_encoder/model-00003-of-00003.safetensors95.0 MB (99,630,640 B)92dfc9351e39cfc73af292a514612c72076c3aeb7ca841ee75b9c61267c0c6148fd8d096d3d21b6d3e161256a9b878154f91fc52
text_encoder/model.safetensors.index.json32.0 KB (32,819 B)95c0a0059df040d75dc6c396b174382cf61d2f916dc0981b8829fead746441f68f38f24c5ca4a3a66351f652c26c6df0efc43ab2
tokenizer/merges.txt1.6 MB (1,671,853 B)31349551d90c7606f325fe0f11bbb8bd5fa0d7c78831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
tokenizer/tokenizer.json10.9 MB (11,422,654 B)a1de58e2833d77bb504a8e430b1b25d359912a98aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer/tokenizer_config.json9.5 KB (9,732 B)417d038a63fa3de29cfde265caedae14d1a58d92d5d09f07b48c3086c508b30d1c9114bd1189145b74e982a265350c923acd8101
tokenizer/vocab.json2.6 MB (2,776,833 B)4783fe10ac3adce15ac8f358ef5462739852c569ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
transformer/config.json473 B (473 B)c579190a5e03d602a2fd9647221c9d0d9441f15006d49d1ae533f825c4704cc616fc8bc7826e9d449dde292cc7a95163c69af24a
transformer/diffusion_pytorch_model-00001-of-00003.safetensors9.29 GB (9,973,693,184 B)d659b66ecb76879e68ba33941556dca5fd771d3095facd593e2549e8252acb571c653d57f7ddb7f1060d4e81712f152555a88804
transformer/diffusion_pytorch_model-00002-of-00003.safetensors9.29 GB (9,973,714,824 B)830a40e738bcd7ebdceda764b58d96da2f189f12a4bbe43ee184a1fb5af4b412d27555f532893bdc3165b1149e304ed82b5d7015
transformer/diffusion_pytorch_model-00003-of-00003.safetensors4.35 GB (4,672,282,880 B)6442affb33cdde523462843150a479228c6ba3f3aba4e37a590e63210878160a718d916d80398f4e1f78ab6c9b2b2a00d92769fa
transformer/diffusion_pytorch_model.safetensors.index.json47.8 KB (48,969 B)a3cadc1ed28e334ef58d4e6bbda107e25168ef47182a119d8018bfc61c9a62685a384af3b7d4a2f8aabbe766e07c9e1eda5b97ab
vae/config.json805 B (805 B)894fa30ac1950cef422189d2d4cef11043c62875e80af1e64a71883a9d10c3159d2e493e5934508da57852f6a180ae6ae63b14bd
vae/diffusion_pytorch_model.safetensors159.9 MB (167,666,902 B)1eb8410f0c0120aff9f9101b64cea0801a1e1ddef5b59a26851551b67ae1fe58d32e76486e1e812def4696a4bea97f16604d40a3

Cite this release

Canonical URL
https://aiseedbank.org/models/Tongyi-MAI_Z-Image-Turbo/
Slug
Tongyi-MAI_Z-Image-Turbo
Infohash
c4cc479f9791489692613736db762bb9b79b2f46
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: Tongyi-MAI_Z-Image-Turbo.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryTongyi-MAI/Z-Image-Turbo
Revision (pinned)f332072aa78be7aecdf3ee76d5c247082da564a6
Fetched at2026-09-03T20:36:03Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:43:25Z

apache-2.030.64 GB (32,899,665,210 bytes)diffuserssafetensorstext-to-imagediffusers:ZImagePipeline1 language (en)paper: 2511.22699paper: 2511.22677paper: 2511.13649