LLaDA2.0-Uni: Unifying Multimodal Understanding and Generation with Diffusion Large Language Model
Model source
Source excerpt
LLaDA2.0-Uni: Unifying Multimodal Understanding and Generation with Diffusion Large Language Model
Sources
1 sourceVerified Sep 8
Model artifacts
18 artifactsSource excerpts
2 excerptsimage_tokenizer/model.safetensors
safetensors · 2.23 GB · SHA-256 e0a11a82ad22…dc49 · Hugging Face
model-00001-of-00013.safetensors
safetensors · 2.50 GB · SHA-256 924318248ea8…4196 · Hugging Face
Downloadmodel-00002-of-00013.safetensors
safetensors · 2.50 GB · SHA-256 d3af49221449…f66a · Hugging Face
Downloadmodel-00003-of-00013.safetensors
safetensors · 2.50 GB · SHA-256 ebe902807281…dd05 · Hugging Face
Downloadmodel-00004-of-00013.safetensors
safetensors · 2.50 GB · SHA-256 0edc4f0f88a7…c79b · Hugging Face
Downloadmodel-00005-of-00013.safetensors
safetensors · 2.50 GB · SHA-256 0a5ec3a8926d…7f4f · Hugging Face
Downloadmodel-00006-of-00013.safetensors
safetensors · 1.81 GB · SHA-256 72931ac1ffc0…0146 · Hugging Face
Downloadmodel-00007-of-00013.safetensors
safetensors · 61.0 MB · SHA-256 cbcd0ef62f99…1708 · Hugging Face
Downloadmodel-00008-of-00013.safetensors
safetensors · 786 MB · SHA-256 43e3be5de1c7…f2ee · Hugging Face
Downloadmodel-00009-of-00013.safetensors
safetensors · 119 MB · SHA-256 455ef640a865…69fa · Hugging Face
Downloadmodel-00010-of-00013.safetensors
safetensors · 81.0 MB · SHA-256 b839b13466a6…306e · Hugging Face
Downloadmodel-00011-of-00013.safetensors
safetensors · 76.0 MB · SHA-256 1a39c7db1ca2…cce7 · Hugging Face
Downloadmodel-00012-of-00013.safetensors
safetensors · 81.0 MB · SHA-256 d2f905aa7642…7849 · Hugging Face
Downloadmodel-00013-of-00013.safetensors
safetensors · 685 MB · SHA-256 541420db214a…0d3a · Hugging Face
Downloadvae/diffusion_pytorch_model.safetensors
safetensors · 160 MB · SHA-256 f5b59a268515…40a3 · Hugging Face
Download--- license: apache-2.0 language: - en tags: - multimodal - image-generation - image-understanding - image-editing - diffusion - moe - text-to-image - fp8 - quantized library_name: transformers pipeline_tag: any-to-any base_model: inclusionAI/LLaDA2.0-Uni --- <p align="center"> <img src="./assets/llada_logo.png" width="20%"/> </p> <div align="center"> <h1> LLaDA2.0-Uni: Unifying Multimodal Understanding and Generation with Diffusion Large Language Model </h1> <h3> FP8 Quantized Version of LLaDA2.0-Uni </h3> [[📑 Technical Report]()]   [[🌐 Github](https://github.com/inclusionAI/LLaDA2.0-Uni)] <b>AGI Research Center, Inclusion AI</b> </div> ## Overview This is the **FP8 quantized** version of [LLaDA2.0-Uni](https://huggingface.co/inclusionAI/LLaDA2.0-Uni), featuring block-wise FP8 quantization of MoE expert weights. This reduces GPU memory usage by ~48% for model loading while preserving output quality. ### Quantization Details - **Method**: Block-wise FP8 (float8_e4m3fn) with per-block scale factors - **Block size**: 128×128 - **Quantized layers**: MoE routed expert weights (gate_proj, up_proj, down_proj) - **Kept in BF16**: Embeddings, lm_head, attention projections, shared experts, layer norms, routing gates ### Memory Comparison | Variant | Model Loading | T2I Peak | Understanding Peak | Edit Peak | |---------|--------------|----------|-------------------|-----------| | BF16 | 62.9 GB | 35.3 GB | 33.2 GB | 41.7 GB | | FP8 | 32.5 GB | 35.3 GB | 33.3 GB | 41.8 GB | > **Note**: FP8 halves the static model weight memory (~30 GB saved at load time). Peak inference memory is similar because activations dominate during generation. ## Quick Start ```python from transformers import AutoModelForCausalLM, AutoTokenizer model_path = "inclusionAI/LLaDA2.0-Uni-FP8" tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained( model_path, device_map="cuda", trust_remote_code=True ).eval() model.tokenizer = tokenizer # Text-to-Image Generation result = model.generate_image( "A cat sitting on a windowsill at sunset", image_h=1024, image_w=1024, steps=16, cfg_scale=4.0, ) # Decode VQ tokens to image from decoder import decode_vq_tokens image = decode_vq_tokens( result["token_ids"], result["h"], result["w"], model_path, "cuda", num_steps=8, decode_mode="decoder-turbo", ) image....
Source context: 3116 downloads · 5 likes · Pipeline any-to-any · Library transformers · Repo inclusionAI/LLaDA2.0-Uni-FP8