Text-to-Image
Diffusers
Safetensors
custom
bailingmm_moe_v2_lite
image-generation
graphic-design
text-rendering
rgba
Instructions to use inclusionAI/Ming-Image-0.1-Design with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Inference
- Notebooks
- Google Colab
- Kaggle
Publish Ming-Image-0.1-Design release package
Browse filesPublish the validated component-config package and refreshed model card assets; remove the legacy root inference_profile.json.
- .gitattributes +2 -0
- LICENSE +21 -0
- README.md +80 -0
- assets/showcase.webp +3 -0
- assets/transparency_showcase.webp +3 -0
- assets/uiux_leaderboard.webp +0 -0
- connector/model-00001-of-00002.safetensors +1 -1
- connector/model-00002-of-00002.safetensors +1 -1
- inference_profile.json +0 -8
- mllm/config.json +0 -9
- mllm/preprocessor_config.json +21 -26
- mllm/tokenizer.json +2 -2
- mllm/tokenizer_config.json +1 -9
- mlp/model.safetensors +1 -1
- transformer/config.json +3 -1
- transformer/diffusion_pytorch_model-00001-of-00005.safetensors +1 -1
- transformer/diffusion_pytorch_model-00002-of-00005.safetensors +1 -1
- transformer/diffusion_pytorch_model-00003-of-00005.safetensors +1 -1
- transformer/diffusion_pytorch_model-00004-of-00005.safetensors +1 -1
- transformer/diffusion_pytorch_model-00005-of-00005.safetensors +1 -1
.gitattributes
CHANGED
|
@@ -34,3 +34,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
mllm/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
mllm/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/showcase.webp filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/transparency_showcase.webp filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 inclusionAI
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
CHANGED
|
@@ -1,3 +1,83 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
pipeline_tag: text-to-image
|
| 4 |
+
inference: false
|
| 5 |
+
tags:
|
| 6 |
+
- text-to-image
|
| 7 |
+
- image-generation
|
| 8 |
+
- graphic-design
|
| 9 |
+
- text-rendering
|
| 10 |
+
- rgba
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# Ming-Image-0.1-Design
|
| 14 |
+
|
| 15 |
+
Ming-Image-0.1-Design is a 6B text-to-image model for UI, infographics,
|
| 16 |
+
posters, and other text-rich visual designs. It generates complete visual
|
| 17 |
+
compositions and supports RGBA output with transparent backgrounds.
|
| 18 |
+
|
| 19 |
+
## Quick Start
|
| 20 |
+
|
| 21 |
+
Use the companion [Ming-Image repository](https://github.com/inclusionAI/Ming-Image)
|
| 22 |
+
for installation and inference:
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
git clone https://github.com/inclusionAI/Ming-Image
|
| 26 |
+
cd Ming-Image
|
| 27 |
+
pip install -r requirements.txt
|
| 28 |
+
|
| 29 |
+
python infer.py \
|
| 30 |
+
--model inclusionAI/Ming-Image-0.1-Design \
|
| 31 |
+
--task text-to-image \
|
| 32 |
+
--prompt assets/t2i_four_seasons_cabin_prompt.json \
|
| 33 |
+
--resolution 2048 \
|
| 34 |
+
--output-dir outputs/t2i
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Prompt enhancement (PE) can use `Ling-3.0-flash-VL` or `qwen3.8-27B`; see
|
| 38 |
+
[text-to-image prompt rewriting](https://github.com/inclusionAI/Ming-Image#text-to-image-prompt-rewriting).
|
| 39 |
+
|
| 40 |
+
### Transparent-background generation
|
| 41 |
+
|
| 42 |
+
For transparent-background generation, prepend exactly one of the recommended
|
| 43 |
+
RGBA phrases. See the
|
| 44 |
+
[transparent-background generation tip](https://github.com/inclusionAI/Ming-Image#transparent-background-generation-tip).
|
| 45 |
+
|
| 46 |
+
## Recommended settings
|
| 47 |
+
|
| 48 |
+
- Resolution: **2048 x 2048** (recommended), or **1024 x 1024** for faster
|
| 49 |
+
generation.
|
| 50 |
+
- Sampling steps: **12**.
|
| 51 |
+
- CFG scale: **1.0**.
|
| 52 |
+
- Precision: **BF16**.
|
| 53 |
+
- Hardware: **one CUDA GPU with 80 GiB VRAM** (validated configuration).
|
| 54 |
+
|
| 55 |
+
The public inference code maps text-to-image resolution requests to the
|
| 56 |
+
supported 1024 or 2048 bucket.
|
| 57 |
+
|
| 58 |
+
## Gallery
|
| 59 |
+
|
| 60 |
+
### Text-to-image
|
| 61 |
+
|
| 62 |
+
<p align="center">
|
| 63 |
+
<img src="./assets/showcase.webp" width="100%" alt="Ming-Image-0.1-Design generated examples">
|
| 64 |
+
</p>
|
| 65 |
+
|
| 66 |
+
### Transparent-background text-to-image
|
| 67 |
+
|
| 68 |
+
<p align="center">
|
| 69 |
+
<img src="./assets/transparency_showcase.webp" width="100%" alt="Ming-Image-0.1-Design transparent-background examples">
|
| 70 |
+
</p>
|
| 71 |
+
|
| 72 |
+
The checkerboard is used only to preview transparency; it is not part of the
|
| 73 |
+
generated RGBA images.
|
| 74 |
+
|
| 75 |
+
## UI/UX Design leaderboard
|
| 76 |
+
|
| 77 |
+
<p align="center">
|
| 78 |
+
<img src="./assets/uiux_leaderboard.webp" width="100%" alt="Ming-Image-0.1-Design UI/UX Design leaderboard">
|
| 79 |
+
</p>
|
| 80 |
+
|
| 81 |
+
## License
|
| 82 |
+
|
| 83 |
+
This model is released under the [MIT License](./LICENSE).
|
assets/showcase.webp
ADDED
|
Git LFS Details
|
assets/transparency_showcase.webp
ADDED
|
Git LFS Details
|
assets/uiux_leaderboard.webp
ADDED
|
connector/model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4996670464
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:272ddcaee19a442481f3aac317596e6572e402a2a440ff55299ec1314d0f259d
|
| 3 |
size 4996670464
|
connector/model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1178224960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cbecb5693bc3c8809c6ff1c11565714fd625698a5b6257dcc7b2127579a1a96
|
| 3 |
size 1178224960
|
inference_profile.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"schema_version": 1,
|
| 3 |
-
"inference_profile": "generation_edit",
|
| 4 |
-
"alignment_padding_mode": "zero_masked",
|
| 5 |
-
"multi_frame_output": false,
|
| 6 |
-
"vae_input_channels": 4,
|
| 7 |
-
"vae_sample_mode": "argmax"
|
| 8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mllm/config.json
CHANGED
|
@@ -10,11 +10,6 @@
|
|
| 10 |
"BailingMoeV2ForCausalLM"
|
| 11 |
],
|
| 12 |
"attention_dropout": 0.0,
|
| 13 |
-
"auto_map": {
|
| 14 |
-
"AutoConfig": "configuration_bailing_moe_v2.BailingMoeV2Config",
|
| 15 |
-
"AutoModel": "modeling_bailing_moe_v2.BailingMoeV2Model",
|
| 16 |
-
"AutoModelForCausalLM": "modeling_bailing_moe_v2.BailingMoeV2ForCausalLM"
|
| 17 |
-
},
|
| 18 |
"bad_words_ids": null,
|
| 19 |
"begin_suppress_tokens": null,
|
| 20 |
"bos_token_id": null,
|
|
@@ -133,10 +128,6 @@
|
|
| 133 |
"architectures": [
|
| 134 |
"Qwen2_5_VisionTransformer"
|
| 135 |
],
|
| 136 |
-
"auto_map": {
|
| 137 |
-
"AutoConfig": "configuration_qwen2_5_vit.Qwen2_5_VLVisionConfig",
|
| 138 |
-
"AutoModel": "qwen2_5_vit.Qwen2_5_VisionTransformer"
|
| 139 |
-
},
|
| 140 |
"bad_words_ids": null,
|
| 141 |
"begin_suppress_tokens": null,
|
| 142 |
"bos_token_id": null,
|
|
|
|
| 10 |
"BailingMoeV2ForCausalLM"
|
| 11 |
],
|
| 12 |
"attention_dropout": 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"bad_words_ids": null,
|
| 14 |
"begin_suppress_tokens": null,
|
| 15 |
"bos_token_id": null,
|
|
|
|
| 128 |
"architectures": [
|
| 129 |
"Qwen2_5_VisionTransformer"
|
| 130 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
"bad_words_ids": null,
|
| 132 |
"begin_suppress_tokens": null,
|
| 133 |
"bos_token_id": null,
|
mllm/preprocessor_config.json
CHANGED
|
@@ -1,28 +1,23 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
"image_processor_type": "BailingMM2ImageProcessor",
|
| 24 |
-
"return_attention_mask": true,
|
| 25 |
-
"padding_side": "right",
|
| 26 |
-
"padding_value": 0.0,
|
| 27 |
-
"processor_class": "BailingMM2Processor"
|
| 28 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"min_pixels": 451584,
|
| 3 |
+
"max_pixels": 451584,
|
| 4 |
+
"patch_size": 14,
|
| 5 |
+
"temporal_patch_size": 2,
|
| 6 |
+
"merge_size": 2,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.48145466,
|
| 9 |
+
0.4578275,
|
| 10 |
+
0.40821073
|
| 11 |
+
],
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.26862954,
|
| 14 |
+
0.26130258,
|
| 15 |
+
0.27577711
|
| 16 |
+
],
|
| 17 |
+
"image_token": "<image>",
|
| 18 |
+
"video_token": "<video>",
|
| 19 |
+
"image_processor_type": "BailingMM2ImageProcessor",
|
| 20 |
+
"return_attention_mask": true,
|
| 21 |
+
"padding_side": "right",
|
| 22 |
+
"padding_value": 0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
mllm/tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7ff01708d504f7bf4dbf7f5815adde57bab9a40e7f563ab6ad1acace4464917
|
| 3 |
+
size 12210709
|
mllm/tokenizer_config.json
CHANGED
|
@@ -2330,13 +2330,5 @@
|
|
| 2330 |
"gmask_token": "[gMASK]",
|
| 2331 |
"merges_file": null,
|
| 2332 |
"model_max_length": 1000000000000000019884624838656,
|
| 2333 |
-
"pad_token": "<|role_end|>"
|
| 2334 |
-
"auto_map": {
|
| 2335 |
-
"AutoTokenizer": [
|
| 2336 |
-
"tokenization_bailing.BailingTokenizer",
|
| 2337 |
-
null
|
| 2338 |
-
]
|
| 2339 |
-
},
|
| 2340 |
-
"tokenizer_class": "BailingTokenizer",
|
| 2341 |
-
"trust_remote_code": true
|
| 2342 |
}
|
|
|
|
| 2330 |
"gmask_token": "[gMASK]",
|
| 2331 |
"merges_file": null,
|
| 2332 |
"model_max_length": 1000000000000000019884624838656,
|
| 2333 |
+
"pad_token": "<|role_end|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2334 |
}
|
mlp/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 124837576
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53e47c1ec942749f07025a41be148f5e8364d8587aa2d954969716abe521b77b
|
| 3 |
size 124837576
|
transformer/config.json
CHANGED
|
@@ -29,5 +29,7 @@
|
|
| 29 |
"qk_norm": true,
|
| 30 |
"rope_theta": 256.0,
|
| 31 |
"siglip_feat_dim": null,
|
| 32 |
-
"t_scale": 1000.0
|
|
|
|
|
|
|
| 33 |
}
|
|
|
|
| 29 |
"qk_norm": true,
|
| 30 |
"rope_theta": 256.0,
|
| 31 |
"siglip_feat_dim": null,
|
| 32 |
+
"t_scale": 1000.0,
|
| 33 |
+
"alignment_padding_mode": "zero_masked",
|
| 34 |
+
"multi_frame_output": false
|
| 35 |
}
|
transformer/diffusion_pytorch_model-00001-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2990953408
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1488ae867d45a4c184fa0df9fde68d8f7bd9c2dea52b611b77fc6bbd685d9d70
|
| 3 |
size 2990953408
|
transformer/diffusion_pytorch_model-00002-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2924069536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f9441923d41408c74bd3761a34eb4db2c583fc08d5785a2c7f2260c8e17089e
|
| 3 |
size 2924069536
|
transformer/diffusion_pytorch_model-00003-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2973221624
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45cbd9a557c20c7ae5d676049b301f4856046be2f802f3e9e7de477c77a35b8c
|
| 3 |
size 2973221624
|
transformer/diffusion_pytorch_model-00004-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2973221616
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73c70763356a57d5d3cd04e91e714cb0b86081a3e922b594659b58f2ab49bc90
|
| 3 |
size 2973221616
|
transformer/diffusion_pytorch_model-00005-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 448391960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c178789512c7f5d45a7b0c1c561f868704cd0fa77d4cb32f8d7ea06b2707781
|
| 3 |
size 448391960
|