Text Generation
Transformers
PyTorch
English
olmo2
conversational
Inference Endpoints
hamishivi commited on
Commit
fc15c4f
1 Parent(s): 18e39b5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +85 -181
README.md CHANGED
@@ -1,215 +1,119 @@
1
  ---
2
- language: en
3
- model-index:
4
- - name: allenai/open_instruct_dev
5
- results:
6
- - task:
7
- type: preference_evaluation
8
- dataset:
9
- name: reward-bench
10
- type: allenai/reward-bench
11
- metrics:
12
- - type: accuracy
13
- value: 1.0
14
- - type: accuracy
15
- value: 1.0
16
- - type: accuracy
17
- value: 1.0
18
- - type: accuracy
19
- value: 1.0
20
  ---
21
 
22
- # Model Card for allenai/open_instruct_dev
23
 
24
- <!-- Provide a quick summary of what the model is/does. -->
25
 
 
 
 
26
 
 
 
 
27
 
28
- ## Model Details
29
 
30
- ### Model Description
 
 
 
 
 
 
31
 
32
- <!-- Provide a longer summary of what this model is. -->
33
 
34
 
 
35
 
36
- - **Developed by:** [More Information Needed]
37
- - **Funded by [optional]:** [More Information Needed]
38
- - **Shared by [optional]:** [More Information Needed]
39
- - **Model type:** [More Information Needed]
40
- - **Language(s) (NLP):** en
41
- - **License:** [More Information Needed]
42
- - **Finetuned from model [optional]:** [More Information Needed]
43
 
44
- ### Model Sources [optional]
45
 
46
- <!-- Provide the basic links for the model. -->
 
 
 
 
 
 
47
 
48
- - **Repository:** [More Information Needed]
49
- - **Paper [optional]:** [More Information Needed]
50
- - **Demo [optional]:** [More Information Needed]
51
 
52
- ## Uses
53
 
54
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
 
 
55
 
56
- ### Direct Use
 
57
 
58
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
59
 
60
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
61
 
62
- ### Downstream Use [optional]
63
 
64
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
 
 
 
 
65
 
66
- [More Information Needed]
67
 
68
- ### Out-of-Scope Use
 
69
 
70
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
71
 
72
- [More Information Needed]
73
 
74
- ## Bias, Risks, and Limitations
75
 
76
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
77
 
78
- [More Information Needed]
79
 
80
- ### Recommendations
 
 
 
 
 
 
 
81
 
82
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
83
 
84
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
 
 
85
 
86
- ## How to Get Started with the Model
87
 
88
- Use the code below to get started with the model.
89
-
90
- [More Information Needed]
91
-
92
- ## Training Details
93
-
94
- ### Training Data
95
-
96
- <!-- 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. -->
97
-
98
- [More Information Needed]
99
-
100
- ### Training Procedure
101
-
102
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
103
-
104
- #### Preprocessing [optional]
105
-
106
- [More Information Needed]
107
-
108
-
109
- #### Training Hyperparameters
110
-
111
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
112
-
113
- #### Speeds, Sizes, Times [optional]
114
-
115
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
116
-
117
- [More Information Needed]
118
-
119
- ## Evaluation
120
-
121
- <!-- This section describes the evaluation protocols and provides the results. -->
122
-
123
- ### Testing Data, Factors & Metrics
124
-
125
- #### Testing Data
126
-
127
- <!-- This should link to a Dataset Card if possible. -->
128
-
129
- [More Information Needed]
130
-
131
- #### Factors
132
-
133
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
134
-
135
- [More Information Needed]
136
-
137
- #### Metrics
138
-
139
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
140
-
141
- [More Information Needed]
142
-
143
- ### Results
144
-
145
- [More Information Needed]
146
-
147
- #### Summary
148
-
149
-
150
-
151
- ## Model Examination [optional]
152
-
153
- <!-- Relevant interpretability work for the model goes here -->
154
-
155
- [More Information Needed]
156
-
157
- ## Environmental Impact
158
-
159
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
160
-
161
- 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).
162
-
163
- - **Hardware Type:** [More Information Needed]
164
- - **Hours used:** [More Information Needed]
165
- - **Cloud Provider:** [More Information Needed]
166
- - **Compute Region:** [More Information Needed]
167
- - **Carbon Emitted:** [More Information Needed]
168
-
169
- ## Technical Specifications [optional]
170
-
171
- ### Model Architecture and Objective
172
-
173
- [More Information Needed]
174
-
175
- ### Compute Infrastructure
176
-
177
- [More Information Needed]
178
-
179
- #### Hardware
180
-
181
- [More Information Needed]
182
-
183
- #### Software
184
-
185
- [More Information Needed]
186
-
187
- ## Citation [optional]
188
-
189
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
190
-
191
- **BibTeX:**
192
-
193
- [More Information Needed]
194
-
195
- **APA:**
196
-
197
- [More Information Needed]
198
-
199
- ## Glossary [optional]
200
-
201
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
202
-
203
- [More Information Needed]
204
-
205
- ## More Information [optional]
206
-
207
- [More Information Needed]
208
-
209
- ## Model Card Authors [optional]
210
-
211
- [More Information Needed]
212
-
213
- ## Model Card Contact
214
-
215
- [More Information Needed]
 
1
  ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ base_model:
7
+ - allenai/OLMo-2-1124-13B-DPO
8
+ library_name: transformers
 
 
 
 
 
 
 
 
 
 
 
9
  ---
10
 
11
+ <img src="https://allenai.org/olmo/olmo-7b-animation.gif" alt="OLMo Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
12
 
13
+ # OLMo-2-1124-13B-DPO
14
 
15
+ OLMo-2 13B DPO November 2024 is finetuned variant of the [OLMo-2 13B November 2024](https://huggingface.co/allenai/OLMo2-13B-1124) model, which has undergone supervised finetuning on the [Tülu 3 dataset](https://huggingface.co/datasets/allenai/tulu-3-sft-mixture) and further DPO training.
16
+ Tülu 3 is designed for state-of-the-art performance on a diversity of tasks in addition to chat, such as MATH, GSM8K, and IFEval.
17
+ Check out [the OLMo-2 paper](https://TODO) or [Tülu 3 paper](https://arxiv.org/abs/2411.15124) for more details!
18
 
19
+ OLMo is a series of **O**pen **L**anguage **Mo**dels designed to enable the science of language models.
20
+ These models are trained on the Dolma dataset. We are releasing all code, checkpoints, logs (coming soon), and associated training details.
21
+ The core models released in this batch include the following:
22
 
 
23
 
24
+ | **Stage** | **OLMo-2 7B** | **OLMo-2 7B** |
25
+ |----------------------|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
26
+ | **Base Model** | [allenai/OLMo2-7B-1124](https://huggingface.co/allenai/OLMo2-7B-1124) | [allenai/OLMo-2-13B-1124](https://huggingface.co/allenai/OLMo-2-13B-1124) |
27
+ | **SFT** | [allenai/OLMo-2-1124-7B-SFT](https://huggingface.co/allenai/OLMo-2-1124-7B-SFT) | [allenai/OLMo-2-1124-13B-SFT](https://huggingface.co/allenai/OLMo-2-1124-13B-SFT) |
28
+ | **DPO** | [allenai/OLMo-2-1124-7B-DPO](https://huggingface.co/allenai/OLMo-2-1124-7B-DPO) | [allenai/OLMo-2-1124-13B-DPO](https://huggingface.co/allenai/OLMo-2-1124-13B-DPO) |
29
+ | **Final Models (RLVR)** | [allenai/OLMo-2-1124-7B-Instruct](https://huggingface.co/allenai/OLMo-2-1124-7B-Instruct) | [allenai/OLMo-2-1124-13B-Instruct](https://huggingface.co/allenai/OLMo-2-1124-13B-Instruct) |
30
+ | **Reward Model (RM)**| [allenai/OLMo-2-1124-7B-RM](https://huggingface.co/allenai/OLMo-2-1124-7B-RM) | (Same as 8B) |
31
 
 
32
 
33
 
34
+ ## Model description
35
 
36
+ - **Model type:** A model trained on a mix of publicly available, synthetic and human-created datasets.
37
+ - **Language(s) (NLP):** Primarily English
38
+ - **License:** Apache 2.0
39
+ - **Finetuned from model:** allenai/OLMo-2-13B-1124-SFT
 
 
 
40
 
41
+ ### Model Sources
42
 
43
+ - **Project Page:** https://allenai.org/olmo
44
+ - **Repositories:**
45
+ - Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo
46
+ - Evaluation code: https://github.com/allenai/olmes
47
+ - Further fine-tuning code: https://github.com/allenai/open-instruct
48
+ - **Paper:** Coming soon! TODO
49
+ - **Demo:** https://playground.allenai.org/
50
 
51
+ ## Using the model
 
 
52
 
53
+ ### Loading with HuggingFace
54
 
55
+ To load the model with HuggingFace, use the following snippet:
56
+ ```
57
+ from transformers import AutoModelForCausalLM
58
 
59
+ olmo_model = AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-1124-13B-DPO")
60
+ ```
61
 
62
+ ### Chat template
63
 
64
+ The chat template for our models is formatted as:
65
+ ```
66
+ <|endoftext|><|user|>\nHow are you doing?\n<|assistant|>\nI'm just a computer program, so I don't have feelings, but I'm functioning as expected. How can I assist you today?<|endoftext|>
67
+ ```
68
+ Or with new lines expanded:
69
+ ```
70
+ <|endoftext|><|user|>
71
+ How are you doing?
72
+ <|assistant|>
73
+ I'm just a computer program, so I don't have feelings, but I'm functioning as expected. How can I assist you today?<|endoftext|>
74
+ ```
75
+ It is embedded within the tokenizer as well, for `tokenizer.apply_chat_template`.
76
 
77
+ ### System prompt
78
 
79
+ In Ai2 demos, we use this system prompt by default:
80
+ ```
81
+ You are OLMo 2, a helpful and harmless AI Assistant built by the Allen Institute for AI.
82
+ ```
83
+ The model has not been trained with a specific system prompt in mind.
84
 
85
+ ### Bias, Risks, and Limitations
86
 
87
+ The OLMo-2 models have limited safety training, but are not deployed automatically with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so).
88
+ See the Falcon 180B model card for an example of this.
89
 
 
90
 
91
+ ## Performance
92
 
93
+ TODO
94
 
95
+ ## Hyperparameters
96
 
97
+ Note we use a length-normalized variant of DPO for training.
98
 
99
+ DPO:
100
+ - **Learning Rate**: 8E-7 (7B, 13B)
101
+ - **Beta**: 5
102
+ - **Effective Batch Size:** 128 (7B, 13B)
103
+ - **Max. Sequence Length:** 2048
104
+ - **Learning Rate Schedule:** Linear
105
+ - **LR Warmup Ratio:** 0.1
106
+ - **Num. Epochs:** 1
107
 
108
+ ## License and use
109
 
110
+ OLMo-2 is licensed under the Apache 2.0 license.
111
+ OLMo-2 is intended for research and educational use.
112
+ For more information, please see our [Responsible Use Guidelines](https://allenai.org/responsible-use).
113
 
114
+ ## Citation
115
 
116
+ If OLMo-2 or any of the related materials were helpful to your work, please cite:
117
+ ```
118
+ TODO
119
+ ```