How to use from the
Use from the
Diffusers library
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]

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
55
Safetensors
Model size
1.0B params
Tensor type
F16
ยท
U32
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for wabibito/Onyx-Z-Image-Turbo-4bit

Finetuned
(135)
this model