natolambert
commited on
Commit
•
28f4d0d
1
Parent(s):
d5ac739
Update README.md
Browse files
README.md
CHANGED
@@ -9,16 +9,8 @@ language:
|
|
9 |
|
10 |
<img src="https://allenai.org/olmo/olmo-7b-animation.gif" alt="OLMo Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
11 |
|
12 |
-
# TODO
|
13 |
-
* Update summary of Dolma 1.7
|
14 |
-
* Remove installation requirements?
|
15 |
-
* Evals pre and post annealing
|
16 |
-
* details on annealing / accessing checkpoint (remove previous checkpoint instructions)
|
17 |
-
|
18 |
# Model Card for OLMo 1.7-7B
|
19 |
|
20 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
21 |
-
|
22 |
OLMo is a series of **O**pen **L**anguage **Mo**dels designed to enable the science of language models.
|
23 |
The OLMo models are trained on the [Dolma](https://huggingface.co/datasets/allenai/dolma) dataset.
|
24 |
We release all code, checkpoints, logs, and details involved in training these models.
|
@@ -56,8 +48,6 @@ A few revisions were lost due to an error, but the vast majority are present.
|
|
56 |
|
57 |
### Model Description
|
58 |
|
59 |
-
<!-- Provide a longer summary of what this model is. -->
|
60 |
-
|
61 |
- **Developed by:** Allen Institute for AI (AI2)
|
62 |
- **Supported by:** Databricks, Kempner Institute for the Study of Natural and Artificial Intelligence at Harvard University, AMD, CSC (Lumi Supercomputer), UW
|
63 |
- **Model type:** a Transformer style autoregressive language model.
|
@@ -69,8 +59,6 @@ A few revisions were lost due to an error, but the vast majority are present.
|
|
69 |
|
70 |
### Model Sources
|
71 |
|
72 |
-
<!-- Provide the basic links for the model. -->
|
73 |
-
|
74 |
- **Project Page:** https://allenai.org/olmo
|
75 |
- **Repositories:**
|
76 |
- Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo
|
@@ -83,8 +71,6 @@ A few revisions were lost due to an error, but the vast majority are present.
|
|
83 |
|
84 |
## Uses
|
85 |
|
86 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
87 |
-
|
88 |
### Inference
|
89 |
|
90 |
*Note: The OLMo models will shortly be included in Transformers.*
|
@@ -187,6 +173,16 @@ And for the 1B model:
|
|
187 |
|
188 |
### Data
|
189 |
For training data details, please see the [Dolma](https://huggingface.co/datasets/allenai/dolma) documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
### Architecture
|
192 |
|
|
|
9 |
|
10 |
<img src="https://allenai.org/olmo/olmo-7b-animation.gif" alt="OLMo Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Model Card for OLMo 1.7-7B
|
13 |
|
|
|
|
|
14 |
OLMo is a series of **O**pen **L**anguage **Mo**dels designed to enable the science of language models.
|
15 |
The OLMo models are trained on the [Dolma](https://huggingface.co/datasets/allenai/dolma) dataset.
|
16 |
We release all code, checkpoints, logs, and details involved in training these models.
|
|
|
48 |
|
49 |
### Model Description
|
50 |
|
|
|
|
|
51 |
- **Developed by:** Allen Institute for AI (AI2)
|
52 |
- **Supported by:** Databricks, Kempner Institute for the Study of Natural and Artificial Intelligence at Harvard University, AMD, CSC (Lumi Supercomputer), UW
|
53 |
- **Model type:** a Transformer style autoregressive language model.
|
|
|
59 |
|
60 |
### Model Sources
|
61 |
|
|
|
|
|
62 |
- **Project Page:** https://allenai.org/olmo
|
63 |
- **Repositories:**
|
64 |
- Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo
|
|
|
71 |
|
72 |
## Uses
|
73 |
|
|
|
|
|
74 |
### Inference
|
75 |
|
76 |
*Note: The OLMo models will shortly be included in Transformers.*
|
|
|
173 |
|
174 |
### Data
|
175 |
For training data details, please see the [Dolma](https://huggingface.co/datasets/allenai/dolma) documentation.
|
176 |
+
**This model uses the new 1.7 version with more data sources, better deduplication, and quality filtering**.
|
177 |
+
During the annealing phase we use a higher quality subset of Dolma with a linearly decaying learning rate to 0.
|
178 |
+
|
179 |
+
### Staged training / annealing
|
180 |
+
|
181 |
+
In contrast to OLMo 1.0, we trained OLMo 1.7 with a two-stage curriculum:
|
182 |
+
* In the first stage, we trained the model from scratch on the Dolma 1.7 dataset. We set a cosine learning rate schedule with a warmup of 2500 steps, a peak learning rate of 3e-4, and a cosine decay to 3e-5 after 3T tokens. We cut off this stage after 2T tokens, when the learning rate is still high.
|
183 |
+
* At this point we switch to the second stage, in which we train on a higher-quality subset of Dolma 1.7 (see below) for another 50B tokens, while linearly decaying the learning rate to 0. Our high-quality subset includes (1) using all available Wikipedia, OpenWebMath and Flan data, (2) removing Dolma CC, CC News, and Megawika, and (3) rebalancing remaining sources to achieve approximately equal proportions of each. See exact token counts and relative proportions of this second stage mix below.
|
184 |
+
Both stages contribute equally to the final performance of the OLMo model. After the first stage, OLMo 1.7 already outperforms OLMo 1.0. The second stage consistently adds 2 to 3 points of performance on top.
|
185 |
+
|
186 |
|
187 |
### Architecture
|
188 |
|