PEFT
Safetensors
Transformers
lora
OnAnOrange commited on
Commit
c8b4845
·
verified ·
1 Parent(s): 0487fe1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +136 -187
README.md CHANGED
@@ -6,201 +6,150 @@ tags:
6
  - lora
7
  - transformers
8
  ---
 
 
9
 
10
- # Model Card for Model ID
11
 
12
- <!-- Provide a quick summary of what the model is/does. -->
13
 
 
14
 
 
15
 
16
- ## Model Details
 
 
 
17
 
18
- ### Model Description
19
 
20
- <!-- Provide a longer summary of what this model is. -->
21
 
 
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
- - **Developed by:** [More Information Needed]
25
- - **Funded by [optional]:** [More Information Needed]
26
- - **Shared by [optional]:** [More Information Needed]
27
- - **Model type:** [More Information Needed]
28
- - **Language(s) (NLP):** [More Information Needed]
29
- - **License:** [More Information Needed]
30
- - **Finetuned from model [optional]:** [More Information Needed]
31
-
32
- ### Model Sources [optional]
33
-
34
- <!-- Provide the basic links for the model. -->
35
-
36
- - **Repository:** [More Information Needed]
37
- - **Paper [optional]:** [More Information Needed]
38
- - **Demo [optional]:** [More Information Needed]
39
-
40
- ## Uses
41
-
42
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
43
-
44
- ### Direct Use
45
-
46
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
47
-
48
- [More Information Needed]
49
-
50
- ### Downstream Use [optional]
51
-
52
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
53
-
54
- [More Information Needed]
55
-
56
- ### Out-of-Scope Use
57
-
58
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
59
-
60
- [More Information Needed]
61
-
62
- ## Bias, Risks, and Limitations
63
-
64
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
65
-
66
- [More Information Needed]
67
-
68
- ### Recommendations
69
-
70
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
71
-
72
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
73
-
74
- ## How to Get Started with the Model
75
-
76
- Use the code below to get started with the model.
77
-
78
- [More Information Needed]
79
-
80
- ## Training Details
81
-
82
- ### Training Data
83
-
84
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
85
-
86
- [More Information Needed]
87
-
88
- ### Training Procedure
89
-
90
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
91
-
92
- #### Preprocessing [optional]
93
-
94
- [More Information Needed]
95
-
96
-
97
- #### Training Hyperparameters
98
-
99
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
100
-
101
- #### Speeds, Sizes, Times [optional]
102
-
103
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
104
-
105
- [More Information Needed]
106
-
107
- ## Evaluation
108
-
109
- <!-- This section describes the evaluation protocols and provides the results. -->
110
-
111
- ### Testing Data, Factors & Metrics
112
-
113
- #### Testing Data
114
-
115
- <!-- This should link to a Dataset Card if possible. -->
116
-
117
- [More Information Needed]
118
-
119
- #### Factors
120
-
121
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
122
-
123
- [More Information Needed]
124
-
125
- #### Metrics
126
-
127
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
128
-
129
- [More Information Needed]
130
-
131
- ### Results
132
-
133
- [More Information Needed]
134
-
135
- #### Summary
136
-
137
-
138
-
139
- ## Model Examination [optional]
140
-
141
- <!-- Relevant interpretability work for the model goes here -->
142
-
143
- [More Information Needed]
144
-
145
- ## Environmental Impact
146
-
147
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
148
-
149
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
150
-
151
- - **Hardware Type:** [More Information Needed]
152
- - **Hours used:** [More Information Needed]
153
- - **Cloud Provider:** [More Information Needed]
154
- - **Compute Region:** [More Information Needed]
155
- - **Carbon Emitted:** [More Information Needed]
156
-
157
- ## Technical Specifications [optional]
158
-
159
- ### Model Architecture and Objective
160
-
161
- [More Information Needed]
162
-
163
- ### Compute Infrastructure
164
-
165
- [More Information Needed]
166
-
167
- #### Hardware
168
-
169
- [More Information Needed]
170
-
171
- #### Software
172
-
173
- [More Information Needed]
174
-
175
- ## Citation [optional]
176
-
177
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
178
-
179
- **BibTeX:**
180
-
181
- [More Information Needed]
182
-
183
- **APA:**
184
-
185
- [More Information Needed]
186
-
187
- ## Glossary [optional]
188
-
189
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
190
-
191
- [More Information Needed]
192
-
193
- ## More Information [optional]
194
-
195
- [More Information Needed]
196
-
197
- ## Model Card Authors [optional]
198
-
199
- [More Information Needed]
200
-
201
- ## Model Card Contact
202
-
203
- [More Information Needed]
204
- ### Framework versions
205
 
206
- - PEFT 0.17.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  - lora
7
  - transformers
8
  ---
9
+ <center> <div style="text-align: center;"> <img src="https://raw.githubusercontent.com/ZHZisZZ/dllm/main/assets/logo.gif" width="400" />
10
+ </div> </center>
11
 
12
+ # Dream-7B-Instruct-s1k-sft
13
 
14
+ Dream-7B-Instruct-s1k-sft is a diffusion-based instruct model post-trained from [Dream-v0-Instruct-7B](https://huggingface.co/Dream-org/Dream-v0-Instruct-7B) on **[simplescaling/s1K](https://huggingface.co/datasets/simplescaling/s1K)**, using [MDLM](https://arxiv.org/abs/2406.07524) (masked diffusion) and trained with the [dLLM](https://github.com/ZHZisZZ/dllm) framework.
15
 
16
+ ## Model Overview
17
 
18
+ Dream-7B-Instruct-s1k-sft has the following features:
19
 
20
+ - **Method:** [Masked Diffusion Language Modeling (MDLM)](https://arxiv.org/abs/2406.07524);
21
+ - **Framework:** [dLLM](https://github.com/ZHZisZZ/dllm)
22
+ - **Base model:** [Dream-v0-Instruct-7B](https://huggingface.co/Dream-org/Dream-v0-Instruct-7B)
23
+ - **Dataset (SFT):** [simplescaling/s1K](https://huggingface.co/datasets/simplescaling/s1K)
24
 
25
+ For broader training and ablation reporting in the dLLM ecosystem, see the [dLLM paper](https://arxiv.org/pdf/2602.22661).
26
 
27
+ Eval notes: Metrics use confidence-threshold decoding (`alg: confidence_threshold`). The primary table is at `confidence_threshold` = 0.9; full grids sweep `confidence_threshold` ∈ {0.6, 0.7, 0.8, 0.9} with `max_new_tokens` ∈ {256, 512}.
28
 
29
+ ---
30
 
31
+ ## Primary results
32
+
33
+ <table>
34
+ <thead>
35
+ <tr>
36
+ <th align="left"><b>Benchmark</b></th>
37
+ <th align="center"><b>max_new_tokens=256</b><br><sub>(Acc % | TPS)</sub></th>
38
+ <th align="center"><b>max_new_tokens=512</b><br><sub>(Acc % | TPS)</sub></th>
39
+ </tr>
40
+ </thead>
41
+ <tbody>
42
+ <tr>
43
+ <td align="left">GSM8K</td>
44
+ <td align="center">81.80 | 2.30</td>
45
+ <td align="center">84.31 | 2.56</td>
46
+ </tr>
47
+ <tr>
48
+ <td align="left">HumanEval</td>
49
+ <td align="center">54.27 | 2.53</td>
50
+ <td align="center">53.05 | 3.24</td>
51
+ </tr>
52
+ <tr>
53
+ <td align="left">MBPP</td>
54
+ <td align="center">57.80 | 2.21</td>
55
+ <td align="center">57.80 | 2.37</td>
56
+ </tr>
57
+ <tr>
58
+ <td align="left">MATH</td>
59
+ <td align="center">45.16 | 2.32</td>
60
+ <td align="center">49.70 | 2.57</td>
61
+ </tr>
62
+ </tbody>
63
+ </table>
64
 
65
+ ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
+ ## Threshold sweep
68
+
69
+ <table>
70
+ <thead>
71
+ <tr>
72
+ <th align="left"><b>Benchmark</b></th>
73
+ <th align="center"><b>τ=0.6</b><br><sub>Acc | TPS</sub></th>
74
+ <th align="center"><b>τ=0.7</b><br><sub>Acc | TPS</sub></th>
75
+ <th align="center"><b>τ=0.8</b><br><sub>Acc | TPS</sub></th>
76
+ <th align="center"><b>τ=0.9</b><br><sub>Acc | TPS</sub></th>
77
+ </tr>
78
+ </thead>
79
+ <tbody>
80
+ <tr>
81
+ <td align="left">GSM8K</td>
82
+ <td align="center">65.66 | 4.14</td>
83
+ <td align="center">74.68 | 3.38</td>
84
+ <td align="center">79.83 | 2.66</td>
85
+ <td align="center">81.80 | 2.30</td>
86
+ </tr>
87
+ <tr>
88
+ <td align="left">HumanEval</td>
89
+ <td align="center">34.15 | 4.01</td>
90
+ <td align="center">43.90 | 3.53</td>
91
+ <td align="center">51.83 | 3.00</td>
92
+ <td align="center">54.27 | 2.53</td>
93
+ </tr>
94
+ <tr>
95
+ <td align="left">MBPP</td>
96
+ <td align="center">41.80 | 3.53</td>
97
+ <td align="center">49.40 | 2.71</td>
98
+ <td align="center">55.80 | 2.36</td>
99
+ <td align="center">57.80 | 2.21</td>
100
+ </tr>
101
+ <tr>
102
+ <td align="left">MATH</td>
103
+ <td align="center">37.02 | 3.64</td>
104
+ <td align="center">41.80 | 3.12</td>
105
+ <td align="center">44.48 | 2.67</td>
106
+ <td align="center">45.16 | 2.32</td>
107
+ </tr>
108
+ </tbody>
109
+ </table>
110
+
111
+ <code>max_new_tokens=256</code>, columns sweep <code>confidence_threshold</code> ∈ {0.6, 0.7, 0.8, 0.9}
112
+
113
+ <table>
114
+ <thead>
115
+ <tr>
116
+ <th align="left"><b>Benchmark</b></th>
117
+ <th align="center"><b>τ=0.6</b><br><sub>Acc | TPS</sub></th>
118
+ <th align="center"><b>τ=0.7</b><br><sub>Acc | TPS</sub></th>
119
+ <th align="center"><b>τ=0.8</b><br><sub>Acc | TPS</sub></th>
120
+ <th align="center"><b>τ=0.9</b><br><sub>Acc | TPS</sub></th>
121
+ </tr>
122
+ </thead>
123
+ <tbody>
124
+ <tr>
125
+ <td align="left">GSM8K</td>
126
+ <td align="center">67.55 | 6.45</td>
127
+ <td align="center">75.44 | 5.34</td>
128
+ <td align="center">81.65 | 3.54</td>
129
+ <td align="center">84.31 | 2.56</td>
130
+ </tr>
131
+ <tr>
132
+ <td align="left">HumanEval</td>
133
+ <td align="center">31.10 | 4.42</td>
134
+ <td align="center">45.73 | 3.98</td>
135
+ <td align="center">50.00 | 3.54</td>
136
+ <td align="center">53.05 | 3.24</td>
137
+ </tr>
138
+ <tr>
139
+ <td align="left">MBPP</td>
140
+ <td align="center">42.20 | 5.60</td>
141
+ <td align="center">50.20 | 3.20</td>
142
+ <td align="center">56.80 | 2.59</td>
143
+ <td align="center">57.80 | 2.37</td>
144
+ </tr>
145
+ <tr>
146
+ <td align="left">MATH</td>
147
+ <td align="center">38.72 | 4.68</td>
148
+ <td align="center">44.10 | 3.90</td>
149
+ <td align="center">48.22 | 3.13</td>
150
+ <td align="center">49.70 | 2.57</td>
151
+ </tr>
152
+ </tbody>
153
+ </table>
154
+
155
+ <code>max_new_tokens=512</code>, columns sweep <code>confidence_threshold</code> ∈ {0.6, 0.7, 0.8, 0.9}