Instructions to use TheCodingBug/Z-Image-Turbo-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use TheCodingBug/Z-Image-Turbo-int8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("TheCodingBug/Z-Image-Turbo-int8", 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 text_encoder/quantization_config.json from TheCodingBug/Z-Image-Turbo-int8: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/TheCodingBug/Z-Image-Turbo-int8/resolve/main/text_encoder/quantization_config.json
- Command line
-
hf download hf://TheCodingBug/Z-Image-Turbo-int8/text_encoder/quantization_config.json
-
curl -L -o quantization_config.json https://huggingface.co/TheCodingBug/Z-Image-Turbo-int8/resolve/main/text_encoder/quantization_config.json
1.33 kB
| { | |
| "add_skip_keys": false, | |
| "dequantize_fp32": false, | |
| "dynamic_loss_threshold": 0.01, | |
| "group_size": 0, | |
| "is_integer": true, | |
| "is_training": false, | |
| "modules_dtype_dict": {}, | |
| "modules_to_not_convert": [ | |
| ".norm_out", | |
| ".t_embedder", | |
| ".context_embedder", | |
| ".vid_out", | |
| ".img_in", | |
| ".txt_out", | |
| "patch_embed", | |
| "prediction_coefs", | |
| "patch_emb", | |
| "multi_modal_projector", | |
| "lm_head", | |
| "time_text_embed", | |
| ".img_out", | |
| "model.embed_tokens", | |
| "norm_out", | |
| ".proj_out", | |
| ".emb_in", | |
| "patch_embedding", | |
| ".time_embed", | |
| "embedding_projection", | |
| "lm_head.weight", | |
| "correction_coefs", | |
| ".x_embedder", | |
| "embed_tokens", | |
| ".y_embedder", | |
| ".condition_embedder", | |
| "proj_out", | |
| "model.norm", | |
| ".vid_in", | |
| ".txt_in", | |
| "wte", | |
| ".final_layer", | |
| ".emb_out" | |
| ], | |
| "non_blocking": false, | |
| "quant_conv": false, | |
| "quant_method": "sdnq", | |
| "quantization_device": null, | |
| "quantized_matmul_dtype": null, | |
| "return_device": null, | |
| "sdnq_version": "0.1.3", | |
| "svd_rank": 32, | |
| "svd_steps": 8, | |
| "use_dynamic_quantization": false, | |
| "use_grad_ckpt": true, | |
| "use_quantized_matmul": true, | |
| "use_quantized_matmul_conv": false, | |
| "use_static_quantization": true, | |
| "use_stochastic_rounding": false, | |
| "use_svd": false, | |
| "weights_dtype": "int8" | |
| } | |