Instructions to use jmcgomes/Ming-Image-0.2-Design-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jmcgomes/Ming-Image-0.2-Design-fp8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("jmcgomes/Ming-Image-0.2-Design-fp8", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("jmcgomes/Ming-Image-0.2-Design-fp8", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Ming-Image-0.2-Design, fp8
An fp8 build of inclusionAI/Ming-Image-0.2-Design
(MIT, revision 3538f4c311cf8f5256d631ddb7f47793f741aa2e), sized for 24 GB GPUs.
ming_dit_fp8.safetensors(6.5 GiB): the DiT, with the attention and FFN Linears of its 30 main blocks in float8_e4m3fn with a per-tensor scale (<module>._wscale). Embedders, refiners, adaLN and the final layer are unchanged bf16.ming_mllm_grouped_fp8.safetensors(17.4 GiB): the MLLM, with each MoE layer's 256 routed experts stacked into<layer>.mlp.grouped.{gu,dn}in float8_e4m3fn with per-row bf16 scales ({gu,dn}_s). Everything else is unchanged.connector/,mlp/,vae/,scheduler/, the configs and the tokenizer are the original files. The original bf16mllm/andtransformer/shards are left out (their configs and index files are kept).
Dequantization error per quantized tensor: 2.6-2.9% relative. The expert layout is not a standard transformers or
diffusers format: it needs a loader that knows about it (a stacked-expert bmm MoE and an fp8 Linear for the DiT).
The original inference code is at inclusionAI/Ming-Image.
License: MIT, as the original model (LICENSE).
- Downloads last month
- 19
Model tree for jmcgomes/Ming-Image-0.2-Design-fp8
Base model
inclusionAI/Ming-Image-0.2-Design