Instructions to use Disty0/Z-Image-Turbo-SDNQ-uint4-svd-r32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Disty0/Z-Image-Turbo-SDNQ-uint4-svd-r32 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Disty0/Z-Image-Turbo-SDNQ-uint4-svd-r32", 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
baby can you also make a int8 version for us?
👄
You can quantize the original model on model load. Quantization doesn't really add any extra overhead or memory usage.
I only upload UINT4 SVD versions because svd takes a little bit longer to quantize and uint4 svd has the minimum file size with good quality.
I also don't want to waste a terabyte of disk space just for different quantization types of the same model. Use the original model and quantize on load.
But i can make an exception for Z-Image only for INT8 as it is still small and we can use INT8 MatMul without any bit packing or svd overhead.
You can quantize the original model on model load. Quantization doesn't really add any extra overhead or memory usage.
https://huggingface.co/Disty0/Z-Image-Turbo-SDNQ-int8
love you~ and offering prebuild files is even better♥️
👄♥️👄♥️👄♥️👄♥️👄♥️👄♥️👄♥️👄♥️👄♥️👄♥️🔥🤗👊