Run this model with HF Jobs

Run vanch007/Ming-Image-0.2-Design-Layer-mlx-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/vanch007/Ming-Image-0.2-Design-Layer-mlx-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/vanch007/Ming-Image-0.2-Design-Layer-mlx-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.

Ming-Image-0.2-Design-Layer-mlx-bf16

MLX conversion of inclusionAI/Ming-Image-0.2-Design-Layer (MIT, ยฉ inclusionAI) for the port at vanch007/mlx-ming-image-design-layer. Same folder layout as upstream; the DiT shards are pre-cast to bfloat16. This is not an official inclusionAI release.

Side-by-side: MLX (top) vs upstream torch MPS BF16 (bottom)

Quick start

git clone https://github.com/vanch007/mlx-ming-image-design-layer.git
cd mlx-ming-image-design-layer
uv venv --python 3.13 .venv
uv pip install --python .venv/bin/python -e .

hf download vanch007/Ming-Image-0.2-Design-Layer-mlx-bf16 --local-dir /path/to/weights

.venv/bin/python scripts/run_e2e.py \
  --model /path/to/weights \
  --image poster.png \
  --prompt "Decompose this image into 6 layers: ..." \
  --resolution 512 --seed 42 \
  --out outputs/run1

Recommended: leave stage freeing on (the default) with BF16 weights. For lower memory, add --expert-bits 8 (MoE experts are quantized at load time; there is no separate 8-bit-experts pack). --dit-bits 8 is optional.

Verified parity (512 px)

christmas_poster sample, 6 layers, 544ร—448, 12-step schedule / 11 DiT steps, CFG 2.0, upstream torch noise injected. Metrics vs upstream torch MPS BF16 on an M3 Max (128 GB), 2026-12-04 (Asia/Saigon, UTC+7). The BF16 default with stage freeing is bit-identical to a run that keeps models resident.

run process RSS peak footprint MLX peak (LLM / DiT) latent cos min / mean RGBA PSNR min / mean alpha IoU min / mean
BF16 default, stages freed 5.24 GiB 34.2 GiB 32.79 / 14.16 GiB 0.99918 / 0.99938 47.5 / 49.5 dB 0.940 / 0.982
--expert-bits 8, freed 5.65 GiB 26.5 GiB 20.93 / 14.16 GiB 0.99911 / 0.99937 46.95 / 49.44 dB 0.946 / 0.983
experts 8 + --dit-bits 8, freed 5.24 GiB 28.1 GiB 20.93 / 13.61 GiB 0.99906 / 0.99926 46.97 / 48.86 dB 0.939 / 0.980

RSS is macOS ru_maxrss. Footprint is /usr/bin/time -l peak memory footprint (includes Metal unified memory). Conditioning vs an upstream FP32 dump: cap_feats cos 0.99543 (8-bit experts 0.99576), cap_feats_2 cos 0.99898 (8-bit 0.99899). End-to-end wall-clock times are not published (too much session variance on this machine).

Layout

config.json  LICENSE  mlx_config.json  README.md
mllm/         # BF16 MoE + tokenizer / processor (already BF16 upstream)
transformer/  # DiT, pre-cast to BF16
connector/    # FP32 Qwen2 connector (the port's default)
mlp/          # condition heads, FP32
vae/          # RGBA causal-3D VAE
scheduler/
assets/

The CLI accepts this directory or a local copy of the original inclusionAI/Ming-Image-0.2-Design-Layer checkpoint.

License

Weights are MIT, ยฉ inclusionAI, same as inclusionAI/Ming-Image-0.2-Design-Layer. The VAE and connector derive from the Qwen-Image VAE and Qwen2-1.5B (Apache-2.0) as packaged upstream. Port code is MIT, see the GitHub repository.

Downloads last month
14
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 vanch007/Ming-Image-0.2-Design-Layer-mlx-bf16

Finetuned
(7)
this model