Ming-Image-0.2-Design ported to MLX for Apple silicon
Ming-Image-0.2-Design is a text-to-image model from inclusionAI. This repository contains an unofficial native port of it to MLX[1] for Apple silicon, and it covers only text-to-image generation. Inference runs in pure MLX, so PyTorch, transformers and diffusers are not needed. The port is not affiliated with or endorsed by inclusionAI, and the model is under the MIT license.
Generating 1024² images requires at least 32 GB of unified memory, and 48 GB or more is recommended for 2048². The download is about 30 GB. The vision tower, the LM head and the VAE encoder are left out because text-to-image does not need them. Output is an RGBA PNG, and the port requires Python 3.10 or newer.
The author measured speed on a MacBook Pro M5 Max with 128 GB and 12 steps, and the speed-ups came from a fused Metal kernel, mx.compile and other changes. Each component was checked against the upstream PyTorch implementation. The BF16[2] MLX text encoder is closer to FP32 than upstream's BF16 runs (final-layer cosine 0.988 vs 0.897). The port is limited to square 1024² or 2048² images, and the DiT[3] was tested only on an M5 Max under macOS 26.
Repository Ming-Image-0.2-Design huggingface.co
Text-to-image model from inclusionAI; this entry describes an unofficial MLX port of it for generating images on Apple silicon Macs.
Read the original huggingface.coDiscussion
Sources
-
huggingface.co
Ming-Image-0.2-Design ported to MLX




