Text-to-Image
Diffusers
Safetensors
ZImagePipeline
quantized
mxfp4
autoround
diffusion
autoquant-agent
Instructions to use INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download transformer/quantization_config.json from INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound: direct link, hf CLI and curl.
- Browser
- Download file 5.41 kB
-
https://huggingface.co/INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound/resolve/main/transformer/quantization_config.json
- Command line
-
hf download hf://INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound/transformer/quantization_config.json
-
curl -L -o quantization_config.json https://huggingface.co/INCModel3/Z-Image-Turbo-MXFP4-RTN-AutoRound/resolve/main/transformer/quantization_config.json
5.41 kB
| { | |
| "bits": 4, | |
| "act_bits": 4, | |
| "data_type": "mx_fp", | |
| "act_data_type": "mx_fp", | |
| "group_size": 32, | |
| "act_group_size": 32, | |
| "sym": true, | |
| "act_sym": true, | |
| "act_dynamic": true, | |
| "enable_quanted_input": false, | |
| "static_attention_granularity": "tensor", | |
| "static_kv_granularity": "tensor", | |
| "autoround_version": "0.15.0", | |
| "block_name_to_quantize": "noise_refiner,context_refiner,layers", | |
| "quant_method": "auto-round", | |
| "packing_format": "auto_round:llm_compressor", | |
| "extra_config": { | |
| "all_final_layer.2-1.adaLN_modulation.1": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "noise_refiner.0.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "noise_refiner.1.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.0.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.1.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.2.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.3.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.4.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.5.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.6.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.7.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.8.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.9.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.10.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.11.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.12.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.13.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.14.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.15.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.16.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.17.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.18.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.19.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.20.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.21.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.22.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.23.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.24.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.25.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.26.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.27.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.28.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| "layers.29.adaLN_modulation.0": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| }, | |
| ".*adaLN_modulation.*": { | |
| "bits": 16, | |
| "data_type": "float", | |
| "act_bits": 16, | |
| "act_data_type": "float" | |
| } | |
| } | |
| } |