tbmod
/

PyTorch
Safetensors
English
hf_olmo
custom_code
tbmod hamishivi commited on
Commit
0643696
·
0 Parent(s):

Duplicate from allenai/OLMo-7B-Instruct

Browse files

Co-authored-by: Hamish Ivison <hamishivi@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - allenai/dolma
5
+ - allenai/tulu-v2-sft-mixture
6
+ - allenai/ultrafeedback_binarized_cleaned
7
+ language:
8
+ - en
9
+ ---
10
+
11
+
12
+ <img src="https://allenai.org/olmo/olmo-7b-animation.gif" alt="OLMo Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
13
+
14
+
15
+ # Model Card for OLMo 7B Instruct
16
+
17
+ **For transformers versions v4.40.0 or newer, we suggest using [OLMo 7B Instruct HF](https://huggingface.co/allenai/OLMo-7B-Instruct-hf) instead.**
18
+
19
+ <!-- Provide a quick summary of what the model is/does. -->
20
+
21
+ OLMo is a series of **O**pen **L**anguage **Mo**dels designed to enable the science of language models.
22
+ The OLMo base models are trained on the [Dolma](https://huggingface.co/datasets/allenai/dolma) dataset.
23
+ The adapted versions are trained on the [Tulu SFT mixture](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture) and, for the Instruct version, a [cleaned version of the UltraFeedback dataset](https://huggingface.co/datasets/allenai/ultrafeedback_binarized_cleaned).
24
+ We release all code, checkpoints, logs (coming soon), and details involved in training these models.
25
+
26
+ OLMo 7B Instruct and OLMo SFT are two adapted versions of these models trained for better question answering.
27
+ They show the performance gain that OLMo base models can achieve with existing fine-tuning techniques.
28
+
29
+ *Note:* This model requires installing `ai2-olmo` with pip and using `ai2-olmo`>=0.3.0 or HuggingFace Transformers<=4.39. New versions of the model will be released soon with compatibility improvements.
30
+
31
+ **Note that this is the instruct variant of the original OLMo release - there are newer (better) versions of OLMo out now! Check [here](https://huggingface.co/collections/allenai/olmo-suite-65aeaae8fe5b6b2122b46778) for newer releases.**
32
+
33
+ ## Model Details
34
+
35
+ We release two adapted model versions:
36
+ The base models related to this adapted model are the following:
37
+ | Model | Training Method(s) | Datasets | Context Length |
38
+ |------|--------|---------|--|
39
+ | [OLMo 7B SFT](https://huggingface.co/allenai/OLMo-7B-SFT) | SFT | [Tulu 2 SFT Mix](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture) | 2048 |
40
+ | [OLMo 7B Instruct](https://huggingface.co/allenai/OLMo-7B-Instruct) | SFT + DPO | [Tulu 2 SFT Mix](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture) + [Ultrafeedback Cleaned](https://huggingface.co/datasets/allenai/ultrafeedback_binarized_cleaned) | 2048 |
41
+
42
+
43
+ The base models related to this adapted model are the following:
44
+ | Size | Training Tokens | Layers | Hidden Size | Attention Heads | Context Length |
45
+ |------|--------|---------|-------------|-----------------|----------------|
46
+ | [OLMo 1B](https://huggingface.co/allenai/OLMo-1B) | 3 Trillion |16 | 2048 | 16 | 2048 |
47
+ | [OLMo 7B](https://huggingface.co/allenai/OLMo-7B) | 2.5 Trillion | 32 | 4096 | 32 | 2048 |
48
+ | [OLMo 7B Twin 2T](https://huggingface.co/allenai/OLMo-7B-Twin-2T) | 2 Trillion | 32 | 4096 | 32 | 2048 |
49
+
50
+
51
+ ### Model Description
52
+
53
+ <!-- Provide a longer summary of what this model is. -->
54
+
55
+ - **Developed by:** Allen Institute for AI (AI2)
56
+ - **Supported by:** Databricks, Kempner Institute for the Study of Natural and Artificial Intelligence at Harvard University, AMD, CSC (Lumi Supercomputer), UW
57
+ - **Model type:** a Transformer style autoregressive language model.
58
+ - **Language(s) (NLP):** English
59
+ - **License:** The code and model are released under Apache 2.0.
60
+ - **Contact:** Technical inquiries: `olmo at allenai dot org`. Press: `press at allenai dot org`
61
+ - **Date cutoff:** Feb./March 2023 based on Dolma dataset version.
62
+
63
+
64
+ ### Model Sources
65
+
66
+ <!-- Provide the basic links for the model. -->
67
+
68
+ - **Project Page:** https://allenai.org/olmo
69
+ - **Repositories:**
70
+ - Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo
71
+ - Evaluation code: https://github.com/allenai/OLMo-Eval
72
+ - Further fine-tuning code: https://github.com/allenai/open-instruct
73
+ - **Paper:** [Link](https://arxiv.org/abs/2402.00838)
74
+ - **Technical blog post:** https://blog.allenai.org/olmo-open-language-model-87ccfc95f580
75
+ - **W&B Logs:** https://wandb.ai/ai2-llm/OLMo-7B/reports/OLMo-7B--Vmlldzo2NzQyMzk5
76
+ <!-- - **Press release:** TODO -->
77
+
78
+ ## Uses
79
+
80
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
81
+
82
+ ### Inference
83
+ Quickly get inference running with the following required installation:
84
+ ```bash
85
+ pip install ai2-olmo
86
+ ```
87
+ Now, proceed as usual with HuggingFace:
88
+ ```python
89
+ from hf_olmo import OLMoForCausalLM, OLMoTokenizerFast
90
+ olmo = OLMoForCausalLM.from_pretrained("allenai/OLMo-7B-Instruct")
91
+ tokenizer = OLMoTokenizerFast.from_pretrained("allenai/OLMo-7B-Instruct")
92
+ chat = [
93
+ { "role": "user", "content": "What is language modeling?" },
94
+ ]
95
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
96
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
97
+ # optional verifying cuda
98
+ # inputs = {k: v.to('cuda') for k,v in inputs.items()}
99
+ # olmo = olmo.to('cuda')
100
+ response = olmo.generate(input_ids=inputs.to(olmo.device), max_new_tokens=100, do_sample=True, top_k=50, top_p=0.95)
101
+ print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])
102
+ >> '<|user|>\nWhat is language modeling?\n<|assistant|>\nLanguage modeling is a type of natural language processing (NLP) task or machine learning task that...'
103
+ ```
104
+
105
+ You can make this slightly faster by quantizing the model, e.g. `OLMoForCausalLM.from_pretrained("allenai/OLMo-7B-Instruct", torch_dtype=torch.float16, load_in_8bit=True)` (requires `bitsandbytes`).
106
+ The quantized model is more sensitive to typing / cuda, so it is recommended to pass the inputs as `inputs.input_ids.to('cuda')` to avoid potential issues.
107
+
108
+ Note, you may see the following error if `ai2-olmo` is not installed correctly, which is caused by internal Python check naming. We'll update the code soon to make this error clearer.
109
+ ```bash
110
+ raise ImportError(
111
+ ImportError: This modeling file requires the following packages that were not found in your environment: hf_olmo. Run `pip install hf_olmo`
112
+ ```
113
+
114
+ ## Evaluation
115
+
116
+ <!-- This section describes the evaluation protocols and provides the results. -->
117
+
118
+ Core model results for the 7B adapted models are found below.
119
+
120
+ | Model | MMLU 0-shot ↑ | AlpacaEval %win ↑ | ToxiGen % Toxic ↓ | TruthfulQA %Info+True ↑ |
121
+ |-----------------------|---------------|--------------------|--------------------|-------------------------|
122
+ | **OLMo (base)** | 28.3 | - | 81.4 | 31.6 |
123
+ | MPT Chat | 33.8 | 46.8 | 0.1 | 42.7 |
124
+ | Falcon Instruct | 25.2 | 14.0 | 70.7 | 27.2 |
125
+ | RPJ-INCITE Chat | 27.0 | 38.0 | 46.4 | 53.0 |
126
+ | Llama-2-Chat 7B | 46.8 | 87.3 | 0.0 | 26.3 |
127
+ | AI2 Tulu 2 7B | 50.4 | 73.9 | 7.0 | 51.7 |
128
+ | AI2 Tulu 2 7B DPO | 50.7 | 85.1 | 0.5 | - * |
129
+ | **[OLMo 7B SFT](https://huggingface.co/allenai/OLMo-7B-SFT)** | 47.3 | 57.0 | 14.4 | 41.2 |
130
+ | **[OLMo 7B Instruct](https://huggingface.co/allenai/OLMo-7B-Instruct)** | 46.2 | 69.3 | 1.7 | 52.0 |
131
+
132
+ *Following Ivison et al. 2023, we do not report Tulu 2 TruthfulQA scores due to test set contamination.
133
+ ## Model Details
134
+
135
+ ### Data
136
+ For training data details, please see the [Dolma](https://huggingface.co/datasets/allenai/dolma), [Tulu 2](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture), and [UltraFeedback](https://huggingface.co/datasets/openbmb/UltraFeedback) documentation.
137
+
138
+ ### Architecture
139
+
140
+
141
+ ### Hyperparameters
142
+
143
+ The hyperparameters for the two phases of training are below:
144
+
145
+ | | Learning Rate | Beta | Epochs | Warmup | Weight Decay | Gradient Clipping | Maximum Sequence Length |
146
+ |-------------------------|---------------|------|--------|------------------------------------------------------------------------|--------------|-------------------|-------------------------|
147
+ | **SFT** | 2 × 10^-6 | N/A | 3 | Linear warmup for the first 3% of total training time, then cooldown to 0 | 0 | 0 | 2048 |
148
+ | **DPO** | 5 × 10^-7 | 0.1 | 3 | Linear warmup for the first 10% of total training time, then cooldown to 0| 0 | 0 | 2048 |
149
+
150
+ Compared to Tulu 2, DPO hyperparameters are the same. SFT is lower LR and 3 epochs instead of 2 (and 2k length instead of 8k).
151
+
152
+ ## Bias, Risks, and Limitations
153
+
154
+ This adapted OLMo model is a research artifact.
155
+ It is intended to benefit the research community interested in understanding the safety properties of LLMs and developers building safety tools for LLMs.
156
+ For this reason, the model does not include a specific safety filter or safety training data.
157
+ While our model scores well relative to its peers on ToxiGen, it is possible for the model to generate harmful and sensitive content from some user prompts.
158
+ We recommend developers exercise caution and consider the risks of the applications of this technology.
159
+ Furthermore, developers should consider implementing safeguards for biases, privacy, and other potential harms when appropriate.
160
+ Finally, as with every LLM, OLMo may produce factual-sounding outputs that may not be true, so developers and users are encouraged to confirm such outputs before relying on them.
161
+ All users of this model are responsible for how they use the model.
162
+
163
+
164
+ ## Citation
165
+
166
+ **BibTeX:**
167
+
168
+ ```
169
+ @article{Groeneveld2023OLMo,
170
+ title={OLMo: Accelerating the Science of Language Models},
171
+ author={Groeneveld, Dirk and Beltagy, Iz and Walsh, Pete and Bhagia, Akshita and Kinney, Rodney and Tafjord, Oyvind and Jha, Ananya Harsh and Ivison, Hamish and Magnusson, Ian and Wang, Yizhong and Arora, Shane and Atkinson, David and Authur, Russell and Chandu, Khyathi and Cohan, Arman and Dumas, Jennifer and Elazar, Yanai and Gu, Yuling and Hessel, Jack and Khot, Tushar and Merrill, William and Morrison, Jacob and Muennighoff, Niklas and Naik, Aakanksha and Nam, Crystal and Peters, Matthew E. and Pyatkin, Valentina and Ravichander, Abhilasha and Schwenk, Dustin and Shah, Saurabh and Smith, Will and Subramani, Nishant and Wortsman, Mitchell and Dasigi, Pradeep and Lambert, Nathan and Richardson, Kyle and Dodge, Jesse and Lo, Kyle and Soldaini, Luca and Smith, Noah A. and Hajishirzi, Hannaneh},
172
+ journal={Preprint},
173
+ year={2024}
174
+ }
175
+ ```
176
+
177
+ **APA:**
178
+
179
+ Groeneveld, D., Beltagy, I., Walsh, P., Bhagia, A., Kinney, R., Tafjord, O., Jha, A., Ivison, H., Magnusson, I., Wang, Y., Arora, S., Atkinson, D., Authur, R., Chandu, K., Cohan, A., Dumas, J., Elazar, Y., Gu, Y., Hessel, J., Khot, T., Merrill, W., Morrison, J., Muennighoff, N., Naik, A., Nam, C., Peters, M., Pyatkin, V., Ravichander, A., Schwenk, D., Shah, S., Smith, W., Subramani, N., Wortsman, M., Dasigi, P., Lambert, N., Richardson, K., Dodge, J., Lo, K., Soldaini, L., Smith, N., & Hajishirzi, H. (2024). OLMo: Accelerating the Science of Language Models. Preprint.
180
+
181
+ ## Model Card Contact
182
+
183
+
184
+ For errors in this model card, contact Nathan or Jacob, `{nathanl, jacobm} at allenai dot org`.
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_type": "swiglu",
3
+ "alibi": false,
4
+ "alibi_bias_max": 8.0,
5
+ "architectures": [
6
+ "OLMoForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "attention_layer_norm": false,
10
+ "attention_layer_norm_with_affine": false,
11
+ "auto_map": {
12
+ "AutoConfig": "configuration_olmo.OLMoConfig",
13
+ "AutoModelForCausalLM": "modeling_olmo.OLMoForCausalLM",
14
+ "AutoTokenizer": [
15
+ "tokenization_olmo_fast.OLMoTokenizerFast",
16
+ "tokenization_olmo_fast.OLMoTokenizerFast"
17
+ ]
18
+ },
19
+ "bias_for_layer_norm": false,
20
+ "block_group_size": 1,
21
+ "block_type": "sequential",
22
+ "d_model": 4096,
23
+ "embedding_dropout": 0.0,
24
+ "embedding_size": 50304,
25
+ "eos_token_id": 50279,
26
+ "flash_attention": true,
27
+ "include_bias": false,
28
+ "init_cutoff_factor": null,
29
+ "init_device": "meta",
30
+ "init_fn": "mitchell",
31
+ "init_std": 0.02,
32
+ "layer_norm_type": "default",
33
+ "layer_norm_with_affine": false,
34
+ "max_sequence_length": 2048,
35
+ "mlp_hidden_size": 22016,
36
+ "mlp_ratio": 4,
37
+ "model_type": "hf_olmo",
38
+ "multi_query_attention": false,
39
+ "n_heads": 32,
40
+ "n_layers": 32,
41
+ "pad_token_id": 1,
42
+ "precision": "amp_bf16",
43
+ "residual_dropout": 0.0,
44
+ "rope": true,
45
+ "rope_full_precision": true,
46
+ "scale_logits": false,
47
+ "torch_dtype": "bfloat16",
48
+ "transformers_version": "4.35.0.dev0",
49
+ "use_cache": true,
50
+ "vocab_size": 50280,
51
+ "weight_tying": false
52
+ }
configuration_olmo.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from hf_olmo import OLMoConfig
2
+
3
+
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:148acfce238941760f81b0d66228af4d711331102d7dc54af2c32deb0d07b6d4
3
+ size 9945755032
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec7997b27142e6a09aa705e280bff475322f5e6102dd25dc895ef5bda92b50b9
3
+ size 3830452280
model.safetensors.index.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 13776191488
4
+ },
5
+ "weight_map": {
6
+ "model.transformer.blocks.0.att_proj.weight": "model-00001-of-00002.safetensors",
7
+ "model.transformer.blocks.0.attn_out.weight": "model-00001-of-00002.safetensors",
8
+ "model.transformer.blocks.0.ff_out.weight": "model-00001-of-00002.safetensors",
9
+ "model.transformer.blocks.0.ff_proj.weight": "model-00001-of-00002.safetensors",
10
+ "model.transformer.blocks.1.att_proj.weight": "model-00001-of-00002.safetensors",
11
+ "model.transformer.blocks.1.attn_out.weight": "model-00001-of-00002.safetensors",
12
+ "model.transformer.blocks.1.ff_out.weight": "model-00001-of-00002.safetensors",
13
+ "model.transformer.blocks.1.ff_proj.weight": "model-00001-of-00002.safetensors",
14
+ "model.transformer.blocks.10.att_proj.weight": "model-00001-of-00002.safetensors",
15
+ "model.transformer.blocks.10.attn_out.weight": "model-00001-of-00002.safetensors",
16
+ "model.transformer.blocks.10.ff_out.weight": "model-00001-of-00002.safetensors",
17
+ "model.transformer.blocks.10.ff_proj.weight": "model-00001-of-00002.safetensors",
18
+ "model.transformer.blocks.11.att_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.transformer.blocks.11.attn_out.weight": "model-00001-of-00002.safetensors",
20
+ "model.transformer.blocks.11.ff_out.weight": "model-00001-of-00002.safetensors",
21
+ "model.transformer.blocks.11.ff_proj.weight": "model-00001-of-00002.safetensors",
22
+ "model.transformer.blocks.12.att_proj.weight": "model-00001-of-00002.safetensors",
23
+ "model.transformer.blocks.12.attn_out.weight": "model-00001-of-00002.safetensors",
24
+ "model.transformer.blocks.12.ff_out.weight": "model-00001-of-00002.safetensors",
25
+ "model.transformer.blocks.12.ff_proj.weight": "model-00001-of-00002.safetensors",
26
+ "model.transformer.blocks.13.att_proj.weight": "model-00001-of-00002.safetensors",
27
+ "model.transformer.blocks.13.attn_out.weight": "model-00001-of-00002.safetensors",
28
+ "model.transformer.blocks.13.ff_out.weight": "model-00001-of-00002.safetensors",
29
+ "model.transformer.blocks.13.ff_proj.weight": "model-00001-of-00002.safetensors",
30
+ "model.transformer.blocks.14.att_proj.weight": "model-00001-of-00002.safetensors",
31
+ "model.transformer.blocks.14.attn_out.weight": "model-00001-of-00002.safetensors",
32
+ "model.transformer.blocks.14.ff_out.weight": "model-00001-of-00002.safetensors",
33
+ "model.transformer.blocks.14.ff_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.transformer.blocks.15.att_proj.weight": "model-00001-of-00002.safetensors",
35
+ "model.transformer.blocks.15.attn_out.weight": "model-00001-of-00002.safetensors",
36
+ "model.transformer.blocks.15.ff_out.weight": "model-00001-of-00002.safetensors",
37
+ "model.transformer.blocks.15.ff_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.transformer.blocks.16.att_proj.weight": "model-00001-of-00002.safetensors",
39
+ "model.transformer.blocks.16.attn_out.weight": "model-00001-of-00002.safetensors",
40
+ "model.transformer.blocks.16.ff_out.weight": "model-00001-of-00002.safetensors",
41
+ "model.transformer.blocks.16.ff_proj.weight": "model-00001-of-00002.safetensors",
42
+ "model.transformer.blocks.17.att_proj.weight": "model-00001-of-00002.safetensors",
43
+ "model.transformer.blocks.17.attn_out.weight": "model-00001-of-00002.safetensors",
44
+ "model.transformer.blocks.17.ff_out.weight": "model-00001-of-00002.safetensors",
45
+ "model.transformer.blocks.17.ff_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.transformer.blocks.18.att_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.transformer.blocks.18.attn_out.weight": "model-00001-of-00002.safetensors",
48
+ "model.transformer.blocks.18.ff_out.weight": "model-00001-of-00002.safetensors",
49
+ "model.transformer.blocks.18.ff_proj.weight": "model-00001-of-00002.safetensors",
50
+ "model.transformer.blocks.19.att_proj.weight": "model-00001-of-00002.safetensors",
51
+ "model.transformer.blocks.19.attn_out.weight": "model-00001-of-00002.safetensors",
52
+ "model.transformer.blocks.19.ff_out.weight": "model-00001-of-00002.safetensors",
53
+ "model.transformer.blocks.19.ff_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.transformer.blocks.2.att_proj.weight": "model-00001-of-00002.safetensors",
55
+ "model.transformer.blocks.2.attn_out.weight": "model-00001-of-00002.safetensors",
56
+ "model.transformer.blocks.2.ff_out.weight": "model-00001-of-00002.safetensors",
57
+ "model.transformer.blocks.2.ff_proj.weight": "model-00001-of-00002.safetensors",
58
+ "model.transformer.blocks.20.att_proj.weight": "model-00001-of-00002.safetensors",
59
+ "model.transformer.blocks.20.attn_out.weight": "model-00001-of-00002.safetensors",
60
+ "model.transformer.blocks.20.ff_out.weight": "model-00001-of-00002.safetensors",
61
+ "model.transformer.blocks.20.ff_proj.weight": "model-00001-of-00002.safetensors",
62
+ "model.transformer.blocks.21.att_proj.weight": "model-00001-of-00002.safetensors",
63
+ "model.transformer.blocks.21.attn_out.weight": "model-00001-of-00002.safetensors",
64
+ "model.transformer.blocks.21.ff_out.weight": "model-00001-of-00002.safetensors",
65
+ "model.transformer.blocks.21.ff_proj.weight": "model-00001-of-00002.safetensors",
66
+ "model.transformer.blocks.22.att_proj.weight": "model-00001-of-00002.safetensors",
67
+ "model.transformer.blocks.22.attn_out.weight": "model-00001-of-00002.safetensors",
68
+ "model.transformer.blocks.22.ff_out.weight": "model-00001-of-00002.safetensors",
69
+ "model.transformer.blocks.22.ff_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.transformer.blocks.23.att_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.transformer.blocks.23.attn_out.weight": "model-00001-of-00002.safetensors",
72
+ "model.transformer.blocks.23.ff_out.weight": "model-00001-of-00002.safetensors",
73
+ "model.transformer.blocks.23.ff_proj.weight": "model-00002-of-00002.safetensors",
74
+ "model.transformer.blocks.24.att_proj.weight": "model-00002-of-00002.safetensors",
75
+ "model.transformer.blocks.24.attn_out.weight": "model-00002-of-00002.safetensors",
76
+ "model.transformer.blocks.24.ff_out.weight": "model-00002-of-00002.safetensors",
77
+ "model.transformer.blocks.24.ff_proj.weight": "model-00002-of-00002.safetensors",
78
+ "model.transformer.blocks.25.att_proj.weight": "model-00002-of-00002.safetensors",
79
+ "model.transformer.blocks.25.attn_out.weight": "model-00002-of-00002.safetensors",
80
+ "model.transformer.blocks.25.ff_out.weight": "model-00002-of-00002.safetensors",
81
+ "model.transformer.blocks.25.ff_proj.weight": "model-00002-of-00002.safetensors",
82
+ "model.transformer.blocks.26.att_proj.weight": "model-00002-of-00002.safetensors",
83
+ "model.transformer.blocks.26.attn_out.weight": "model-00002-of-00002.safetensors",
84
+ "model.transformer.blocks.26.ff_out.weight": "model-00002-of-00002.safetensors",
85
+ "model.transformer.blocks.26.ff_proj.weight": "model-00002-of-00002.safetensors",
86
+ "model.transformer.blocks.27.att_proj.weight": "model-00002-of-00002.safetensors",
87
+ "model.transformer.blocks.27.attn_out.weight": "model-00002-of-00002.safetensors",
88
+ "model.transformer.blocks.27.ff_out.weight": "model-00002-of-00002.safetensors",
89
+ "model.transformer.blocks.27.ff_proj.weight": "model-00002-of-00002.safetensors",
90
+ "model.transformer.blocks.28.att_proj.weight": "model-00002-of-00002.safetensors",
91
+ "model.transformer.blocks.28.attn_out.weight": "model-00002-of-00002.safetensors",
92
+ "model.transformer.blocks.28.ff_out.weight": "model-00002-of-00002.safetensors",
93
+ "model.transformer.blocks.28.ff_proj.weight": "model-00002-of-00002.safetensors",
94
+ "model.transformer.blocks.29.att_proj.weight": "model-00002-of-00002.safetensors",
95
+ "model.transformer.blocks.29.attn_out.weight": "model-00002-of-00002.safetensors",
96
+ "model.transformer.blocks.29.ff_out.weight": "model-00002-of-00002.safetensors",
97
+ "model.transformer.blocks.29.ff_proj.weight": "model-00002-of-00002.safetensors",
98
+ "model.transformer.blocks.3.att_proj.weight": "model-00001-of-00002.safetensors",
99
+ "model.transformer.blocks.3.attn_out.weight": "model-00001-of-00002.safetensors",
100
+ "model.transformer.blocks.3.ff_out.weight": "model-00001-of-00002.safetensors",
101
+ "model.transformer.blocks.3.ff_proj.weight": "model-00001-of-00002.safetensors",
102
+ "model.transformer.blocks.30.att_proj.weight": "model-00002-of-00002.safetensors",
103
+ "model.transformer.blocks.30.attn_out.weight": "model-00002-of-00002.safetensors",
104
+ "model.transformer.blocks.30.ff_out.weight": "model-00002-of-00002.safetensors",
105
+ "model.transformer.blocks.30.ff_proj.weight": "model-00002-of-00002.safetensors",
106
+ "model.transformer.blocks.31.att_proj.weight": "model-00002-of-00002.safetensors",
107
+ "model.transformer.blocks.31.attn_out.weight": "model-00002-of-00002.safetensors",
108
+ "model.transformer.blocks.31.ff_out.weight": "model-00002-of-00002.safetensors",
109
+ "model.transformer.blocks.31.ff_proj.weight": "model-00002-of-00002.safetensors",
110
+ "model.transformer.blocks.4.att_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.transformer.blocks.4.attn_out.weight": "model-00001-of-00002.safetensors",
112
+ "model.transformer.blocks.4.ff_out.weight": "model-00001-of-00002.safetensors",
113
+ "model.transformer.blocks.4.ff_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.transformer.blocks.5.att_proj.weight": "model-00001-of-00002.safetensors",
115
+ "model.transformer.blocks.5.attn_out.weight": "model-00001-of-00002.safetensors",
116
+ "model.transformer.blocks.5.ff_out.weight": "model-00001-of-00002.safetensors",
117
+ "model.transformer.blocks.5.ff_proj.weight": "model-00001-of-00002.safetensors",
118
+ "model.transformer.blocks.6.att_proj.weight": "model-00001-of-00002.safetensors",
119
+ "model.transformer.blocks.6.attn_out.weight": "model-00001-of-00002.safetensors",
120
+ "model.transformer.blocks.6.ff_out.weight": "model-00001-of-00002.safetensors",
121
+ "model.transformer.blocks.6.ff_proj.weight": "model-00001-of-00002.safetensors",
122
+ "model.transformer.blocks.7.att_proj.weight": "model-00001-of-00002.safetensors",
123
+ "model.transformer.blocks.7.attn_out.weight": "model-00001-of-00002.safetensors",
124
+ "model.transformer.blocks.7.ff_out.weight": "model-00001-of-00002.safetensors",
125
+ "model.transformer.blocks.7.ff_proj.weight": "model-00001-of-00002.safetensors",
126
+ "model.transformer.blocks.8.att_proj.weight": "model-00001-of-00002.safetensors",
127
+ "model.transformer.blocks.8.attn_out.weight": "model-00001-of-00002.safetensors",
128
+ "model.transformer.blocks.8.ff_out.weight": "model-00001-of-00002.safetensors",
129
+ "model.transformer.blocks.8.ff_proj.weight": "model-00001-of-00002.safetensors",
130
+ "model.transformer.blocks.9.att_proj.weight": "model-00001-of-00002.safetensors",
131
+ "model.transformer.blocks.9.attn_out.weight": "model-00001-of-00002.safetensors",
132
+ "model.transformer.blocks.9.ff_out.weight": "model-00001-of-00002.safetensors",
133
+ "model.transformer.blocks.9.ff_proj.weight": "model-00001-of-00002.safetensors",
134
+ "model.transformer.ff_out.weight": "model-00002-of-00002.safetensors",
135
+ "model.transformer.wte.weight": "model-00001-of-00002.safetensors"
136
+ }
137
+ }
modeling_olmo.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from hf_olmo import OLMoForCausalLM
2
+
3
+
pytorch_model-00001-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c01e8e5db3174103ebbf4435dfb9c746e6fb2eb890966429e4a9e182ee3c277
3
+ size 9945777322
pytorch_model-00002-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3ae639bb44aca919f0c8f0966824d2f4dfe2eca5719eba0d5d70a02ed8cfbec
3
+ size 3830460110
pytorch_model.bin.index.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 13776191488
4
+ },
5
+ "weight_map": {
6
+ "model.transformer.blocks.0.att_proj.weight": "pytorch_model-00001-of-00002.bin",
7
+ "model.transformer.blocks.0.attn_out.weight": "pytorch_model-00001-of-00002.bin",
8
+ "model.transformer.blocks.0.ff_out.weight": "pytorch_model-00001-of-00002.bin",
9
+ "model.transformer.blocks.0.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
10
+ "model.transformer.blocks.1.att_proj.weight": "pytorch_model-00001-of-00002.bin",
11
+ "model.transformer.blocks.1.attn_out.weight": "pytorch_model-00001-of-00002.bin",
12
+ "model.transformer.blocks.1.ff_out.weight": "pytorch_model-00001-of-00002.bin",
13
+ "model.transformer.blocks.1.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
14
+ "model.transformer.blocks.10.att_proj.weight": "pytorch_model-00001-of-00002.bin",
15
+ "model.transformer.blocks.10.attn_out.weight": "pytorch_model-00001-of-00002.bin",
16
+ "model.transformer.blocks.10.ff_out.weight": "pytorch_model-00001-of-00002.bin",
17
+ "model.transformer.blocks.10.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
18
+ "model.transformer.blocks.11.att_proj.weight": "pytorch_model-00001-of-00002.bin",
19
+ "model.transformer.blocks.11.attn_out.weight": "pytorch_model-00001-of-00002.bin",
20
+ "model.transformer.blocks.11.ff_out.weight": "pytorch_model-00001-of-00002.bin",
21
+ "model.transformer.blocks.11.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
22
+ "model.transformer.blocks.12.att_proj.weight": "pytorch_model-00001-of-00002.bin",
23
+ "model.transformer.blocks.12.attn_out.weight": "pytorch_model-00001-of-00002.bin",
24
+ "model.transformer.blocks.12.ff_out.weight": "pytorch_model-00001-of-00002.bin",
25
+ "model.transformer.blocks.12.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
26
+ "model.transformer.blocks.13.att_proj.weight": "pytorch_model-00001-of-00002.bin",
27
+ "model.transformer.blocks.13.attn_out.weight": "pytorch_model-00001-of-00002.bin",
28
+ "model.transformer.blocks.13.ff_out.weight": "pytorch_model-00001-of-00002.bin",
29
+ "model.transformer.blocks.13.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
30
+ "model.transformer.blocks.14.att_proj.weight": "pytorch_model-00001-of-00002.bin",
31
+ "model.transformer.blocks.14.attn_out.weight": "pytorch_model-00001-of-00002.bin",
32
+ "model.transformer.blocks.14.ff_out.weight": "pytorch_model-00001-of-00002.bin",
33
+ "model.transformer.blocks.14.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
34
+ "model.transformer.blocks.15.att_proj.weight": "pytorch_model-00001-of-00002.bin",
35
+ "model.transformer.blocks.15.attn_out.weight": "pytorch_model-00001-of-00002.bin",
36
+ "model.transformer.blocks.15.ff_out.weight": "pytorch_model-00001-of-00002.bin",
37
+ "model.transformer.blocks.15.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
38
+ "model.transformer.blocks.16.att_proj.weight": "pytorch_model-00001-of-00002.bin",
39
+ "model.transformer.blocks.16.attn_out.weight": "pytorch_model-00001-of-00002.bin",
40
+ "model.transformer.blocks.16.ff_out.weight": "pytorch_model-00001-of-00002.bin",
41
+ "model.transformer.blocks.16.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
42
+ "model.transformer.blocks.17.att_proj.weight": "pytorch_model-00001-of-00002.bin",
43
+ "model.transformer.blocks.17.attn_out.weight": "pytorch_model-00001-of-00002.bin",
44
+ "model.transformer.blocks.17.ff_out.weight": "pytorch_model-00001-of-00002.bin",
45
+ "model.transformer.blocks.17.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
46
+ "model.transformer.blocks.18.att_proj.weight": "pytorch_model-00001-of-00002.bin",
47
+ "model.transformer.blocks.18.attn_out.weight": "pytorch_model-00001-of-00002.bin",
48
+ "model.transformer.blocks.18.ff_out.weight": "pytorch_model-00001-of-00002.bin",
49
+ "model.transformer.blocks.18.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
50
+ "model.transformer.blocks.19.att_proj.weight": "pytorch_model-00001-of-00002.bin",
51
+ "model.transformer.blocks.19.attn_out.weight": "pytorch_model-00001-of-00002.bin",
52
+ "model.transformer.blocks.19.ff_out.weight": "pytorch_model-00001-of-00002.bin",
53
+ "model.transformer.blocks.19.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
54
+ "model.transformer.blocks.2.att_proj.weight": "pytorch_model-00001-of-00002.bin",
55
+ "model.transformer.blocks.2.attn_out.weight": "pytorch_model-00001-of-00002.bin",
56
+ "model.transformer.blocks.2.ff_out.weight": "pytorch_model-00001-of-00002.bin",
57
+ "model.transformer.blocks.2.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
58
+ "model.transformer.blocks.20.att_proj.weight": "pytorch_model-00001-of-00002.bin",
59
+ "model.transformer.blocks.20.attn_out.weight": "pytorch_model-00001-of-00002.bin",
60
+ "model.transformer.blocks.20.ff_out.weight": "pytorch_model-00001-of-00002.bin",
61
+ "model.transformer.blocks.20.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
62
+ "model.transformer.blocks.21.att_proj.weight": "pytorch_model-00001-of-00002.bin",
63
+ "model.transformer.blocks.21.attn_out.weight": "pytorch_model-00001-of-00002.bin",
64
+ "model.transformer.blocks.21.ff_out.weight": "pytorch_model-00001-of-00002.bin",
65
+ "model.transformer.blocks.21.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
66
+ "model.transformer.blocks.22.att_proj.weight": "pytorch_model-00001-of-00002.bin",
67
+ "model.transformer.blocks.22.attn_out.weight": "pytorch_model-00001-of-00002.bin",
68
+ "model.transformer.blocks.22.ff_out.weight": "pytorch_model-00001-of-00002.bin",
69
+ "model.transformer.blocks.22.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
70
+ "model.transformer.blocks.23.att_proj.weight": "pytorch_model-00001-of-00002.bin",
71
+ "model.transformer.blocks.23.attn_out.weight": "pytorch_model-00001-of-00002.bin",
72
+ "model.transformer.blocks.23.ff_out.weight": "pytorch_model-00001-of-00002.bin",
73
+ "model.transformer.blocks.23.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
74
+ "model.transformer.blocks.24.att_proj.weight": "pytorch_model-00002-of-00002.bin",
75
+ "model.transformer.blocks.24.attn_out.weight": "pytorch_model-00002-of-00002.bin",
76
+ "model.transformer.blocks.24.ff_out.weight": "pytorch_model-00002-of-00002.bin",
77
+ "model.transformer.blocks.24.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
78
+ "model.transformer.blocks.25.att_proj.weight": "pytorch_model-00002-of-00002.bin",
79
+ "model.transformer.blocks.25.attn_out.weight": "pytorch_model-00002-of-00002.bin",
80
+ "model.transformer.blocks.25.ff_out.weight": "pytorch_model-00002-of-00002.bin",
81
+ "model.transformer.blocks.25.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
82
+ "model.transformer.blocks.26.att_proj.weight": "pytorch_model-00002-of-00002.bin",
83
+ "model.transformer.blocks.26.attn_out.weight": "pytorch_model-00002-of-00002.bin",
84
+ "model.transformer.blocks.26.ff_out.weight": "pytorch_model-00002-of-00002.bin",
85
+ "model.transformer.blocks.26.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
86
+ "model.transformer.blocks.27.att_proj.weight": "pytorch_model-00002-of-00002.bin",
87
+ "model.transformer.blocks.27.attn_out.weight": "pytorch_model-00002-of-00002.bin",
88
+ "model.transformer.blocks.27.ff_out.weight": "pytorch_model-00002-of-00002.bin",
89
+ "model.transformer.blocks.27.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
90
+ "model.transformer.blocks.28.att_proj.weight": "pytorch_model-00002-of-00002.bin",
91
+ "model.transformer.blocks.28.attn_out.weight": "pytorch_model-00002-of-00002.bin",
92
+ "model.transformer.blocks.28.ff_out.weight": "pytorch_model-00002-of-00002.bin",
93
+ "model.transformer.blocks.28.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
94
+ "model.transformer.blocks.29.att_proj.weight": "pytorch_model-00002-of-00002.bin",
95
+ "model.transformer.blocks.29.attn_out.weight": "pytorch_model-00002-of-00002.bin",
96
+ "model.transformer.blocks.29.ff_out.weight": "pytorch_model-00002-of-00002.bin",
97
+ "model.transformer.blocks.29.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
98
+ "model.transformer.blocks.3.att_proj.weight": "pytorch_model-00001-of-00002.bin",
99
+ "model.transformer.blocks.3.attn_out.weight": "pytorch_model-00001-of-00002.bin",
100
+ "model.transformer.blocks.3.ff_out.weight": "pytorch_model-00001-of-00002.bin",
101
+ "model.transformer.blocks.3.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
102
+ "model.transformer.blocks.30.att_proj.weight": "pytorch_model-00002-of-00002.bin",
103
+ "model.transformer.blocks.30.attn_out.weight": "pytorch_model-00002-of-00002.bin",
104
+ "model.transformer.blocks.30.ff_out.weight": "pytorch_model-00002-of-00002.bin",
105
+ "model.transformer.blocks.30.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
106
+ "model.transformer.blocks.31.att_proj.weight": "pytorch_model-00002-of-00002.bin",
107
+ "model.transformer.blocks.31.attn_out.weight": "pytorch_model-00002-of-00002.bin",
108
+ "model.transformer.blocks.31.ff_out.weight": "pytorch_model-00002-of-00002.bin",
109
+ "model.transformer.blocks.31.ff_proj.weight": "pytorch_model-00002-of-00002.bin",
110
+ "model.transformer.blocks.4.att_proj.weight": "pytorch_model-00001-of-00002.bin",
111
+ "model.transformer.blocks.4.attn_out.weight": "pytorch_model-00001-of-00002.bin",
112
+ "model.transformer.blocks.4.ff_out.weight": "pytorch_model-00001-of-00002.bin",
113
+ "model.transformer.blocks.4.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
114
+ "model.transformer.blocks.5.att_proj.weight": "pytorch_model-00001-of-00002.bin",
115
+ "model.transformer.blocks.5.attn_out.weight": "pytorch_model-00001-of-00002.bin",
116
+ "model.transformer.blocks.5.ff_out.weight": "pytorch_model-00001-of-00002.bin",
117
+ "model.transformer.blocks.5.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
118
+ "model.transformer.blocks.6.att_proj.weight": "pytorch_model-00001-of-00002.bin",
119
+ "model.transformer.blocks.6.attn_out.weight": "pytorch_model-00001-of-00002.bin",
120
+ "model.transformer.blocks.6.ff_out.weight": "pytorch_model-00001-of-00002.bin",
121
+ "model.transformer.blocks.6.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
122
+ "model.transformer.blocks.7.att_proj.weight": "pytorch_model-00001-of-00002.bin",
123
+ "model.transformer.blocks.7.attn_out.weight": "pytorch_model-00001-of-00002.bin",
124
+ "model.transformer.blocks.7.ff_out.weight": "pytorch_model-00001-of-00002.bin",
125
+ "model.transformer.blocks.7.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
126
+ "model.transformer.blocks.8.att_proj.weight": "pytorch_model-00001-of-00002.bin",
127
+ "model.transformer.blocks.8.attn_out.weight": "pytorch_model-00001-of-00002.bin",
128
+ "model.transformer.blocks.8.ff_out.weight": "pytorch_model-00001-of-00002.bin",
129
+ "model.transformer.blocks.8.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
130
+ "model.transformer.blocks.9.att_proj.weight": "pytorch_model-00001-of-00002.bin",
131
+ "model.transformer.blocks.9.attn_out.weight": "pytorch_model-00001-of-00002.bin",
132
+ "model.transformer.blocks.9.ff_out.weight": "pytorch_model-00001-of-00002.bin",
133
+ "model.transformer.blocks.9.ff_proj.weight": "pytorch_model-00001-of-00002.bin",
134
+ "model.transformer.ff_out.weight": "pytorch_model-00002-of-00002.bin",
135
+ "model.transformer.wte.weight": "pytorch_model-00001-of-00002.bin"
136
+ }
137
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "eos_token": "<|endoftext|>",
3
+ "pad_token": "<|padding|>"
4
+ }
5
+
tokenization_olmo_fast.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ from hf_olmo.tokenization_olmo_fast import OLMoTokenizerFast
2
+
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "|||IP_ADDRESS|||",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": false
10
+ },
11
+ "1": {
12
+ "content": "<|padding|>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "50254": {
20
+ "content": " ",
21
+ "lstrip": false,
22
+ "normalized": true,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": false
26
+ },
27
+ "50255": {
28
+ "content": " ",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": false
34
+ },
35
+ "50256": {
36
+ "content": " ",
37
+ "lstrip": false,
38
+ "normalized": true,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": false
42
+ },
43
+ "50257": {
44
+ "content": " ",
45
+ "lstrip": false,
46
+ "normalized": true,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": false
50
+ },
51
+ "50258": {
52
+ "content": " ",
53
+ "lstrip": false,
54
+ "normalized": true,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": false
58
+ },
59
+ "50259": {
60
+ "content": " ",
61
+ "lstrip": false,
62
+ "normalized": true,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": false
66
+ },
67
+ "50260": {
68
+ "content": " ",
69
+ "lstrip": false,
70
+ "normalized": true,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": false
74
+ },
75
+ "50261": {
76
+ "content": " ",
77
+ "lstrip": false,
78
+ "normalized": true,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": false
82
+ },
83
+ "50262": {
84
+ "content": " ",
85
+ "lstrip": false,
86
+ "normalized": true,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": false
90
+ },
91
+ "50263": {
92
+ "content": " ",
93
+ "lstrip": false,
94
+ "normalized": true,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": false
98
+ },
99
+ "50264": {
100
+ "content": " ",
101
+ "lstrip": false,
102
+ "normalized": true,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": false
106
+ },
107
+ "50265": {
108
+ "content": " ",
109
+ "lstrip": false,
110
+ "normalized": true,
111
+ "rstrip": false,
112
+ "single_word": false,
113
+ "special": false
114
+ },
115
+ "50266": {
116
+ "content": " ",
117
+ "lstrip": false,
118
+ "normalized": true,
119
+ "rstrip": false,
120
+ "single_word": false,
121
+ "special": false
122
+ },
123
+ "50267": {
124
+ "content": " ",
125
+ "lstrip": false,
126
+ "normalized": true,
127
+ "rstrip": false,
128
+ "single_word": false,
129
+ "special": false
130
+ },
131
+ "50268": {
132
+ "content": " ",
133
+ "lstrip": false,
134
+ "normalized": true,
135
+ "rstrip": false,
136
+ "single_word": false,
137
+ "special": false
138
+ },
139
+ "50269": {
140
+ "content": " ",
141
+ "lstrip": false,
142
+ "normalized": true,
143
+ "rstrip": false,
144
+ "single_word": false,
145
+ "special": false
146
+ },
147
+ "50270": {
148
+ "content": " ",
149
+ "lstrip": false,
150
+ "normalized": true,
151
+ "rstrip": false,
152
+ "single_word": false,
153
+ "special": false
154
+ },
155
+ "50271": {
156
+ "content": " ",
157
+ "lstrip": false,
158
+ "normalized": true,
159
+ "rstrip": false,
160
+ "single_word": false,
161
+ "special": false
162
+ },
163
+ "50272": {
164
+ "content": " ",
165
+ "lstrip": false,
166
+ "normalized": true,
167
+ "rstrip": false,
168
+ "single_word": false,
169
+ "special": false
170
+ },
171
+ "50273": {
172
+ "content": " ",
173
+ "lstrip": false,
174
+ "normalized": true,
175
+ "rstrip": false,
176
+ "single_word": false,
177
+ "special": false
178
+ },
179
+ "50274": {
180
+ "content": " ",
181
+ "lstrip": false,
182
+ "normalized": true,
183
+ "rstrip": false,
184
+ "single_word": false,
185
+ "special": false
186
+ },
187
+ "50275": {
188
+ "content": " ",
189
+ "lstrip": false,
190
+ "normalized": true,
191
+ "rstrip": false,
192
+ "single_word": false,
193
+ "special": false
194
+ },
195
+ "50276": {
196
+ "content": " ",
197
+ "lstrip": false,
198
+ "normalized": true,
199
+ "rstrip": false,
200
+ "single_word": false,
201
+ "special": false
202
+ },
203
+ "50277": {
204
+ "content": "|||EMAIL_ADDRESS|||",
205
+ "lstrip": false,
206
+ "normalized": true,
207
+ "rstrip": false,
208
+ "single_word": false,
209
+ "special": false
210
+ },
211
+ "50278": {
212
+ "content": "|||PHONE_NUMBER|||",
213
+ "lstrip": false,
214
+ "normalized": true,
215
+ "rstrip": false,
216
+ "single_word": false,
217
+ "special": false
218
+ },
219
+ "50279": {
220
+ "content": "<|endoftext|>",
221
+ "lstrip": false,
222
+ "normalized": false,
223
+ "rstrip": false,
224
+ "single_word": false,
225
+ "special": true
226
+ }
227
+ },
228
+ "clean_up_tokenization_spaces": true,
229
+ "eos_token": "<|endoftext|>",
230
+ "max_length": null,
231
+ "model_max_length": 1000000000000000019884624838656,
232
+ "pad_token": "<|padding|>",
233
+ "tokenizer_class": "OLMoTokenizer",
234
+ "truncation": "right",
235
+ "auto_map": {
236
+ "AutoConfig": "configuration_olmo.OLMoConfig",
237
+ "AutoTokenizer": [
238
+ "tokenization_olmo_fast.OLMoTokenizerFast",
239
+ "tokenization_olmo_fast.OLMoTokenizerFast"
240
+ ]
241
+ },
242
+ "chat_template": "{{ eos_token }}{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}"
243
+ }