/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Z-Image-Turbo
Библиотека
diffusers
Опубликована
17 июл 2026

Z-Image-Turbo-FP8

Генерация изображенийТекст → изображение

Квантованный FP8/INT8 вариант Z-Image-Turbo для быстрой генерации изображений по текстовым описаниям.

848скачиваний за 30 дней4лайкавеса обновлены5 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это квантованный вариант Z-Image-Turbo от Unsloth: диффузионная модель для генерации изображений по текстовым описаниям. Репозиторий содержит трансформерные чекпойнты FP8 и INT8, полученные динамической квантзацией весов плотной BF16-модели с помощью torchao. Базовая Z-Image-Turbo разработана командой Tongyi-MAI и использует архитектуру Scalable Single-Stream Diffusion Transformer (S3-DiT) с 6 млрд параметров; для генерации ей достаточно 8 шагов вычисления.

Модель предназначена для создания фотореалистичных и стилизованных изображений, точного следования текстовым инструкциям и отрисовки английского и китайского текста внутри изображений. Квантование уменьшает требования к памяти; в README приведены значения LPIPS относительно BF16 при одинаковом seed: 0,130 для FP8 и 0,181 для INT8, где меньшее значение означает большее сходство с BF16.

Для работы используется библиотека Diffusers. Лицензия репозитория — Apache-2.0. Это текстово-изобразительная модель: на вход принимает текст, на выходе создаёт изображение.

Сценарии применения

  • создание фотореалистичных изображений по промпту
  • генерация иллюстраций и концепт-арта
  • создание изображений с английскими надписями
  • создание изображений с китайскими надписями
  • быстрая генерация изображений при ограниченной видеопамяти

Ограничения

Квантованные чекпойнты отличаются от BF16-версии: для FP8 указано LPIPS 0,130, а для INT8 — 0,181 при одинаковом seed. Заявленные характеристики базовой модели по скорости и качеству зависят от оборудования и настроек инференса.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

This is an FP8 / INT8 quantized version of Z-Image-Turbo.

  • Optimized for efficient inference with reduced memory footprint. Same-seed LPIPS vs the bf16 model (lower is better): 0.181 INT8, 0.130 FP8.

Samples

Prompt: "cute sloth typing on a computer"


Official Site  GitHub  Hugging Face  Hugging Face  Hugging Face  ModelScope Model  ModelScope Space  Art Gallery PDF  Web Art Gallery 

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

ModelPre-TrainingSFTRLStepCFGTaskVisual QualityDiversityFine-TunabilityHugging FaceModelScope
Z-Image-Omni-Base✅❌❌50✅Gen. / EditingMediumHighEasyTo be releasedTo be released
Z-Image✅✅❌50✅Gen.HighMediumEasyHugging Face Hugging Face SpaceModelScope Model ModelScope Space
Z-Image-Turbo✅✅✅8❌Gen.Very HighLowN/AHugging Face Hugging Face SpaceModelScope Model ModelScope Space
Z-Image-Edit✅✅❌50✅EditingHighMediumEasyTo be releasedTo be released

🖼️ Showcase

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

Showcase of Z-Image on Photo-realistic image Generation

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

Showcase of Z-Image on Bilingual Text Rendering

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

reasoning.jpg

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

Showcase of Z-Image-Edit on Image Editing

🏗️ 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.

Architecture of Z-Image and Z-Image-Edit

📈 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.

🚀 Quick Start

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

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

arXiv

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.

Diagram of Decoupled-DMD

🤖 DMDR: Fusing DMD with Reinforcement Learning

arXiv

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 ⚖️

Diagram of DMDR

⏬ 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}
}

Quantized transformer checkpoints (this repo)

This repo adds pre-quantized diffusion transformer checkpoints for Tongyi-MAI/Z-Image-Turbo, built with torchao dynamic activation quantization from the dense bf16 transformer. The official model card above is unchanged from the source repo.

Files:

  • Z-Image-Turbo-INT8.pt (6.3 GB)
  • Z-Image-Turbo-FP8.pt (6.3 GB)

Details:

  • int8: Int8DynamicActivationInt8WeightConfig (per-token activation, per-channel weight, torch._int_mm).
  • fp8: Float8DynamicActivationFloat8WeightConfig with PerRow granularity (e4m3, torch._scaled_mm). The loader must floor the dynamic activation scale (activation_value_lb=1e-12 on torchao 0.13+) so all-zero activation token rows cannot produce a zero scale.
  • Loading a checkpoint is bit-identical to quantizing the dense bf16 transformer on the fly; the checkpoint skips the dense load and quantize step.
  • Validated against same-seed dense bf16 renders (SSIM, LPIPS-vgg, CLIP delta, non-finite and black-frame checks) on torch 2.12.1 and torchao 0.17.

Samples

Prompt: "cute sloth typing on a computer" (1024x1024, family default steps/guidance, seeds 0-2).

int8

fp8

Pre-cast fp8 text encoder (this repo)

Z-Image-Turbo-text_encoder-FP8.pt (4.4 GB) is the pipeline's text encoder (Qwen3ForCausalLM, Qwen3-4B, the text_encoder subfolder of Tongyi-MAI/Z-Image-Turbo) with the layerwise fp8 storage cast Unsloth Studio applies at load time, saved pre-cast:

  • Loading it is bit-identical to downloading the dense encoder and casting on load (verified tensor for tensor: 399 tensors, 252 cast to fp8 storage; the tied lm_head/embedding stays dense).
  • Cuts the text-encoder download from 8.0 GB to 4.4 GB.
  • Plain-tensor state dict: loads with torch.load(weights_only=True). Metadata records scheme fp8, component text_encoder, base Tongyi-MAI/Z-Image-Turbo.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffusers

Нельзя запустить

В репозитории 4 LoRA-файлов, и по карточке не понять, какой из них запускать.

Ревизия весов
a8c25b2

0 моделей