Run this model with HF Jobs

Run mlx-community/Ming-Image-0.2-Design-4bit 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/Ming-Image-0.2-Design-4bit. 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/Ming-Image-0.2-Design-4bit 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.

mlx-community/Ming-Image-0.2-Design-4bit

Pre-quantized MLX tier of inclusionAI/Ming-Image-0.2-Design (MIT) for Apple Silicon, loaded by the Swift/MLX port ming-image-swift (v0.4.0 and later). 4-bit tier: a 4-bit MLLM with an 8-bit connector and DiT. Its memory fits a 36 GB Mac, at a small measured cost in exact text.

A Mac never has to hold the bf16 weights to use this tier. Total size: 20.5 GB; the bf16 repo is 49.8 GB. It is part of the Ming-Image (MLX) collection, next to mlx-community/Ming-Image-0.2-Design-bf16, whose card says what changed from 0.1, and the 8-bit tier.

What is quantized

Component This tier
mllm/: MoE MLLM (attention, dense and shared-expert MLPs, the 256 routed experts) 4-bit
connector/: Qwen2-1.5B connector 8-bit
transformer/: DiT attention and feed-forward 8-bit
Kept at full precision: the MoE routers, embeddings, norms, the Qwen2.5 ViT, the f32 projection heads (mlp/), the VAE, and the DiT's conditioning layers (adaLN, embedders, final layer) bf16 / f32

Weight-only affine quantization, group size 64. The DiT never goes below 8 bits: weight-only int4 on a DiT is real quality damage that buys no speed.

The layout is the bf16 repo's upstream tree, with MLX .scales / .biases stored beside each quantized weight and a quantization block in each quantized component's config.json. The Swift loader reads it as published. Loading this repo gives parameters bit-identical to quantizing the bf16 snapshot at load time (verified for every parameter).

Quality

Gate (same noise and scorers as bf16) bf16 8-bit 4-bit
Text boards: exact strings · fully correct boards 119/122 · 13/16 119/122 · 13/16 118/122 · 12/16
Zones reserved for live text: scored clean · text-free 20/20 · 20/20 20/20 · 20/20 20/20 · 20/20
… of which the zone is a transparent hole, not a backing (0.1: 1) 4 4 4
Native alpha: transparent subjects, phrase 1 · phrase 2 6/6 · 6/6 6/6 · 6/6 6/6 · 6/6
Conditioning drift vs fp32 truth (learnable relL2, short / json prompt) 0.0030 / 0.0032 0.0034 / 0.0040 0.0074 / 0.0090

The cost against bf16 is one more text board with a misspelled word. Unlike the 0.1 4-bit tier, native alpha holds: all six test subjects come back transparent.

Opaque requests

The model draws RGBA whatever the request, and 0.2 often leaves part of the canvas transparent when the prompt states no background or asks for an area "left open": 4 of 6 terse prompts ("a poster for …") came back as the design on a transparent canvas (0.1: 1 of 6), and 4 of the 20 zone designs have a transparent hole where the zone should be (0.1: 1). No prompt phrase we tried prevents it. A prompt that states its background, or a structured prompt with a background layer, does not leak (0 of the 16 text boards). ming-image-swift 0.4.1 and later return any request that is not background: .transparent flattened over white. For reserved-zone backings, 0.1 is still the better checkpoint.

Memory

Measured on the 0.1 tier, whose tensor shapes are identical, on an M5 Max as process phys_footprint, with MLX's buffer cache capped at 2 GB (MLXEngine's default).

  • Post-load resident: 7.6 GB. Peak process footprint: 19.7 GB at 1024², 2048² and 2560×1440 alike. The peak is the conditioning stage, when the 4-bit MLLM loads, conditions and is released.
  • The 2048²-class VAE decode is bounded (chunked mid-attention plus a tiled up path, exact).
  • MLXEngine declares 7.9 GB resident plus 14.6 GB activation, which is admitted on a 36 GB Mac.
  • Quantization saves memory, not time: the DiT is compute-bound.

Use (Swift / MLXEngine)

import MLXMingImage
import MLXToolKit

let package = MingImageT2IPackage(configuration: MingImageConfiguration(quant: .int4))
// snapshotPath nil: the engine materializes this repo; quant .int4 selects it
try await package.load()
let response = try await package.run(T2IRequest(
    prompt: "A modern tech conference poster titled 'MLX SUMMIT 2026', bold geometric shapes",
    width: 1024, height: 1024, seed: 42)) as! T2IResponse

Code: https://github.com/xocialize/ming-image-swift

License

MIT, as the upstream weights. The upstream LICENSE is included.

Downloads last month
133
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/Ming-Image-0.2-Design-4bit

Finetuned
(13)
this model

Collection including mlx-community/Ming-Image-0.2-Design-4bit