CoolFace
Modelpublic

inclusionAI/LLaDA2.0-Uni-FP8

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
5likes580downloads
Model Card

<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]()] &emsp; [๐ŸŒ Github]

<b>AGI Research Center, Inclusion AI</b> </div>

Overview

This is the FP8 quantized version of 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 (gateproj, upproj, down_proj)
  • โ€”Kept in BF16: Embeddings, lm_head, attention projections, shared experts, layer norms, routing gates

Memory Comparison

VariantModel LoadingT2I PeakUnderstanding PeakEdit Peak
BF1662.9 GB35.3 GB33.2 GB41.7 GB
FP832.5 GB35.3 GB33.3 GB41.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.save("output.png")

Model Capabilities

Same as the base LLaDA2.0-Uni model:

  • โ€”๐Ÿ–ผ๏ธ Text-to-Image Generation
  • โ€”๐Ÿ” Image Understanding
  • โ€”โœ๏ธ Image Editing
  • โ€”โšก Sprint Acceleration

โš ๏ธ License

This project is licensed under the terms of the Apache License 2.0.

๐Ÿ“– BibTeX

bibtex
@article{LLaDA2Uni,
title = {LLaDA2.0-Uni: Unifying Multimodal Understanding and Generation with Diffusion Large Language Model},
author = {Tiwei Bie and Haoxing Chen and Tieyuan Chen and Zhenglin Cheng and Long Cui and Kai Gan and Zhicheng Huang and Zhenzhong Lan and Haoquan Li and Jianguo Li and Tao Lin and Qi Qin and Hongjun Wang and Xiaomei Wang and Haoyuan Wu and Yi Xin and Junbo Zhao},
journal = {arXiv preprint arXiv:2604.20796},
year = {2026}
}