Team Ai
Modelpublic

GSAI-ML/iLLaDA-8B-Instruct

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
13likes3.6kdownloads
Model Card

iLLaDA-8B-Instruct

iLLaDA is an 8B fully bidirectional masked diffusion language model trained from scratch with 12T pre-training tokens, an 8192-token context length, variable-length generation, and confidence-based scoring for multiple-choice evaluation.

For more details, please refer to the paper: Improved Large Language Diffusion Models.

Inference and evaluation codes can be found in the LLaDA GitHub Repository.

How to Use

You can load the model and tokenizer using the transformers library:

python
import torch
from transformers import AutoModel, AutoTokenizer

# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained('GSAI-ML/iLLaDA-8B-Instruct', trust_remote_code=True)
model = AutoModel.from_pretrained('GSAI-ML/iLLaDA-8B-Instruct', trust_remote_code=True, torch_dtype=torch.bfloat16)

For customized generation and evaluation scripts (such as generate.py and chat.py), please visit the official GitHub repository.

Architecture

iLLaDA 8BLLaDA 8B
Layers3232
Model dimension40964096
Attention heads3232
Key/Value heads832
FFN dimension14,33612,288
Vocabulary size155,136126,464
Maximum sequence length81924096
Embedding and LM-headTiedUntied
Total parameters7.62B8.02B
Non-embedding parameters6.98B6.98B

Benchmark Results of Instruct Models

iLLaDA 8BLLaDA 8BDream 7BQwen2.5 7B
ModelDiffusionDiffusionDiffusionAR
MMLU71.665.567.076.6
MMLU-Pro52.337.043.356.3
MMLU-Redux76.468.976.375.7
GSM8K89.077.581.091.6
MATH56.742.239.275.5
HumanEval65.949.455.584.8
MBPP58.041.058.879.2
Average67.154.560.277.1

Citation

bibtex
@article{nie2025large,
  title={Large Language Diffusion Models},
  author={Nie, Shen and Zhu, Fengqi and You, Zebin and Zhang, Xiaolu and Ou, Jingyang and Hu, Jun and Zhou, Jun and Lin, Yankai and Wen, Ji-Rong and Li, Chongxuan},
  journal={arXiv preprint arXiv:2502.09992},
  year={2025}
}