Instructions to use amarck/Ming-Image-0.2-Design-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use amarck/Ming-Image-0.2-Design-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download amarck/Ming-Image-0.2-Design-MLX --local-dir Ming-Image-0.2-Design-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download config.json from amarck/Ming-Image-0.2-Design-MLX: direct link, hf CLI and curl.
- Browser
- Download file 6.34 kB
-
https://huggingface.co/amarck/Ming-Image-0.2-Design-MLX/resolve/main/config.json
- Command line
-
hf download hf://amarck/Ming-Image-0.2-Design-MLX/config.json
-
curl -L -o config.json https://huggingface.co/amarck/Ming-Image-0.2-Design-MLX/resolve/main/config.json
6.34 kB
| { | |
| "llm": { | |
| "_name_or_path": "", | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "BailingMoeV2ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bad_words_ids": null, | |
| "begin_suppress_tokens": null, | |
| "bos_token_id": null, | |
| "chunk_size_feed_forward": 0, | |
| "cross_attention_hidden_size": null, | |
| "decoder_start_token_id": null, | |
| "diversity_penalty": 0.0, | |
| "do_sample": false, | |
| "early_stopping": false, | |
| "embedding_dropout": 0.0, | |
| "encoder_no_repeat_ngram_size": 0, | |
| "eos_token_id": 156895, | |
| "exponential_decay_length_penalty": null, | |
| "finetuning_task": null, | |
| "first_k_dense_replace": 1, | |
| "forced_bos_token_id": null, | |
| "forced_eos_token_id": null, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "image_end_token": 157159, | |
| "image_patch_token": 157157, | |
| "image_start_token": 157158, | |
| "video_end_token": 157161, | |
| "video_patch_token": 157175, | |
| "video_start_token": 157160, | |
| "initializer_range": 0.006, | |
| "intermediate_size": 5120, | |
| "is_decoder": false, | |
| "is_encoder_decoder": false, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "length_penalty": 1.0, | |
| "max_length": 20, | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 28, | |
| "min_length": 0, | |
| "model_type": "bailing_moe_v2", | |
| "moe_intermediate_size": 512, | |
| "moe_router_topk_scaling_factor": 2.5, | |
| "n_group": 8, | |
| "no_repeat_ngram_size": 0, | |
| "norm_head": false, | |
| "norm_softmax": false, | |
| "norm_topk_prob": true, | |
| "num_attention_heads": 16, | |
| "num_beam_groups": 1, | |
| "num_beams": 1, | |
| "num_experts": 256, | |
| "num_experts_per_tok": 8, | |
| "num_hidden_layers": 20, | |
| "num_key_value_heads": 4, | |
| "num_return_sequences": 1, | |
| "num_shared_experts": 1, | |
| "output_attentions": false, | |
| "output_dropout": 0.0, | |
| "output_hidden_states": false, | |
| "output_router_logits": false, | |
| "output_scores": false, | |
| "pad_token_id": 156892, | |
| "partial_rotary_factor": 0.5, | |
| "prefix": null, | |
| "pretraining_tp": 1, | |
| "problem_type": null, | |
| "pruned_heads": {}, | |
| "remove_invalid_values": false, | |
| "repetition_penalty": 1.0, | |
| "return_dict": true, | |
| "return_dict_in_generate": false, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": { | |
| "factor": null, | |
| "type": "video_rope" | |
| }, | |
| "rope_theta": 600000, | |
| "routed_scaling_factor": 2.5, | |
| "router_type": "MultiRouter", | |
| "sep_token_id": null, | |
| "sliding_window": 4096, | |
| "spatial_merge_size": 2, | |
| "suppress_tokens": null, | |
| "task_specific_params": null, | |
| "temperature": 1.0, | |
| "tf_legacy_loss": false, | |
| "tie_encoder_decoder": false, | |
| "tie_word_embeddings": false, | |
| "tokenizer_class": null, | |
| "tokens_per_second": 2, | |
| "top_k": 50, | |
| "top_p": 1.0, | |
| "topk_group": 4, | |
| "torch_dtype": "bfloat16", | |
| "torchscript": false, | |
| "typical_p": 1.0, | |
| "use_bfloat16": false, | |
| "use_bias": false, | |
| "use_cache": true, | |
| "use_expert_bias": true, | |
| "use_qkv_bias": false, | |
| "use_sliding_window": false, | |
| "vocab_size": 157184 | |
| }, | |
| "connector": { | |
| "architectures": [ | |
| "Qwen2ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 151645, | |
| "hidden_act": "silu", | |
| "hidden_size": 1536, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 8960, | |
| "layer_types": [ | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 21, | |
| "model_type": "qwen2", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 2, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": null, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "4.57.1", | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| }, | |
| "mlp": { | |
| "use_identity_mlp": true, | |
| "use_vlm_directvlm_condition": true, | |
| "use_learnable_token_condition": true, | |
| "diffusion_c_input_dim": 2560, | |
| "text_encoder_norm": false, | |
| "connector_norm": false, | |
| "img_gen_scales": [ | |
| 16 | |
| ], | |
| "selected_hidden_states_layers": [ | |
| 5, | |
| 12, | |
| 20 | |
| ], | |
| "diffusion_inner_dim": 3840 | |
| }, | |
| "transformer": { | |
| "_class_name": "DiffusionTransformer", | |
| "_diffusers_version": "0.36.0", | |
| "_name_or_path": "", | |
| "all_f_patch_size": [ | |
| 1 | |
| ], | |
| "all_patch_size": [ | |
| 2 | |
| ], | |
| "axes_dims": [ | |
| 32, | |
| 48, | |
| 48 | |
| ], | |
| "axes_lens": [ | |
| 20480, | |
| 512, | |
| 512 | |
| ], | |
| "cap_feat_dim": 2560, | |
| "dim": 3840, | |
| "in_channels": 16, | |
| "n_heads": 30, | |
| "n_kv_heads": 30, | |
| "n_layers": 30, | |
| "n_refiner_layers": 2, | |
| "norm_eps": 1e-05, | |
| "qk_norm": true, | |
| "rope_theta": 256.0, | |
| "siglip_feat_dim": null, | |
| "t_scale": 1000.0, | |
| "alignment_padding_mode": "zero_masked", | |
| "multi_frame_output": false | |
| }, | |
| "vae": { | |
| "_class_name": "AutoencoderKLQwenImage", | |
| "_diffusers_version": "0.36.0.dev0", | |
| "attn_scales": [], | |
| "base_dim": 96, | |
| "dim_mult": [ | |
| 1, | |
| 2, | |
| 4, | |
| 4 | |
| ], | |
| "dropout": 0.0, | |
| "input_channels": 4, | |
| "latents_mean": null, | |
| "latents_std": null, | |
| "scaling_factor": 8.0064, | |
| "shift_factor": 0.0, | |
| "num_res_blocks": 2, | |
| "temperal_downsample": [ | |
| false, | |
| true, | |
| true | |
| ], | |
| "z_dim": 16 | |
| }, | |
| "scheduler": { | |
| "_class_name": "FlowMatchEulerDiscreteScheduler", | |
| "_diffusers_version": "0.37.0.dev0", | |
| "num_train_timesteps": 1000, | |
| "use_dynamic_shifting": false, | |
| "shift": 6.0 | |
| }, | |
| "dtype": "bfloat16" | |
| } |