utdawn commited on
Commit
5e97d1a
Β·
verified Β·
1 Parent(s): 1b8bc9e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +154 -3
README.md CHANGED
@@ -1,3 +1,154 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
+ tags:
5
+ - dllm
6
+ - diffusion
7
+ - llm
8
+ - text_generation
9
+ ---
10
+ # LLaDA2.0-mini
11
+
12
+ **LLaDA2.0-mini** is a diffusion language model featuring a 16BA1B Mixture-of-Experts (MoE) architecture. As an enhanced, instruction-tuned iteration of the LLaDA series, it is optimized for practical applications.
13
+
14
+ <div align="center">
15
+ <img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*uOo8QKQMiBwAAAAAgNAAAAgAemJ7AQ/original" width="800" />
16
+ </div>
17
+
18
+
19
+ ---
20
+
21
+ | Benchmark | Qwen3-8B (no thinking) | Ling-mini-2.0 | LLaDA2.0-mini-preview | LLaDA2.0-mini |
22
+ | :---: | :---: | :---: | :---: | :---: |
23
+ | **Average** | 70.19 | 72.13 | 61.75 | 71.67 |
24
+ | **Knowledge** | | | | |
25
+ | MMLU | 80.94 | 82.15 | 72.49 | 80.53 |
26
+ | MMLU-Pro | 65.48 | 63.72 | 49.22 | 63.22 |
27
+ | GPQA | 46.59 | 56.80 | 31.82 | 47.98 |
28
+ | arc-c | 93.35 | 93.09 | 89.15 | 93.56 |
29
+ | CMMLU | 79.17 | 80.84 | 67.53 | 79.50 |
30
+ | C-EVAL | 81.36 | 82.10 | 66.54 | 81.38 |
31
+ | GAOKAO-Bench | 84.94 | 87.23 | 74.46 | 84.30 |
32
+ | **Reasoning** | | | | |
33
+ | SQuAD 2.0 | 85.21 | 75.56 | 85.61 | 86.50 |
34
+ | DROP | 84.56 | 78.80 | 79.49 | 81.91 |
35
+ | KOR-Bench | 54.48 | 62.72 | 37.26 | 50.40 |
36
+ | HellaSwag | 79.56 | 69.02 | 74.01 | 79.01 |
37
+ | **Coding** | | | | |
38
+ | CRUXEval-O | 74.06 | 76.12 | 61.88 | 71.62 |
39
+ | MBPP | 78.92 | 84.07 | 77.75 | 81.50 |
40
+ | MultiPL-E | 61.7 | 67.09 | 62.43 | 67.46 |
41
+ | HumanEval | 84.76 | 85.98 | 80.49 | 86.59 |
42
+ | BigCodeBench-Full | 36.05 | 35.00 | 30.44 | 32.89 |
43
+ | LiveCodeBench | 26.38 | 34.97 | 19.93 | 31.50 |
44
+ | Spider | 72.80 | 76.43 | 75.64 | 76.76 |
45
+ | **Math** | | | | |
46
+ | GSM8K | 93.63 | 94.62 | 89.01 | 94.24 |
47
+ | MATH | 86.28 | 94.66 | 73.50 | 93.22 |
48
+ | OlympiadBench | 55.33 | 72.30 | 36.67 | 67.70 |
49
+ | AIME 2025 | 22.08 | 47.66 | 10.00 | 36.67 |
50
+ | **Agent & Alignment** | | | | |
51
+ | BFCL_Live | 70.08 | 53.98 | 74.11 | 70.90 |
52
+ | IFEval-strict -prompt | 86.9 | 76.16 | 62.50 | 80.78 |
53
+
54
+ ## πŸš€ Performance Highlights
55
+ + **Leading MoE Architecture**:
56
+ The open-source **Mixture-of-Experts (MoE) diffusion large language model**, pre-trained from scratch on approximately **20 trillion tokens**.
57
+ + **Efficient Inference**:
58
+ With **16 billion total parameters**, only **1.4 billion** are activated during inference. LLaDA2.0-mini significantly reduces computational costs while outperforming open-source dense models of similar scale.
59
+ + **Impressive Performance on Code & Complex Reasoning**:
60
+ Excels in tasks such as **code generation** and **advanced mathematical reasoning**, demonstrating strong reasoning capabilities.
61
+ + **Tool Use**:
62
+ Supports **tool calling** and achieves excellent performance in complex agent-based tasks.
63
+ + **Open & Extensible**:
64
+ Fully open-source with commitment to transparency. We plan to release a **leading inference framework** in the future and continue investing in cutting-edge areas like **diffusion LLMs (dLLM)** to drive disruptive innovation.
65
+
66
+ ## πŸ—ΊοΈ What's Next
67
+
68
+ + **Supercharged Reasoning with LLaDA 2.0:** LLaDA 2.0 series will be fine-tuned with **Reinforcement Learning**, unlocking a new level of sophisticated reasoning and problem-solving abilities.
69
+ + **Tools for Innovators:** The model was finetuned on the [dFactory](https://github.com/inclusionAI/dFactory) framework using Fully Sharded Data Parallel (FSDP2). We have begun open-sourcing dFactory and will continuously release our advanced post-training technologies. Whether you want to master the current model or build your own customized versions, you'll have the tools you need. Stay tuned for more updates!
70
+
71
+ ---
72
+
73
+ ## πŸ“¦ Model Variants
74
+ | Model ID | Description | Hugging Face Link |
75
+ | --- | --- | --- |
76
+ | `inclusionAI/LLaDA2.0-mini` | Instruction-tuned model, ready for downstream applications. | [πŸ€— Model Card](https://huggingface.co/inclusionAI/LLaDA2.0-mini) |
77
+ | `inclusionAI/LLaDA2.0-flash` | Instruction-tuned model, ready for downstream applications. | [πŸ€— Model Card](https://huggingface.co/inclusionAI/LLaDA2.0-flash) |
78
+
79
+
80
+ ---
81
+
82
+ ## πŸ” Model Overview
83
+ **LLaDA2.0-mini** has the following specifications:
84
+
85
+ + **Type**: Mixture-of-Experts (MoE) Diffusion Language Model
86
+ + **Total Parameters (Non-Embedding)**: 16B
87
+ + **Number of Layers**: 20
88
+ + **Attention Heads**: 16
89
+ + **Context Length**: 32,768 tokens
90
+ + **Position Embedding**: Rotary (RoPE)
91
+ + **Vocabulary Size**: 157,184
92
+
93
+ ---
94
+
95
+ ### πŸ€— Hugging Face Transformers
96
+ Make sure you have `transformers` and its dependencies installed:
97
+
98
+ ```python
99
+ import torch
100
+ import torch.nn.functional as F
101
+ from transformers import AutoModelForCausalLM
102
+ from transformers import AutoTokenizer
103
+
104
+ model_path = "/path/to/LLaDA2.0-mini"
105
+ device = "cuda:0"
106
+ model = AutoModelForCausalLM.from_pretrained(
107
+ model_path, trust_remote_code=True, device_map=device
108
+ )
109
+ model = model.to(torch.bfloat16)
110
+ model.eval()
111
+ tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
112
+
113
+ prompt = "Why does Camus think that Sisyphus is happy?"
114
+ input_ids = tokenizer.apply_chat_template(
115
+ [{"role": "user", "content": prompt}],
116
+ add_generation_prompt=True,
117
+ tokenize=True,
118
+ return_tensors="pt",
119
+ )
120
+ generated_tokens = model.generate(
121
+ inputs=input_ids,
122
+ eos_early_stop=True,
123
+ gen_length=512,
124
+ block_length=32,
125
+ steps=32,
126
+ temperature=0.0,
127
+ )
128
+ generated_answer = tokenizer.decode(
129
+ generated_tokens[0],
130
+ skip_special_tokens=True,
131
+ )
132
+ print(generated_answer)
133
+ ```
134
+
135
+ ### Best Practices
136
+ To achieve optimal performance, we recommend the following settings:
137
+
138
+ 1. **Sampling Parameters**:
139
+ We suggest using `Temperature=0.0`, `block_length=32`, and `steps=32`. Using a higher temperature value may occasionally result in language mixing and a slight decrease in model performance.
140
+
141
+ 2. **Adequate Output Length**:
142
+ We recommend using an output length of 32768 tokens for most queries.
143
+
144
+ ---
145
+
146
+ ## 🌐 License
147
+ This project is licensed under the terms of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
148
+
149
+ ---
150
+
151
+ ## 🀝 Contact & Collaboration
152
+ For questions, collaborations, or feedback, please reach out via [Hugging Face](https://huggingface.co/inclusionAI/LLaDA2.0-mini) or open an issue in the [repository](https://github.com/inclusionAI).
153
+
154
+ πŸ‘‰ Join us in advancing open, efficient, and intelligent language models!