Instructions to use wabibito/Onyx-Z-Image-Turbo-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wabibito/Onyx-Z-Image-Turbo-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("wabibito/Onyx-Z-Image-Turbo-4bit", torch_dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - MLX
How to use wabibito/Onyx-Z-Image-Turbo-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Onyx-Z-Image-Turbo-4bit wabibito/Onyx-Z-Image-Turbo-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Draw Things
- DiffusionBee
Onyx Z Image Turbo โ 4-bit MLX
A 4-bit MLX quantization of the official Tongyi-MAI/Z-Image-Turbo, built for
on-device inference in the Onyx app with a documented, reproducible pipeline.
- Source: official
Tongyi-MAI/Z-Image-Turbo(diffusers), quantized in-house. - Quantization: 4-bit, group 64, MLX. Only transformer + text-encoder Linear leaves are quantized;
norms/embeddings/convs and the whole VAE stay fp16. Components:
transformer/,text_encoder/(Qwen3),vae/(16-ch FLUX-family),tokenizer/,scheduler/. - Inference: ~8 steps, CFG off (distilled).
- Verified: reloaded through the Onyx engine and render-checked before publish.
Quantized derivative for efficient on-device use; all credit for the model to Tongyi-MAI (Alibaba).
- Downloads last month
- 53
Model size
1.0B params
Tensor type
F16
ยท
U32 ยท
Hardware compatibility
Log In to add your hardware
Quantized
Model tree for wabibito/Onyx-Z-Image-Turbo-4bit
Base model
Tongyi-MAI/Z-Image-Turbo