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-3bit", 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 โ€” 3-bit MLX

A 3-bit MLX quantization of the official Tongyi-MAI/Z-Image, built for on-device inference in the Onyx app with a documented, reproducible pipeline.

  • Source: official Tongyi-MAI/Z-Image (diffusers), quantized in-house.
  • Quantization: 3-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: ~22-28 steps + real guidance (undistilled). Built as MIXED 3/4-bit: quant-sensitive layers (embedders, final layer, adaLN modulation, attention) stay 4-bit; the FFN bulk is 3-bit. Uniform 3-bit mottles the undistilled DiT; this recovers a clean image at near-3-bit size.
  • 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
39
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-3bit

Finetuned
(65)
this model