Z-Image (MLX)
Collection
Alibaba Tongyi Z-Image (Apache-2.0) S3-DiT text-to-image, MLX bf16 snapshots for Apple Silicon. Swift port: https://github.com/xocialize/z-image-swift โข 2 items โข Updated
How to use mlx-community/Z-Image-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Z-Image-bf16 mlx-community/Z-Image-bf16
MLX (bf16) conversion of Tongyi-MAI/Z-Image (Apache-2.0) for Apple Silicon โ a 6.15B single-stream S3-DiT text-to-image model (Qwen3-4B thinking-template conditioning โ single-stream DiT โ FLUX.1-dev AE decode). Base tier: non-distilled ~28-step with CFG + negative prompts (scheduler shift 6.0) โ the quality / LoRA-substrate tier.
Standard diffusers-tree snapshot (transformer/ text_encoder/ vae/ tokenizer/ scheduler/) with the
transformer stored at bf16. Loaded by the Swift/MLX port; int8/int4 are produced at load time
(correct resident footprint โ a q4 pipeline โ 6 GB fits a 16 GB Mac).
import MLXZImage
import MLXToolKit
let package = ZImageTurboT2IPackage(configuration: .turbo(quant: .int4, snapshotPath: "<this repo dir>"))
try await package.load()
let r = try await package.run(T2IRequest(prompt: "a lighthouse at dusk, photorealistic",
width: 1024, height: 1024, seed: 42)) as! T2IResponse
Quantized
Base model
Tongyi-MAI/Z-Image