Run this model with HF Jobs
Run mlx-community/Z-Image-bf16 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mlx-community/Z-Image-bf16. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/Z-Image-bf16 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mlx-community/Z-Image-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Z-Image-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/Z-Image-bf16 --local-dir Z-Image-bf16
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
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).
Parity (Swift port vs PyTorch goldens, fp32/CPU stream)
- Full 6.15B S3-DiT: cosine β₯0.9999999 (both aligned + padded token cases)
- FLUX.1-dev AE decode: 118 dB Β· Qwen3-4B encoder: token ids exact, features cosine 1.0000000
- Full pipeline e2e: 105β108 dB (256Β²/CPU)
Use (Swift / MLXEngine)
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
Model tree for mlx-community/Z-Image-bf16
Base model
Tongyi-MAI/Z-Image
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/Z-Image-bf16 --local-dir Z-Image-bf16