▶ GGUF build for stable-diffusion.cpp
This is the GGUF build (stable-diffusion.cpp: Vulkan, CUDA, Metal). LLMTray — IPSupport's local AI app for Apple Silicon — runs MLX models; there is no MLX build of this model from us yet.
Ming-Image-0.2-Design (6B diffusion transformer, Ling-mini-2.0 16B MoE text encoder) converted to GGUF with stable-diffusion.cpp's own converter and measured against the bf16 original in the same runtime. Includes the 0.2 text encoder as GGUF: stable-diffusion.cpp loads the encoder in bf16 or GGUF, not in ComfyUI's int8.
| File | Size | Peak GPU memory¹ | LPIPS to bf16 ↓ | SSIM ↑ | PSNR |
|---|---|---|---|---|---|
| bf16 original (reference) | 12.3 GB + 36.7 GB encoder | 46.2 GiB | — | — | — |
ming-image-0.2-design-q8_0.gguf |
6.54 GB | 26.4 GiB | 0.184 | 0.850 | 21.3 |
ming-image-0.2-design-q6_K.gguf |
5.05 GB | 25.0 GiB | 0.205 | 0.831 | 20.3 |
ming-image-0.2-design-q4_K.gguf |
3.47 GB | 23.5 GiB | 0.336 | 0.731 | 17.1 |
text-encoder-ling-mini-2.0-ming-image-0.2-q8_0.gguf |
19.5 GB | (rows above) | |||
text-encoder-ling-mini-2.0-ming-image-0.2-q4_K.gguf |
10.5 GB | 15.5 GiB with the Q4_K transformer | 0.382² | 0.696² | 16.2² |
tokenizer.json |
required by --tokenizer |
¹ Whole sd-cli process at Ming's native 2560×1440 with --offload-to-cpu --vae-tiling. The peak is the text-encoder stage: the Q8_0 encoder alone is
17.2 GiB in memory. The quantized rows use the Q8_0 encoder.
² Q4_K transformer and Q4_K text encoder together.
On a 16 GB card. With --max-vram 15 (a 16 GB card's budget) both builds
tried ran: Q8_0 transformer + Q8_0 encoder peaked at 15.5 GiB at 2560×1440 and
at 1920×1088, Q4_K + Q4_K encoder at 14.8 GiB: stable-diffusion.cpp streams the
weights within the budget. Measured on CUDA; on Vulkan (Intel Arc, AMD) the same
flags should behave alike but were not tested.
Use Q8_0; Q6_K is close. Both keep the bf16 layout at the same seed with changed details (lettering, small objects); Q4_K changes more.
Norm weights are f32 in these files (updated 2026-11-30).
stable-diffusion.cpp's converter quantizes 1-D tensors along with the matrices
unless told otherwise: norm weights, cap_embedder.0 and, in the encoder's MoE,
the router's expert_bias. The first upload of this repo had them quantized
(Q8_0 was then at LPIPS 0.235, Q6_K at 0.435, Q4_K at 0.566). The files here
were converted again with every 1-D tensor kept in f32 and checked.
How it was measured: 6 photographic prompts (period scenes, 1954–1976), seed 1,
12 steps, euler, CFG 1, 2560×1440, through sd-cli for every build, on an
NVIDIA GB10; each image compared with the bf16 build's image of the same prompt
(LPIPS AlexNet, SSIM and PSNR on 8-bit RGB). stable-diffusion.cpp is
deterministic (a bf16 rerun gives byte-identical images), so the differences
are the quantization's.
inclusionAI's 0.1 and 0.2 repositories ship the same Ling-mini-2.0 weights
(mllm/, identical LFS hashes); 0.2 changed only the connector and the
projection heads (connector/, mlp/). ComfyUI publishes the 0.2 encoder
only in int8/w4a8, which stable-diffusion.cpp does not load. We took
ComfyUI's bf16 0.1 encoder, checked that its 345 connector and projection
tensors equal inclusionAI's 0.1 files (cast to bf16), replaced them with the
0.2 tensors (cast the same way) and converted the result to GGUF.
sd-cli \
--diffusion-model ming-image-0.2-design-q8_0.gguf \
--llm text-encoder-ling-mini-2.0-ming-image-0.2-q8_0.gguf \
--tokenizer tokenizer.json \
--vae ming_image_vae_bf16.safetensors \
-p "Documentary photograph from 1961 inside a civil-defense fallout shelter" \
--steps 12 --cfg-scale 1 --sampling-method euler \
-W 2560 -H 1440 --offload-to-cpu --vae-tiling
The VAE is vae/ming_image_vae_bf16.safetensors in
Comfy-Org/Ming-Image (not included here).
Transformer converted with sd-cli -M convert --type <q8_0|q6_K|q4_K> (every 1-D tensor kept in f32 with --tensor-type-rules) from
ComfyUI's ming_image_0.2_design_bf16.safetensors; encoder built as above
and converted the same way. Scripts and full results:
rromenskyi/quant-ternary,
image-gen-bakeoff/ (poc/ming_te_02.py, spark-ltx/img_convert.sh,
poc/eval_sdcpp.py, docs/FINDINGS.md).
Local-first AI tools for macOS by IPSupport — nothing leaves your Mac.
This is the GGUF build (stable-diffusion.cpp).
This repository contains a quantized conversion of a third-party model, provided "as is", without warranty of any kind, express or implied. IPSupport LLC did not train the model and is not responsible for its content, outputs or behavior, or for any damage, loss or liability arising from its use. You are responsible for evaluating the model and for how you use it, including compliance with applicable laws and with the base model's license and terms.
Licensed under the MIT License, the same license as the base model — see LICENSE.
Modified from inclusionAI/Ming-Image-0.2-Design: the diffusion transformer and the text encoder (Ling-mini-2.0 with the 0.2 connector and projections) were converted to GGUF and quantized (Q8_0, Q6_K, Q4_K). The files in this repo are therefore modified versions of the original, not the original files.