lightx2v / Z-Image-Turbo-Quantized

huggingface.co
Total runs: 1.5K
24-hour runs: 0
7-day runs: 22
30-day runs: -45
Model's Last Updated: Januar 28 2026
text-to-image

Introduction of Z-Image-Turbo-Quantized

Model Details of Z-Image-Turbo-Quantized

Z-Image-Turbo-Quantized

Quantized weights for Z-Image-Turbo optimized for 8GB VRAM GPUs .

📦 Available Models
  • z_image_turbo_scaled_fp8_e4m3fn.safetensors (6.17 GB) - FP8 E4M3FN quantized weights
  • z_image_turbo_int8.safetensors (6.17 GB) - INT8 quantized weights
🚀 Installation
git clone https://github.com/ModelTC/LightX2V.git
cd LightX2V
pip install .
💻 Usage for 8GB VRAM GPUs

To run Z-Image-Turbo on 8GB VRAM GPUs, you need to:

  1. Use quantized transformer weights (FP8 or INT8)
  2. Use int4 quantized Qwen3 text encoder
  3. Enable CPU offloading
Complete Example
from lightx2v import LightX2VPipeline

# Initialize pipeline
pipe = LightX2VPipeline(
    model_path="Tongyi-MAI/Z-Image-Turbo",
    model_cls="z_image",
    task="t2i",
)

# Step 1: Enable quantization (FP8 transformer + INT4 text encoder)
pipe.enable_quantize(
    dit_quantized=True,
    dit_quantized_ckpt="lightx2v/Z-Image-Turbo-Quantized/z_image_turbo_scaled_fp8_e4m3fn.safetensors",
    quant_scheme="fp8-sgl",
    # IMPORTANT: Use int4 Qwen3 for 8GB VRAM
    text_encoder_quantized=True,
    text_encoder_quantized_ckpt="JunHowie/Qwen3-4B-GPTQ-Int4",
    text_encoder_quant_scheme="int4"
)

# Step 2: Enable CPU offloading
pipe.enable_offload(
    cpu_offload=True,
    offload_granularity="model",  # Use "model" for maximum memory savings
)

# Step 3: Create generator
pipe.create_generator(
    attn_mode="flash_attn3",
    aspect_ratio="16:9",
    infer_steps=9,
    guidance_scale=1,
)

# Step 4: Generate image
pipe.generate(
    seed=42,
    prompt="A beautiful landscape with mountains and lakes, ultra HD, 4K",
    negative_prompt="",
    save_result_path="output.png",
)
⚙️ Configuration Options
Quantization Schemes

FP8 (Recommended) - Better quality and speed:

dit_quantized_ckpt="lightx2v/Z-Image-Turbo-Quantized/z_image_turbo_scaled_fp8_e4m3fn.safetensors",
quant_scheme="fp8-sgl",

INT8 - Alternative option:

dit_quantized_ckpt="lightx2v/Z-Image-Turbo-Quantized/z_image_turbo_int8.safetensors",
quant_scheme="int8-sgl",
Offload Granularity
  • "model" (Recommended for 8GB): Offload entire model to CPU, load to GPU only during inference. Maximum memory savings.
  • "block" : Offload individual transformer blocks. More fine-grained control.
⚠️ Important Notes
  1. Order matters : All enable_quantize() and enable_offload() calls must be made before create_generator() , otherwise they will not take effect.

  2. Text encoder quantization : Using int4 Qwen3 text encoder is highly recommended for 8GB VRAM GPUs to ensure stable operation.

  3. Memory optimization : The combination of FP8/INT8 transformer + int4 Qwen3 + model-level offloading is optimized for 8GB VRAM.

📚 References
🤝 Community

If you find this project helpful, please give us a ⭐ on GitHub

Runs of lightx2v Z-Image-Turbo-Quantized on huggingface.co

1.5K
Total runs
0
24-hour runs
20
3-day runs
22
7-day runs
-45
30-day runs

More Information About Z-Image-Turbo-Quantized huggingface.co Model

More Z-Image-Turbo-Quantized license Visit here:

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

Z-Image-Turbo-Quantized huggingface.co

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

Z-Image-Turbo-Quantized huggingface.co Url

https://huggingface.co/lightx2v/Z-Image-Turbo-Quantized

lightx2v Z-Image-Turbo-Quantized online free

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

lightx2v Z-Image-Turbo-Quantized online free url in huggingface.co:

https://huggingface.co/lightx2v/Z-Image-Turbo-Quantized

Z-Image-Turbo-Quantized install

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

Z-Image-Turbo-Quantized install url in huggingface.co:

https://huggingface.co/lightx2v/Z-Image-Turbo-Quantized

Url of Z-Image-Turbo-Quantized

Z-Image-Turbo-Quantized huggingface.co Url

Provider of Z-Image-Turbo-Quantized huggingface.co

lightx2v
ORGANIZATIONS

Other API from lightx2v

huggingface.co

Total runs: 6.0K
Run Growth: 354
Growth Rate: 5.87%
Updated:November 21 2025
huggingface.co

Total runs: 482
Run Growth: 30
Growth Rate: 6.22%
Updated:Dezember 28 2025
huggingface.co

Total runs: 473
Run Growth: 112
Growth Rate: 23.68%
Updated:Dezember 23 2025