Text-to-Image
Diffusers
Safetensors
English
Chinese
LLaDAImagePipeline
image-generation
image-editing
image-to-image
Instructions to use inclusionAI/LLaDA-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use inclusionAI/LLaDA-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("inclusionAI/LLaDA-Image", 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
| { | |
| "architectures": [ | |
| "LLaDA2MoeModelLM" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_llada2uni_moe.LLaDA2MoeConfig", | |
| "AutoModel": "modeling_llada2uni_moe.LLaDA2MoeModelLM", | |
| "AutoModelForCausalLM": "modeling_llada2uni_moe.LLaDA2MoeModelLM" | |
| }, | |
| "attention_dropout": 0.0, | |
| "embedding_dropout": 0.0, | |
| "first_k_dense_replace": 1, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "image_token_offset": 157184, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5120, | |
| "max_position_embeddings": 16384, | |
| "model_type": "llada2_moe_veomni", | |
| "moe_intermediate_size": 512, | |
| "moe_router_enable_expert_bias": true, | |
| "n_group": 8, | |
| "norm_topk_prob": true, | |
| "num_attention_heads": 16, | |
| "num_experts": 256, | |
| "num_experts_per_tok": 8, | |
| "num_hidden_layers": 20, | |
| "num_key_value_heads": 4, | |
| "num_shared_experts": 1, | |
| "output_dropout": 0.0, | |
| "output_router_logits": false, | |
| "pad_token_id": 156892, | |
| "partial_rotary_factor": 0.5, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": { | |
| "mrope_section": [ | |
| 16, | |
| 24, | |
| 24 | |
| ], | |
| "rope_type": "default", | |
| "type": "default" | |
| }, | |
| "rope_theta": 600000, | |
| "router_dtype": "fp32", | |
| "routed_scaling_factor": 2.5, | |
| "score_function": "sigmoid", | |
| "sliding_window": null, | |
| "tie_word_embeddings": false, | |
| "topk_group": 4, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.51.0", | |
| "use_bias": false, | |
| "use_cache": false, | |
| "use_qk_norm": true, | |
| "use_qkv_bias": false, | |
| "vocab_size": 173568 | |
| } | |