Raiff1982 commited on
Commit
d8a8565
·
verified ·
1 Parent(s): 794a695

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -43,3 +43,6 @@ davinci/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
  empathy/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
44
  empathy/checkpoint-939/tokenizer.json filter=lfs diff=lfs merge=lfs -text
45
  empathy/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
43
  empathy/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
44
  empathy/checkpoint-939/tokenizer.json filter=lfs diff=lfs merge=lfs -text
45
  empathy/tokenizer.json filter=lfs diff=lfs merge=lfs -text
46
+ philosophy/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
47
+ philosophy/checkpoint-750/tokenizer.json filter=lfs diff=lfs merge=lfs -text
48
+ philosophy/tokenizer.json filter=lfs diff=lfs merge=lfs -text
philosophy/README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.1-8B-Instruct
3
+ library_name: peft
4
+ model_name: philosophy
5
+ tags:
6
+ - base_model:adapter:meta-llama/Llama-3.1-8B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ licence: license
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ # Model Card for philosophy
16
+
17
+ This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct).
18
+ It has been trained using [TRL](https://github.com/huggingface/trl).
19
+
20
+ ## Quick start
21
+
22
+ ```python
23
+ from transformers import pipeline
24
+
25
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
26
+ generator = pipeline("text-generation", model="None", device="cuda")
27
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
28
+ print(output["generated_text"])
29
+ ```
30
+
31
+ ## Training procedure
32
+
33
+
34
+
35
+
36
+
37
+ This model was trained with SFT.
38
+
39
+ ### Framework versions
40
+
41
+ - PEFT 0.18.1
42
+ - TRL: 0.29.0
43
+ - Transformers: 5.3.0
44
+ - Pytorch: 2.10.0
45
+ - Datasets: 4.6.1
46
+ - Tokenizers: 0.22.2
47
+
48
+ ## Citations
49
+
50
+
51
+
52
+ Cite TRL as:
53
+
54
+ ```bibtex
55
+ @software{vonwerra2020trl,
56
+ title = {{TRL: Transformers Reinforcement Learning}},
57
+ author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
58
+ license = {Apache-2.0},
59
+ url = {https://github.com/huggingface/trl},
60
+ year = {2020}
61
+ }
62
+ ```
philosophy/adapter_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "meta-llama/Llama-3.1-8B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 16,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "v_proj",
33
+ "o_proj",
34
+ "k_proj",
35
+ "q_proj"
36
+ ],
37
+ "target_parameters": null,
38
+ "task_type": "CAUSAL_LM",
39
+ "trainable_token_indices": null,
40
+ "use_dora": false,
41
+ "use_qalora": false,
42
+ "use_rslora": false
43
+ }
philosophy/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f1e0fd3925a2d53626c02c09e001d0efdf0e1b122d4b4a93b2fdcbf1132be02
3
+ size 27297544
philosophy/chat_template.jinja ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- set date_string = "26 Jul 2024" %}
10
+ {%- endif %}
11
+ {%- if not tools is defined %}
12
+ {%- set tools = none %}
13
+ {%- endif %}
14
+
15
+ {#- This block extracts the system message, so we can slot it into the right place. #}
16
+ {%- if messages[0]['role'] == 'system' %}
17
+ {%- set system_message = messages[0]['content']|trim %}
18
+ {%- set messages = messages[1:] %}
19
+ {%- else %}
20
+ {%- set system_message = "" %}
21
+ {%- endif %}
22
+
23
+ {#- System message + builtin tools #}
24
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
25
+ {%- if builtin_tools is defined or tools is not none %}
26
+ {{- "Environment: ipython\n" }}
27
+ {%- endif %}
28
+ {%- if builtin_tools is defined %}
29
+ {{- "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
30
+ {%- endif %}
31
+ {{- "Cutting Knowledge Date: December 2023\n" }}
32
+ {{- "Today Date: " + date_string + "\n\n" }}
33
+ {%- if tools is not none and not tools_in_user_message %}
34
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
35
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
36
+ {{- "Do not use variables.\n\n" }}
37
+ {%- for t in tools %}
38
+ {{- t | tojson(indent=4) }}
39
+ {{- "\n\n" }}
40
+ {%- endfor %}
41
+ {%- endif %}
42
+ {{- system_message }}
43
+ {{- "<|eot_id|>" }}
44
+
45
+ {#- Custom tools are passed in a user message with some extra guidance #}
46
+ {%- if tools_in_user_message and not tools is none %}
47
+ {#- Extract the first user message so we can plug it in here #}
48
+ {%- if messages | length != 0 %}
49
+ {%- set first_user_message = messages[0]['content']|trim %}
50
+ {%- set messages = messages[1:] %}
51
+ {%- else %}
52
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
53
+ {%- endif %}
54
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
55
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
56
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
57
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
58
+ {{- "Do not use variables.\n\n" }}
59
+ {%- for t in tools %}
60
+ {{- t | tojson(indent=4) }}
61
+ {{- "\n\n" }}
62
+ {%- endfor %}
63
+ {{- first_user_message + "<|eot_id|>"}}
64
+ {%- endif %}
65
+
66
+ {%- for message in messages %}
67
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
68
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
69
+ {%- elif 'tool_calls' in message %}
70
+ {%- if not message.tool_calls|length == 1 %}
71
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
72
+ {%- endif %}
73
+ {%- set tool_call = message.tool_calls[0].function %}
74
+ {%- if builtin_tools is defined and tool_call.name in builtin_tools %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- "<|python_tag|>" + tool_call.name + ".call(" }}
77
+ {%- for arg_name, arg_val in tool_call.arguments | items %}
78
+ {{- arg_name + '="' + arg_val + '"' }}
79
+ {%- if not loop.last %}
80
+ {{- ", " }}
81
+ {%- endif %}
82
+ {%- endfor %}
83
+ {{- ")" }}
84
+ {%- else %}
85
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
86
+ {{- '{"name": "' + tool_call.name + '", ' }}
87
+ {{- '"parameters": ' }}
88
+ {{- tool_call.arguments | tojson }}
89
+ {{- "}" }}
90
+ {%- endif %}
91
+ {%- if builtin_tools is defined %}
92
+ {#- This means we're in ipython mode #}
93
+ {{- "<|eom_id|>" }}
94
+ {%- else %}
95
+ {{- "<|eot_id|>" }}
96
+ {%- endif %}
97
+ {%- elif message.role == "tool" or message.role == "ipython" %}
98
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
99
+ {%- if message.content is mapping or message.content is iterable %}
100
+ {{- message.content | tojson }}
101
+ {%- else %}
102
+ {{- message.content }}
103
+ {%- endif %}
104
+ {{- "<|eot_id|>" }}
105
+ {%- endif %}
106
+ {%- endfor %}
107
+ {%- if add_generation_prompt %}
108
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
109
+ {%- endif %}
philosophy/checkpoint-500/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.1-8B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:meta-llama/Llama-3.1-8B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.18.1
philosophy/checkpoint-500/adapter_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "meta-llama/Llama-3.1-8B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 16,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "v_proj",
33
+ "o_proj",
34
+ "k_proj",
35
+ "q_proj"
36
+ ],
37
+ "target_parameters": null,
38
+ "task_type": "CAUSAL_LM",
39
+ "trainable_token_indices": null,
40
+ "use_dora": false,
41
+ "use_qalora": false,
42
+ "use_rslora": false
43
+ }
philosophy/checkpoint-500/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d447a7c3e5f295dae41b541d58440649dd0f2689bec3bfe5aef1a9f25755733c
3
+ size 27297544
philosophy/checkpoint-500/chat_template.jinja ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- set date_string = "26 Jul 2024" %}
10
+ {%- endif %}
11
+ {%- if not tools is defined %}
12
+ {%- set tools = none %}
13
+ {%- endif %}
14
+
15
+ {#- This block extracts the system message, so we can slot it into the right place. #}
16
+ {%- if messages[0]['role'] == 'system' %}
17
+ {%- set system_message = messages[0]['content']|trim %}
18
+ {%- set messages = messages[1:] %}
19
+ {%- else %}
20
+ {%- set system_message = "" %}
21
+ {%- endif %}
22
+
23
+ {#- System message + builtin tools #}
24
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
25
+ {%- if builtin_tools is defined or tools is not none %}
26
+ {{- "Environment: ipython\n" }}
27
+ {%- endif %}
28
+ {%- if builtin_tools is defined %}
29
+ {{- "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
30
+ {%- endif %}
31
+ {{- "Cutting Knowledge Date: December 2023\n" }}
32
+ {{- "Today Date: " + date_string + "\n\n" }}
33
+ {%- if tools is not none and not tools_in_user_message %}
34
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
35
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
36
+ {{- "Do not use variables.\n\n" }}
37
+ {%- for t in tools %}
38
+ {{- t | tojson(indent=4) }}
39
+ {{- "\n\n" }}
40
+ {%- endfor %}
41
+ {%- endif %}
42
+ {{- system_message }}
43
+ {{- "<|eot_id|>" }}
44
+
45
+ {#- Custom tools are passed in a user message with some extra guidance #}
46
+ {%- if tools_in_user_message and not tools is none %}
47
+ {#- Extract the first user message so we can plug it in here #}
48
+ {%- if messages | length != 0 %}
49
+ {%- set first_user_message = messages[0]['content']|trim %}
50
+ {%- set messages = messages[1:] %}
51
+ {%- else %}
52
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
53
+ {%- endif %}
54
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
55
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
56
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
57
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
58
+ {{- "Do not use variables.\n\n" }}
59
+ {%- for t in tools %}
60
+ {{- t | tojson(indent=4) }}
61
+ {{- "\n\n" }}
62
+ {%- endfor %}
63
+ {{- first_user_message + "<|eot_id|>"}}
64
+ {%- endif %}
65
+
66
+ {%- for message in messages %}
67
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
68
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
69
+ {%- elif 'tool_calls' in message %}
70
+ {%- if not message.tool_calls|length == 1 %}
71
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
72
+ {%- endif %}
73
+ {%- set tool_call = message.tool_calls[0].function %}
74
+ {%- if builtin_tools is defined and tool_call.name in builtin_tools %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- "<|python_tag|>" + tool_call.name + ".call(" }}
77
+ {%- for arg_name, arg_val in tool_call.arguments | items %}
78
+ {{- arg_name + '="' + arg_val + '"' }}
79
+ {%- if not loop.last %}
80
+ {{- ", " }}
81
+ {%- endif %}
82
+ {%- endfor %}
83
+ {{- ")" }}
84
+ {%- else %}
85
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
86
+ {{- '{"name": "' + tool_call.name + '", ' }}
87
+ {{- '"parameters": ' }}
88
+ {{- tool_call.arguments | tojson }}
89
+ {{- "}" }}
90
+ {%- endif %}
91
+ {%- if builtin_tools is defined %}
92
+ {#- This means we're in ipython mode #}
93
+ {{- "<|eom_id|>" }}
94
+ {%- else %}
95
+ {{- "<|eot_id|>" }}
96
+ {%- endif %}
97
+ {%- elif message.role == "tool" or message.role == "ipython" %}
98
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
99
+ {%- if message.content is mapping or message.content is iterable %}
100
+ {{- message.content | tojson }}
101
+ {%- else %}
102
+ {{- message.content }}
103
+ {%- endif %}
104
+ {{- "<|eot_id|>" }}
105
+ {%- endif %}
106
+ {%- endfor %}
107
+ {%- if add_generation_prompt %}
108
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
109
+ {%- endif %}
philosophy/checkpoint-500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1335c897279a5d4e53ecf21c2a91c44787204f6b25fb068373045f258f668441
3
+ size 54745547
philosophy/checkpoint-500/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d2756358226c87346dc4480ed8a016f97afc9510468846529fba55a5df8d975
3
+ size 14645
philosophy/checkpoint-500/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9112a0b881e5deafd2aa5f4f7fa0120abe4d3a263a4a28ed2d9bd5be41f60e5f
3
+ size 1465
philosophy/checkpoint-500/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
philosophy/checkpoint-500/tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "model_input_names": [
8
+ "input_ids",
9
+ "attention_mask"
10
+ ],
11
+ "model_max_length": 131072,
12
+ "pad_token": "<|eot_id|>",
13
+ "tokenizer_class": "TokenizersBackend"
14
+ }
philosophy/checkpoint-500/trainer_state.json ADDED
@@ -0,0 +1,534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0,
6
+ "eval_steps": 500,
7
+ "global_step": 500,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 2.5829271137714387,
14
+ "epoch": 0.04,
15
+ "grad_norm": 0.22265625,
16
+ "learning_rate": 7.82608695652174e-05,
17
+ "loss": 2.753033256530762,
18
+ "mean_token_accuracy": 0.47655483335256577,
19
+ "num_tokens": 57516.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 2.1414968103170393,
24
+ "epoch": 0.08,
25
+ "grad_norm": 0.3125,
26
+ "learning_rate": 0.00016521739130434784,
27
+ "loss": 2.252544975280762,
28
+ "mean_token_accuracy": 0.5344504326581955,
29
+ "num_tokens": 114625.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.5927900850772858,
34
+ "epoch": 0.12,
35
+ "grad_norm": 0.294921875,
36
+ "learning_rate": 0.00019834938101788172,
37
+ "loss": 1.5284319877624513,
38
+ "mean_token_accuracy": 0.6448445409536362,
39
+ "num_tokens": 172633.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.066284140944481,
44
+ "epoch": 0.16,
45
+ "grad_norm": 0.29296875,
46
+ "learning_rate": 0.00019559834938101788,
47
+ "loss": 1.0070317268371582,
48
+ "mean_token_accuracy": 0.7579783260822296,
49
+ "num_tokens": 230008.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.7492925658822059,
54
+ "epoch": 0.2,
55
+ "grad_norm": 0.349609375,
56
+ "learning_rate": 0.00019284731774415407,
57
+ "loss": 0.6781857490539551,
58
+ "mean_token_accuracy": 0.8379659116268158,
59
+ "num_tokens": 287745.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.4886126838624477,
64
+ "epoch": 0.24,
65
+ "grad_norm": 0.283203125,
66
+ "learning_rate": 0.00019009628610729023,
67
+ "loss": 0.4119734287261963,
68
+ "mean_token_accuracy": 0.90355384349823,
69
+ "num_tokens": 344648.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.3210501965135336,
74
+ "epoch": 0.28,
75
+ "grad_norm": 0.2890625,
76
+ "learning_rate": 0.00018734525447042642,
77
+ "loss": 0.26181983947753906,
78
+ "mean_token_accuracy": 0.9407488569617272,
79
+ "num_tokens": 401769.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.2309522196650505,
84
+ "epoch": 0.32,
85
+ "grad_norm": 0.263671875,
86
+ "learning_rate": 0.0001845942228335626,
87
+ "loss": 0.18270236253738403,
88
+ "mean_token_accuracy": 0.9581082716584206,
89
+ "num_tokens": 459550.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.1708126749843359,
94
+ "epoch": 0.36,
95
+ "grad_norm": 0.171875,
96
+ "learning_rate": 0.00018184319119669877,
97
+ "loss": 0.14424270391464233,
98
+ "mean_token_accuracy": 0.9642902180552483,
99
+ "num_tokens": 517398.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.15145639330148697,
104
+ "epoch": 0.4,
105
+ "grad_norm": 0.2001953125,
106
+ "learning_rate": 0.00017909215955983493,
107
+ "loss": 0.13087010383605957,
108
+ "mean_token_accuracy": 0.9660168617963791,
109
+ "num_tokens": 574967.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.13481491524726152,
114
+ "epoch": 0.44,
115
+ "grad_norm": 0.26953125,
116
+ "learning_rate": 0.00017634112792297112,
117
+ "loss": 0.11579867601394653,
118
+ "mean_token_accuracy": 0.9678210973739624,
119
+ "num_tokens": 632520.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.1284633142873645,
124
+ "epoch": 0.48,
125
+ "grad_norm": 0.103515625,
126
+ "learning_rate": 0.00017359009628610728,
127
+ "loss": 0.10407105684280396,
128
+ "mean_token_accuracy": 0.9692364946007729,
129
+ "num_tokens": 690238.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.1187555018812418,
134
+ "epoch": 0.52,
135
+ "grad_norm": 0.126953125,
136
+ "learning_rate": 0.00017083906464924347,
137
+ "loss": 0.09683982133865357,
138
+ "mean_token_accuracy": 0.9708453178405761,
139
+ "num_tokens": 747673.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.10958560761064291,
144
+ "epoch": 0.56,
145
+ "grad_norm": 0.10693359375,
146
+ "learning_rate": 0.00016808803301237966,
147
+ "loss": 0.0926922857761383,
148
+ "mean_token_accuracy": 0.9707283571362495,
149
+ "num_tokens": 805740.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.10269597116857768,
154
+ "epoch": 0.6,
155
+ "grad_norm": 0.0888671875,
156
+ "learning_rate": 0.00016533700137551582,
157
+ "loss": 0.08726000189781188,
158
+ "mean_token_accuracy": 0.971497131884098,
159
+ "num_tokens": 862869.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.10038086380809545,
164
+ "epoch": 0.64,
165
+ "grad_norm": 0.10595703125,
166
+ "learning_rate": 0.000162585969738652,
167
+ "loss": 0.0867941677570343,
168
+ "mean_token_accuracy": 0.9717385217547416,
169
+ "num_tokens": 919913.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.09516800194978714,
174
+ "epoch": 0.68,
175
+ "grad_norm": 0.0732421875,
176
+ "learning_rate": 0.00015983493810178817,
177
+ "loss": 0.08499320149421692,
178
+ "mean_token_accuracy": 0.9725266858935356,
179
+ "num_tokens": 977457.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.09590976405888796,
184
+ "epoch": 0.72,
185
+ "grad_norm": 0.087890625,
186
+ "learning_rate": 0.00015708390646492434,
187
+ "loss": 0.08410877585411072,
188
+ "mean_token_accuracy": 0.9719651013612747,
189
+ "num_tokens": 1035104.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.09172300919890404,
194
+ "epoch": 0.76,
195
+ "grad_norm": 0.0849609375,
196
+ "learning_rate": 0.00015433287482806052,
197
+ "loss": 0.08109934329986572,
198
+ "mean_token_accuracy": 0.9729468181729317,
199
+ "num_tokens": 1092899.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.08734710905700922,
204
+ "epoch": 0.8,
205
+ "grad_norm": 0.08544921875,
206
+ "learning_rate": 0.0001515818431911967,
207
+ "loss": 0.0811285674571991,
208
+ "mean_token_accuracy": 0.9728422954678535,
209
+ "num_tokens": 1150590.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.0886090887710452,
214
+ "epoch": 0.84,
215
+ "grad_norm": 0.10205078125,
216
+ "learning_rate": 0.00014883081155433287,
217
+ "loss": 0.08027150630950927,
218
+ "mean_token_accuracy": 0.9731186375021934,
219
+ "num_tokens": 1207679.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.08767491430044175,
224
+ "epoch": 0.88,
225
+ "grad_norm": 0.07568359375,
226
+ "learning_rate": 0.00014607977991746906,
227
+ "loss": 0.07811785340309144,
228
+ "mean_token_accuracy": 0.9727837935090065,
229
+ "num_tokens": 1264828.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.08578779641538858,
234
+ "epoch": 0.92,
235
+ "grad_norm": 0.06689453125,
236
+ "learning_rate": 0.00014332874828060522,
237
+ "loss": 0.07930437326431275,
238
+ "mean_token_accuracy": 0.9724608421325683,
239
+ "num_tokens": 1322095.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "entropy": 0.08777528926730156,
244
+ "epoch": 0.96,
245
+ "grad_norm": 0.10595703125,
246
+ "learning_rate": 0.0001405777166437414,
247
+ "loss": 0.07929157614707946,
248
+ "mean_token_accuracy": 0.9726779267191887,
249
+ "num_tokens": 1379486.0,
250
+ "step": 240
251
+ },
252
+ {
253
+ "entropy": 0.08271164875477552,
254
+ "epoch": 1.0,
255
+ "grad_norm": 0.07373046875,
256
+ "learning_rate": 0.00013782668500687757,
257
+ "loss": 0.07649819850921631,
258
+ "mean_token_accuracy": 0.9727906197309494,
259
+ "num_tokens": 1436768.0,
260
+ "step": 250
261
+ },
262
+ {
263
+ "entropy": 0.08452641274780034,
264
+ "epoch": 1.04,
265
+ "grad_norm": 0.060302734375,
266
+ "learning_rate": 0.00013507565337001376,
267
+ "loss": 0.075362628698349,
268
+ "mean_token_accuracy": 0.973334564268589,
269
+ "num_tokens": 1494604.0,
270
+ "step": 260
271
+ },
272
+ {
273
+ "entropy": 0.07995315287262202,
274
+ "epoch": 1.08,
275
+ "grad_norm": 0.09228515625,
276
+ "learning_rate": 0.00013232462173314995,
277
+ "loss": 0.07513575553894043,
278
+ "mean_token_accuracy": 0.9729594111442565,
279
+ "num_tokens": 1552288.0,
280
+ "step": 270
281
+ },
282
+ {
283
+ "entropy": 0.08168248403817416,
284
+ "epoch": 1.12,
285
+ "grad_norm": 0.060546875,
286
+ "learning_rate": 0.0001295735900962861,
287
+ "loss": 0.07515464425086975,
288
+ "mean_token_accuracy": 0.9740499630570412,
289
+ "num_tokens": 1609592.0,
290
+ "step": 280
291
+ },
292
+ {
293
+ "entropy": 0.07968566231429577,
294
+ "epoch": 1.16,
295
+ "grad_norm": 0.06396484375,
296
+ "learning_rate": 0.00012682255845942227,
297
+ "loss": 0.07451863884925843,
298
+ "mean_token_accuracy": 0.9738612473011017,
299
+ "num_tokens": 1666919.0,
300
+ "step": 290
301
+ },
302
+ {
303
+ "entropy": 0.07926137764006853,
304
+ "epoch": 1.2,
305
+ "grad_norm": 0.07177734375,
306
+ "learning_rate": 0.00012407152682255846,
307
+ "loss": 0.07165064811706542,
308
+ "mean_token_accuracy": 0.9744108065962791,
309
+ "num_tokens": 1724607.0,
310
+ "step": 300
311
+ },
312
+ {
313
+ "entropy": 0.07676754668354988,
314
+ "epoch": 1.24,
315
+ "grad_norm": 0.059814453125,
316
+ "learning_rate": 0.00012132049518569464,
317
+ "loss": 0.07170875668525696,
318
+ "mean_token_accuracy": 0.9744122520089149,
319
+ "num_tokens": 1782376.0,
320
+ "step": 310
321
+ },
322
+ {
323
+ "entropy": 0.0777475293725729,
324
+ "epoch": 1.28,
325
+ "grad_norm": 0.0703125,
326
+ "learning_rate": 0.00011856946354883083,
327
+ "loss": 0.07166936993598938,
328
+ "mean_token_accuracy": 0.9738065645098686,
329
+ "num_tokens": 1840250.0,
330
+ "step": 320
331
+ },
332
+ {
333
+ "entropy": 0.07751752454787493,
334
+ "epoch": 1.32,
335
+ "grad_norm": 0.06689453125,
336
+ "learning_rate": 0.000115818431911967,
337
+ "loss": 0.07201976776123047,
338
+ "mean_token_accuracy": 0.9738891527056694,
339
+ "num_tokens": 1897657.0,
340
+ "step": 330
341
+ },
342
+ {
343
+ "entropy": 0.07716369442641735,
344
+ "epoch": 1.3599999999999999,
345
+ "grad_norm": 0.062255859375,
346
+ "learning_rate": 0.00011306740027510316,
347
+ "loss": 0.07315419316291809,
348
+ "mean_token_accuracy": 0.9743821144104003,
349
+ "num_tokens": 1954865.0,
350
+ "step": 340
351
+ },
352
+ {
353
+ "entropy": 0.07727714162319899,
354
+ "epoch": 1.4,
355
+ "grad_norm": 0.061767578125,
356
+ "learning_rate": 0.00011031636863823935,
357
+ "loss": 0.07280178070068359,
358
+ "mean_token_accuracy": 0.9736106753349304,
359
+ "num_tokens": 2011641.0,
360
+ "step": 350
361
+ },
362
+ {
363
+ "entropy": 0.07723262291401625,
364
+ "epoch": 1.44,
365
+ "grad_norm": 0.0595703125,
366
+ "learning_rate": 0.00010756533700137553,
367
+ "loss": 0.07198458909988403,
368
+ "mean_token_accuracy": 0.9735355883836746,
369
+ "num_tokens": 2068914.0,
370
+ "step": 360
371
+ },
372
+ {
373
+ "entropy": 0.07536402139812708,
374
+ "epoch": 1.48,
375
+ "grad_norm": 0.048828125,
376
+ "learning_rate": 0.00010481430536451169,
377
+ "loss": 0.07065472602844239,
378
+ "mean_token_accuracy": 0.9739990144968033,
379
+ "num_tokens": 2126461.0,
380
+ "step": 370
381
+ },
382
+ {
383
+ "entropy": 0.07718470059335232,
384
+ "epoch": 1.52,
385
+ "grad_norm": 0.0625,
386
+ "learning_rate": 0.00010206327372764788,
387
+ "loss": 0.07190371155738831,
388
+ "mean_token_accuracy": 0.974010381102562,
389
+ "num_tokens": 2183815.0,
390
+ "step": 380
391
+ },
392
+ {
393
+ "entropy": 0.07610304690897465,
394
+ "epoch": 1.56,
395
+ "grad_norm": 0.107421875,
396
+ "learning_rate": 9.931224209078405e-05,
397
+ "loss": 0.07115678191184997,
398
+ "mean_token_accuracy": 0.974004440009594,
399
+ "num_tokens": 2241116.0,
400
+ "step": 390
401
+ },
402
+ {
403
+ "entropy": 0.0761492483317852,
404
+ "epoch": 1.6,
405
+ "grad_norm": 0.05908203125,
406
+ "learning_rate": 9.656121045392023e-05,
407
+ "loss": 0.07090004682540893,
408
+ "mean_token_accuracy": 0.9746617168188095,
409
+ "num_tokens": 2298416.0,
410
+ "step": 400
411
+ },
412
+ {
413
+ "entropy": 0.07459244169294835,
414
+ "epoch": 1.6400000000000001,
415
+ "grad_norm": 0.05859375,
416
+ "learning_rate": 9.38101788170564e-05,
417
+ "loss": 0.07028103470802308,
418
+ "mean_token_accuracy": 0.9740677893161773,
419
+ "num_tokens": 2355612.0,
420
+ "step": 410
421
+ },
422
+ {
423
+ "entropy": 0.07599957510828972,
424
+ "epoch": 1.6800000000000002,
425
+ "grad_norm": 0.058837890625,
426
+ "learning_rate": 9.105914718019258e-05,
427
+ "loss": 0.07085709571838379,
428
+ "mean_token_accuracy": 0.9736842766404152,
429
+ "num_tokens": 2413078.0,
430
+ "step": 420
431
+ },
432
+ {
433
+ "entropy": 0.07402529213577509,
434
+ "epoch": 1.72,
435
+ "grad_norm": 0.052734375,
436
+ "learning_rate": 8.830811554332875e-05,
437
+ "loss": 0.06817157864570618,
438
+ "mean_token_accuracy": 0.9756953686475753,
439
+ "num_tokens": 2470638.0,
440
+ "step": 430
441
+ },
442
+ {
443
+ "entropy": 0.07279494348913432,
444
+ "epoch": 1.76,
445
+ "grad_norm": 0.049072265625,
446
+ "learning_rate": 8.555708390646493e-05,
447
+ "loss": 0.07017137408256531,
448
+ "mean_token_accuracy": 0.9745888710021973,
449
+ "num_tokens": 2528388.0,
450
+ "step": 440
451
+ },
452
+ {
453
+ "entropy": 0.07482076063752174,
454
+ "epoch": 1.8,
455
+ "grad_norm": 0.056884765625,
456
+ "learning_rate": 8.28060522696011e-05,
457
+ "loss": 0.06885940432548524,
458
+ "mean_token_accuracy": 0.9742326587438583,
459
+ "num_tokens": 2586095.0,
460
+ "step": 450
461
+ },
462
+ {
463
+ "entropy": 0.07241946533322334,
464
+ "epoch": 1.8399999999999999,
465
+ "grad_norm": 0.05419921875,
466
+ "learning_rate": 8.005502063273728e-05,
467
+ "loss": 0.06869403719902038,
468
+ "mean_token_accuracy": 0.9742091730237007,
469
+ "num_tokens": 2643527.0,
470
+ "step": 460
471
+ },
472
+ {
473
+ "entropy": 0.07306001111865043,
474
+ "epoch": 1.88,
475
+ "grad_norm": 0.0498046875,
476
+ "learning_rate": 7.730398899587345e-05,
477
+ "loss": 0.06939564943313599,
478
+ "mean_token_accuracy": 0.9741511285305023,
479
+ "num_tokens": 2700607.0,
480
+ "step": 470
481
+ },
482
+ {
483
+ "entropy": 0.07273864857852459,
484
+ "epoch": 1.92,
485
+ "grad_norm": 0.0654296875,
486
+ "learning_rate": 7.455295735900963e-05,
487
+ "loss": 0.06864193081855774,
488
+ "mean_token_accuracy": 0.9751648008823395,
489
+ "num_tokens": 2758121.0,
490
+ "step": 480
491
+ },
492
+ {
493
+ "entropy": 0.07273433599621057,
494
+ "epoch": 1.96,
495
+ "grad_norm": 0.05029296875,
496
+ "learning_rate": 7.180192572214582e-05,
497
+ "loss": 0.06863164901733398,
498
+ "mean_token_accuracy": 0.9750947266817093,
499
+ "num_tokens": 2815692.0,
500
+ "step": 490
501
+ },
502
+ {
503
+ "entropy": 0.07309104464948177,
504
+ "epoch": 2.0,
505
+ "grad_norm": 0.052490234375,
506
+ "learning_rate": 6.905089408528198e-05,
507
+ "loss": 0.06744971275329589,
508
+ "mean_token_accuracy": 0.9749982491135597,
509
+ "num_tokens": 2873536.0,
510
+ "step": 500
511
+ }
512
+ ],
513
+ "logging_steps": 10,
514
+ "max_steps": 750,
515
+ "num_input_tokens_seen": 0,
516
+ "num_train_epochs": 3,
517
+ "save_steps": 500,
518
+ "stateful_callbacks": {
519
+ "TrainerControl": {
520
+ "args": {
521
+ "should_epoch_stop": false,
522
+ "should_evaluate": false,
523
+ "should_log": false,
524
+ "should_save": true,
525
+ "should_training_stop": false
526
+ },
527
+ "attributes": {}
528
+ }
529
+ },
530
+ "total_flos": 1.3412448571342848e+17,
531
+ "train_batch_size": 2,
532
+ "trial_name": null,
533
+ "trial_params": null
534
+ }
philosophy/checkpoint-500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:966db706115468880de294a3bba76328adcbc3512b52119bb15c400d7708b492
3
+ size 5649
philosophy/checkpoint-750/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.1-8B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:meta-llama/Llama-3.1-8B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.18.1
philosophy/checkpoint-750/adapter_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "meta-llama/Llama-3.1-8B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 16,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "v_proj",
33
+ "o_proj",
34
+ "k_proj",
35
+ "q_proj"
36
+ ],
37
+ "target_parameters": null,
38
+ "task_type": "CAUSAL_LM",
39
+ "trainable_token_indices": null,
40
+ "use_dora": false,
41
+ "use_qalora": false,
42
+ "use_rslora": false
43
+ }
philosophy/checkpoint-750/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f1e0fd3925a2d53626c02c09e001d0efdf0e1b122d4b4a93b2fdcbf1132be02
3
+ size 27297544
philosophy/checkpoint-750/chat_template.jinja ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- set date_string = "26 Jul 2024" %}
10
+ {%- endif %}
11
+ {%- if not tools is defined %}
12
+ {%- set tools = none %}
13
+ {%- endif %}
14
+
15
+ {#- This block extracts the system message, so we can slot it into the right place. #}
16
+ {%- if messages[0]['role'] == 'system' %}
17
+ {%- set system_message = messages[0]['content']|trim %}
18
+ {%- set messages = messages[1:] %}
19
+ {%- else %}
20
+ {%- set system_message = "" %}
21
+ {%- endif %}
22
+
23
+ {#- System message + builtin tools #}
24
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
25
+ {%- if builtin_tools is defined or tools is not none %}
26
+ {{- "Environment: ipython\n" }}
27
+ {%- endif %}
28
+ {%- if builtin_tools is defined %}
29
+ {{- "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
30
+ {%- endif %}
31
+ {{- "Cutting Knowledge Date: December 2023\n" }}
32
+ {{- "Today Date: " + date_string + "\n\n" }}
33
+ {%- if tools is not none and not tools_in_user_message %}
34
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
35
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
36
+ {{- "Do not use variables.\n\n" }}
37
+ {%- for t in tools %}
38
+ {{- t | tojson(indent=4) }}
39
+ {{- "\n\n" }}
40
+ {%- endfor %}
41
+ {%- endif %}
42
+ {{- system_message }}
43
+ {{- "<|eot_id|>" }}
44
+
45
+ {#- Custom tools are passed in a user message with some extra guidance #}
46
+ {%- if tools_in_user_message and not tools is none %}
47
+ {#- Extract the first user message so we can plug it in here #}
48
+ {%- if messages | length != 0 %}
49
+ {%- set first_user_message = messages[0]['content']|trim %}
50
+ {%- set messages = messages[1:] %}
51
+ {%- else %}
52
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
53
+ {%- endif %}
54
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
55
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
56
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
57
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
58
+ {{- "Do not use variables.\n\n" }}
59
+ {%- for t in tools %}
60
+ {{- t | tojson(indent=4) }}
61
+ {{- "\n\n" }}
62
+ {%- endfor %}
63
+ {{- first_user_message + "<|eot_id|>"}}
64
+ {%- endif %}
65
+
66
+ {%- for message in messages %}
67
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
68
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
69
+ {%- elif 'tool_calls' in message %}
70
+ {%- if not message.tool_calls|length == 1 %}
71
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
72
+ {%- endif %}
73
+ {%- set tool_call = message.tool_calls[0].function %}
74
+ {%- if builtin_tools is defined and tool_call.name in builtin_tools %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- "<|python_tag|>" + tool_call.name + ".call(" }}
77
+ {%- for arg_name, arg_val in tool_call.arguments | items %}
78
+ {{- arg_name + '="' + arg_val + '"' }}
79
+ {%- if not loop.last %}
80
+ {{- ", " }}
81
+ {%- endif %}
82
+ {%- endfor %}
83
+ {{- ")" }}
84
+ {%- else %}
85
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
86
+ {{- '{"name": "' + tool_call.name + '", ' }}
87
+ {{- '"parameters": ' }}
88
+ {{- tool_call.arguments | tojson }}
89
+ {{- "}" }}
90
+ {%- endif %}
91
+ {%- if builtin_tools is defined %}
92
+ {#- This means we're in ipython mode #}
93
+ {{- "<|eom_id|>" }}
94
+ {%- else %}
95
+ {{- "<|eot_id|>" }}
96
+ {%- endif %}
97
+ {%- elif message.role == "tool" or message.role == "ipython" %}
98
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
99
+ {%- if message.content is mapping or message.content is iterable %}
100
+ {{- message.content | tojson }}
101
+ {%- else %}
102
+ {{- message.content }}
103
+ {%- endif %}
104
+ {{- "<|eot_id|>" }}
105
+ {%- endif %}
106
+ {%- endfor %}
107
+ {%- if add_generation_prompt %}
108
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
109
+ {%- endif %}
philosophy/checkpoint-750/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c285c0dfeffa04aeeacc5f13bd8a7973065abc8fee80a5f445c03074d7d3989
3
+ size 54745547
philosophy/checkpoint-750/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7094536ef1bf416d4e34d5b080b50723ff56f70cc1eb17050ef37172f287793
3
+ size 14645
philosophy/checkpoint-750/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da6cffd29d107485fd65a3291d66df7b87424f25de973bb529c2fbe605d9c752
3
+ size 1465
philosophy/checkpoint-750/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
philosophy/checkpoint-750/tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "model_input_names": [
8
+ "input_ids",
9
+ "attention_mask"
10
+ ],
11
+ "model_max_length": 131072,
12
+ "pad_token": "<|eot_id|>",
13
+ "tokenizer_class": "TokenizersBackend"
14
+ }
philosophy/checkpoint-750/trainer_state.json ADDED
@@ -0,0 +1,784 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 3.0,
6
+ "eval_steps": 500,
7
+ "global_step": 750,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 2.5829271137714387,
14
+ "epoch": 0.04,
15
+ "grad_norm": 0.22265625,
16
+ "learning_rate": 7.82608695652174e-05,
17
+ "loss": 2.753033256530762,
18
+ "mean_token_accuracy": 0.47655483335256577,
19
+ "num_tokens": 57516.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 2.1414968103170393,
24
+ "epoch": 0.08,
25
+ "grad_norm": 0.3125,
26
+ "learning_rate": 0.00016521739130434784,
27
+ "loss": 2.252544975280762,
28
+ "mean_token_accuracy": 0.5344504326581955,
29
+ "num_tokens": 114625.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.5927900850772858,
34
+ "epoch": 0.12,
35
+ "grad_norm": 0.294921875,
36
+ "learning_rate": 0.00019834938101788172,
37
+ "loss": 1.5284319877624513,
38
+ "mean_token_accuracy": 0.6448445409536362,
39
+ "num_tokens": 172633.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.066284140944481,
44
+ "epoch": 0.16,
45
+ "grad_norm": 0.29296875,
46
+ "learning_rate": 0.00019559834938101788,
47
+ "loss": 1.0070317268371582,
48
+ "mean_token_accuracy": 0.7579783260822296,
49
+ "num_tokens": 230008.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.7492925658822059,
54
+ "epoch": 0.2,
55
+ "grad_norm": 0.349609375,
56
+ "learning_rate": 0.00019284731774415407,
57
+ "loss": 0.6781857490539551,
58
+ "mean_token_accuracy": 0.8379659116268158,
59
+ "num_tokens": 287745.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.4886126838624477,
64
+ "epoch": 0.24,
65
+ "grad_norm": 0.283203125,
66
+ "learning_rate": 0.00019009628610729023,
67
+ "loss": 0.4119734287261963,
68
+ "mean_token_accuracy": 0.90355384349823,
69
+ "num_tokens": 344648.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.3210501965135336,
74
+ "epoch": 0.28,
75
+ "grad_norm": 0.2890625,
76
+ "learning_rate": 0.00018734525447042642,
77
+ "loss": 0.26181983947753906,
78
+ "mean_token_accuracy": 0.9407488569617272,
79
+ "num_tokens": 401769.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.2309522196650505,
84
+ "epoch": 0.32,
85
+ "grad_norm": 0.263671875,
86
+ "learning_rate": 0.0001845942228335626,
87
+ "loss": 0.18270236253738403,
88
+ "mean_token_accuracy": 0.9581082716584206,
89
+ "num_tokens": 459550.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.1708126749843359,
94
+ "epoch": 0.36,
95
+ "grad_norm": 0.171875,
96
+ "learning_rate": 0.00018184319119669877,
97
+ "loss": 0.14424270391464233,
98
+ "mean_token_accuracy": 0.9642902180552483,
99
+ "num_tokens": 517398.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.15145639330148697,
104
+ "epoch": 0.4,
105
+ "grad_norm": 0.2001953125,
106
+ "learning_rate": 0.00017909215955983493,
107
+ "loss": 0.13087010383605957,
108
+ "mean_token_accuracy": 0.9660168617963791,
109
+ "num_tokens": 574967.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.13481491524726152,
114
+ "epoch": 0.44,
115
+ "grad_norm": 0.26953125,
116
+ "learning_rate": 0.00017634112792297112,
117
+ "loss": 0.11579867601394653,
118
+ "mean_token_accuracy": 0.9678210973739624,
119
+ "num_tokens": 632520.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.1284633142873645,
124
+ "epoch": 0.48,
125
+ "grad_norm": 0.103515625,
126
+ "learning_rate": 0.00017359009628610728,
127
+ "loss": 0.10407105684280396,
128
+ "mean_token_accuracy": 0.9692364946007729,
129
+ "num_tokens": 690238.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.1187555018812418,
134
+ "epoch": 0.52,
135
+ "grad_norm": 0.126953125,
136
+ "learning_rate": 0.00017083906464924347,
137
+ "loss": 0.09683982133865357,
138
+ "mean_token_accuracy": 0.9708453178405761,
139
+ "num_tokens": 747673.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.10958560761064291,
144
+ "epoch": 0.56,
145
+ "grad_norm": 0.10693359375,
146
+ "learning_rate": 0.00016808803301237966,
147
+ "loss": 0.0926922857761383,
148
+ "mean_token_accuracy": 0.9707283571362495,
149
+ "num_tokens": 805740.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.10269597116857768,
154
+ "epoch": 0.6,
155
+ "grad_norm": 0.0888671875,
156
+ "learning_rate": 0.00016533700137551582,
157
+ "loss": 0.08726000189781188,
158
+ "mean_token_accuracy": 0.971497131884098,
159
+ "num_tokens": 862869.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.10038086380809545,
164
+ "epoch": 0.64,
165
+ "grad_norm": 0.10595703125,
166
+ "learning_rate": 0.000162585969738652,
167
+ "loss": 0.0867941677570343,
168
+ "mean_token_accuracy": 0.9717385217547416,
169
+ "num_tokens": 919913.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.09516800194978714,
174
+ "epoch": 0.68,
175
+ "grad_norm": 0.0732421875,
176
+ "learning_rate": 0.00015983493810178817,
177
+ "loss": 0.08499320149421692,
178
+ "mean_token_accuracy": 0.9725266858935356,
179
+ "num_tokens": 977457.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.09590976405888796,
184
+ "epoch": 0.72,
185
+ "grad_norm": 0.087890625,
186
+ "learning_rate": 0.00015708390646492434,
187
+ "loss": 0.08410877585411072,
188
+ "mean_token_accuracy": 0.9719651013612747,
189
+ "num_tokens": 1035104.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.09172300919890404,
194
+ "epoch": 0.76,
195
+ "grad_norm": 0.0849609375,
196
+ "learning_rate": 0.00015433287482806052,
197
+ "loss": 0.08109934329986572,
198
+ "mean_token_accuracy": 0.9729468181729317,
199
+ "num_tokens": 1092899.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.08734710905700922,
204
+ "epoch": 0.8,
205
+ "grad_norm": 0.08544921875,
206
+ "learning_rate": 0.0001515818431911967,
207
+ "loss": 0.0811285674571991,
208
+ "mean_token_accuracy": 0.9728422954678535,
209
+ "num_tokens": 1150590.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.0886090887710452,
214
+ "epoch": 0.84,
215
+ "grad_norm": 0.10205078125,
216
+ "learning_rate": 0.00014883081155433287,
217
+ "loss": 0.08027150630950927,
218
+ "mean_token_accuracy": 0.9731186375021934,
219
+ "num_tokens": 1207679.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.08767491430044175,
224
+ "epoch": 0.88,
225
+ "grad_norm": 0.07568359375,
226
+ "learning_rate": 0.00014607977991746906,
227
+ "loss": 0.07811785340309144,
228
+ "mean_token_accuracy": 0.9727837935090065,
229
+ "num_tokens": 1264828.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.08578779641538858,
234
+ "epoch": 0.92,
235
+ "grad_norm": 0.06689453125,
236
+ "learning_rate": 0.00014332874828060522,
237
+ "loss": 0.07930437326431275,
238
+ "mean_token_accuracy": 0.9724608421325683,
239
+ "num_tokens": 1322095.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "entropy": 0.08777528926730156,
244
+ "epoch": 0.96,
245
+ "grad_norm": 0.10595703125,
246
+ "learning_rate": 0.0001405777166437414,
247
+ "loss": 0.07929157614707946,
248
+ "mean_token_accuracy": 0.9726779267191887,
249
+ "num_tokens": 1379486.0,
250
+ "step": 240
251
+ },
252
+ {
253
+ "entropy": 0.08271164875477552,
254
+ "epoch": 1.0,
255
+ "grad_norm": 0.07373046875,
256
+ "learning_rate": 0.00013782668500687757,
257
+ "loss": 0.07649819850921631,
258
+ "mean_token_accuracy": 0.9727906197309494,
259
+ "num_tokens": 1436768.0,
260
+ "step": 250
261
+ },
262
+ {
263
+ "entropy": 0.08452641274780034,
264
+ "epoch": 1.04,
265
+ "grad_norm": 0.060302734375,
266
+ "learning_rate": 0.00013507565337001376,
267
+ "loss": 0.075362628698349,
268
+ "mean_token_accuracy": 0.973334564268589,
269
+ "num_tokens": 1494604.0,
270
+ "step": 260
271
+ },
272
+ {
273
+ "entropy": 0.07995315287262202,
274
+ "epoch": 1.08,
275
+ "grad_norm": 0.09228515625,
276
+ "learning_rate": 0.00013232462173314995,
277
+ "loss": 0.07513575553894043,
278
+ "mean_token_accuracy": 0.9729594111442565,
279
+ "num_tokens": 1552288.0,
280
+ "step": 270
281
+ },
282
+ {
283
+ "entropy": 0.08168248403817416,
284
+ "epoch": 1.12,
285
+ "grad_norm": 0.060546875,
286
+ "learning_rate": 0.0001295735900962861,
287
+ "loss": 0.07515464425086975,
288
+ "mean_token_accuracy": 0.9740499630570412,
289
+ "num_tokens": 1609592.0,
290
+ "step": 280
291
+ },
292
+ {
293
+ "entropy": 0.07968566231429577,
294
+ "epoch": 1.16,
295
+ "grad_norm": 0.06396484375,
296
+ "learning_rate": 0.00012682255845942227,
297
+ "loss": 0.07451863884925843,
298
+ "mean_token_accuracy": 0.9738612473011017,
299
+ "num_tokens": 1666919.0,
300
+ "step": 290
301
+ },
302
+ {
303
+ "entropy": 0.07926137764006853,
304
+ "epoch": 1.2,
305
+ "grad_norm": 0.07177734375,
306
+ "learning_rate": 0.00012407152682255846,
307
+ "loss": 0.07165064811706542,
308
+ "mean_token_accuracy": 0.9744108065962791,
309
+ "num_tokens": 1724607.0,
310
+ "step": 300
311
+ },
312
+ {
313
+ "entropy": 0.07676754668354988,
314
+ "epoch": 1.24,
315
+ "grad_norm": 0.059814453125,
316
+ "learning_rate": 0.00012132049518569464,
317
+ "loss": 0.07170875668525696,
318
+ "mean_token_accuracy": 0.9744122520089149,
319
+ "num_tokens": 1782376.0,
320
+ "step": 310
321
+ },
322
+ {
323
+ "entropy": 0.0777475293725729,
324
+ "epoch": 1.28,
325
+ "grad_norm": 0.0703125,
326
+ "learning_rate": 0.00011856946354883083,
327
+ "loss": 0.07166936993598938,
328
+ "mean_token_accuracy": 0.9738065645098686,
329
+ "num_tokens": 1840250.0,
330
+ "step": 320
331
+ },
332
+ {
333
+ "entropy": 0.07751752454787493,
334
+ "epoch": 1.32,
335
+ "grad_norm": 0.06689453125,
336
+ "learning_rate": 0.000115818431911967,
337
+ "loss": 0.07201976776123047,
338
+ "mean_token_accuracy": 0.9738891527056694,
339
+ "num_tokens": 1897657.0,
340
+ "step": 330
341
+ },
342
+ {
343
+ "entropy": 0.07716369442641735,
344
+ "epoch": 1.3599999999999999,
345
+ "grad_norm": 0.062255859375,
346
+ "learning_rate": 0.00011306740027510316,
347
+ "loss": 0.07315419316291809,
348
+ "mean_token_accuracy": 0.9743821144104003,
349
+ "num_tokens": 1954865.0,
350
+ "step": 340
351
+ },
352
+ {
353
+ "entropy": 0.07727714162319899,
354
+ "epoch": 1.4,
355
+ "grad_norm": 0.061767578125,
356
+ "learning_rate": 0.00011031636863823935,
357
+ "loss": 0.07280178070068359,
358
+ "mean_token_accuracy": 0.9736106753349304,
359
+ "num_tokens": 2011641.0,
360
+ "step": 350
361
+ },
362
+ {
363
+ "entropy": 0.07723262291401625,
364
+ "epoch": 1.44,
365
+ "grad_norm": 0.0595703125,
366
+ "learning_rate": 0.00010756533700137553,
367
+ "loss": 0.07198458909988403,
368
+ "mean_token_accuracy": 0.9735355883836746,
369
+ "num_tokens": 2068914.0,
370
+ "step": 360
371
+ },
372
+ {
373
+ "entropy": 0.07536402139812708,
374
+ "epoch": 1.48,
375
+ "grad_norm": 0.048828125,
376
+ "learning_rate": 0.00010481430536451169,
377
+ "loss": 0.07065472602844239,
378
+ "mean_token_accuracy": 0.9739990144968033,
379
+ "num_tokens": 2126461.0,
380
+ "step": 370
381
+ },
382
+ {
383
+ "entropy": 0.07718470059335232,
384
+ "epoch": 1.52,
385
+ "grad_norm": 0.0625,
386
+ "learning_rate": 0.00010206327372764788,
387
+ "loss": 0.07190371155738831,
388
+ "mean_token_accuracy": 0.974010381102562,
389
+ "num_tokens": 2183815.0,
390
+ "step": 380
391
+ },
392
+ {
393
+ "entropy": 0.07610304690897465,
394
+ "epoch": 1.56,
395
+ "grad_norm": 0.107421875,
396
+ "learning_rate": 9.931224209078405e-05,
397
+ "loss": 0.07115678191184997,
398
+ "mean_token_accuracy": 0.974004440009594,
399
+ "num_tokens": 2241116.0,
400
+ "step": 390
401
+ },
402
+ {
403
+ "entropy": 0.0761492483317852,
404
+ "epoch": 1.6,
405
+ "grad_norm": 0.05908203125,
406
+ "learning_rate": 9.656121045392023e-05,
407
+ "loss": 0.07090004682540893,
408
+ "mean_token_accuracy": 0.9746617168188095,
409
+ "num_tokens": 2298416.0,
410
+ "step": 400
411
+ },
412
+ {
413
+ "entropy": 0.07459244169294835,
414
+ "epoch": 1.6400000000000001,
415
+ "grad_norm": 0.05859375,
416
+ "learning_rate": 9.38101788170564e-05,
417
+ "loss": 0.07028103470802308,
418
+ "mean_token_accuracy": 0.9740677893161773,
419
+ "num_tokens": 2355612.0,
420
+ "step": 410
421
+ },
422
+ {
423
+ "entropy": 0.07599957510828972,
424
+ "epoch": 1.6800000000000002,
425
+ "grad_norm": 0.058837890625,
426
+ "learning_rate": 9.105914718019258e-05,
427
+ "loss": 0.07085709571838379,
428
+ "mean_token_accuracy": 0.9736842766404152,
429
+ "num_tokens": 2413078.0,
430
+ "step": 420
431
+ },
432
+ {
433
+ "entropy": 0.07402529213577509,
434
+ "epoch": 1.72,
435
+ "grad_norm": 0.052734375,
436
+ "learning_rate": 8.830811554332875e-05,
437
+ "loss": 0.06817157864570618,
438
+ "mean_token_accuracy": 0.9756953686475753,
439
+ "num_tokens": 2470638.0,
440
+ "step": 430
441
+ },
442
+ {
443
+ "entropy": 0.07279494348913432,
444
+ "epoch": 1.76,
445
+ "grad_norm": 0.049072265625,
446
+ "learning_rate": 8.555708390646493e-05,
447
+ "loss": 0.07017137408256531,
448
+ "mean_token_accuracy": 0.9745888710021973,
449
+ "num_tokens": 2528388.0,
450
+ "step": 440
451
+ },
452
+ {
453
+ "entropy": 0.07482076063752174,
454
+ "epoch": 1.8,
455
+ "grad_norm": 0.056884765625,
456
+ "learning_rate": 8.28060522696011e-05,
457
+ "loss": 0.06885940432548524,
458
+ "mean_token_accuracy": 0.9742326587438583,
459
+ "num_tokens": 2586095.0,
460
+ "step": 450
461
+ },
462
+ {
463
+ "entropy": 0.07241946533322334,
464
+ "epoch": 1.8399999999999999,
465
+ "grad_norm": 0.05419921875,
466
+ "learning_rate": 8.005502063273728e-05,
467
+ "loss": 0.06869403719902038,
468
+ "mean_token_accuracy": 0.9742091730237007,
469
+ "num_tokens": 2643527.0,
470
+ "step": 460
471
+ },
472
+ {
473
+ "entropy": 0.07306001111865043,
474
+ "epoch": 1.88,
475
+ "grad_norm": 0.0498046875,
476
+ "learning_rate": 7.730398899587345e-05,
477
+ "loss": 0.06939564943313599,
478
+ "mean_token_accuracy": 0.9741511285305023,
479
+ "num_tokens": 2700607.0,
480
+ "step": 470
481
+ },
482
+ {
483
+ "entropy": 0.07273864857852459,
484
+ "epoch": 1.92,
485
+ "grad_norm": 0.0654296875,
486
+ "learning_rate": 7.455295735900963e-05,
487
+ "loss": 0.06864193081855774,
488
+ "mean_token_accuracy": 0.9751648008823395,
489
+ "num_tokens": 2758121.0,
490
+ "step": 480
491
+ },
492
+ {
493
+ "entropy": 0.07273433599621057,
494
+ "epoch": 1.96,
495
+ "grad_norm": 0.05029296875,
496
+ "learning_rate": 7.180192572214582e-05,
497
+ "loss": 0.06863164901733398,
498
+ "mean_token_accuracy": 0.9750947266817093,
499
+ "num_tokens": 2815692.0,
500
+ "step": 490
501
+ },
502
+ {
503
+ "entropy": 0.07309104464948177,
504
+ "epoch": 2.0,
505
+ "grad_norm": 0.052490234375,
506
+ "learning_rate": 6.905089408528198e-05,
507
+ "loss": 0.06744971275329589,
508
+ "mean_token_accuracy": 0.9749982491135597,
509
+ "num_tokens": 2873536.0,
510
+ "step": 500
511
+ },
512
+ {
513
+ "entropy": 0.07005713898688555,
514
+ "epoch": 2.04,
515
+ "grad_norm": 0.07177734375,
516
+ "learning_rate": 6.629986244841817e-05,
517
+ "loss": 0.0664297103881836,
518
+ "mean_token_accuracy": 0.9758580774068832,
519
+ "num_tokens": 2931081.0,
520
+ "step": 510
521
+ },
522
+ {
523
+ "entropy": 0.07117351144552231,
524
+ "epoch": 2.08,
525
+ "grad_norm": 0.051513671875,
526
+ "learning_rate": 6.354883081155434e-05,
527
+ "loss": 0.06720638871192933,
528
+ "mean_token_accuracy": 0.9749825567007064,
529
+ "num_tokens": 2988165.0,
530
+ "step": 520
531
+ },
532
+ {
533
+ "entropy": 0.07078002598136664,
534
+ "epoch": 2.12,
535
+ "grad_norm": 0.053955078125,
536
+ "learning_rate": 6.0797799174690516e-05,
537
+ "loss": 0.06662909388542175,
538
+ "mean_token_accuracy": 0.9753125533461571,
539
+ "num_tokens": 3045788.0,
540
+ "step": 530
541
+ },
542
+ {
543
+ "entropy": 0.07114769387990236,
544
+ "epoch": 2.16,
545
+ "grad_norm": 0.05078125,
546
+ "learning_rate": 5.8046767537826685e-05,
547
+ "loss": 0.06726236343383789,
548
+ "mean_token_accuracy": 0.974480901658535,
549
+ "num_tokens": 3103244.0,
550
+ "step": 540
551
+ },
552
+ {
553
+ "entropy": 0.07193142790347337,
554
+ "epoch": 2.2,
555
+ "grad_norm": 0.057861328125,
556
+ "learning_rate": 5.5295735900962866e-05,
557
+ "loss": 0.06642212867736816,
558
+ "mean_token_accuracy": 0.9750503808259964,
559
+ "num_tokens": 3160804.0,
560
+ "step": 550
561
+ },
562
+ {
563
+ "entropy": 0.0696537846699357,
564
+ "epoch": 2.24,
565
+ "grad_norm": 0.05859375,
566
+ "learning_rate": 5.254470426409904e-05,
567
+ "loss": 0.0664053738117218,
568
+ "mean_token_accuracy": 0.9750260651111603,
569
+ "num_tokens": 3218036.0,
570
+ "step": 560
571
+ },
572
+ {
573
+ "entropy": 0.07080298308283091,
574
+ "epoch": 2.2800000000000002,
575
+ "grad_norm": 0.0673828125,
576
+ "learning_rate": 4.9793672627235217e-05,
577
+ "loss": 0.06780921220779419,
578
+ "mean_token_accuracy": 0.9746970146894455,
579
+ "num_tokens": 3275142.0,
580
+ "step": 570
581
+ },
582
+ {
583
+ "entropy": 0.07197257969528437,
584
+ "epoch": 2.32,
585
+ "grad_norm": 0.064453125,
586
+ "learning_rate": 4.704264099037139e-05,
587
+ "loss": 0.06632418632507324,
588
+ "mean_token_accuracy": 0.9752817168831825,
589
+ "num_tokens": 3332676.0,
590
+ "step": 580
591
+ },
592
+ {
593
+ "entropy": 0.07043723063543439,
594
+ "epoch": 2.36,
595
+ "grad_norm": 0.0537109375,
596
+ "learning_rate": 4.429160935350757e-05,
597
+ "loss": 0.06600587368011475,
598
+ "mean_token_accuracy": 0.9756101369857788,
599
+ "num_tokens": 3390282.0,
600
+ "step": 590
601
+ },
602
+ {
603
+ "entropy": 0.06955849714577197,
604
+ "epoch": 2.4,
605
+ "grad_norm": 0.0576171875,
606
+ "learning_rate": 4.154057771664374e-05,
607
+ "loss": 0.06713968515396118,
608
+ "mean_token_accuracy": 0.9751920208334923,
609
+ "num_tokens": 3447352.0,
610
+ "step": 600
611
+ },
612
+ {
613
+ "entropy": 0.07013530451804399,
614
+ "epoch": 2.44,
615
+ "grad_norm": 0.045166015625,
616
+ "learning_rate": 3.8789546079779924e-05,
617
+ "loss": 0.06535006761550903,
618
+ "mean_token_accuracy": 0.975625790655613,
619
+ "num_tokens": 3505084.0,
620
+ "step": 610
621
+ },
622
+ {
623
+ "entropy": 0.0703332794830203,
624
+ "epoch": 2.48,
625
+ "grad_norm": 0.048583984375,
626
+ "learning_rate": 3.603851444291609e-05,
627
+ "loss": 0.06684613227844238,
628
+ "mean_token_accuracy": 0.9751572161912918,
629
+ "num_tokens": 3562400.0,
630
+ "step": 620
631
+ },
632
+ {
633
+ "entropy": 0.07129187546670437,
634
+ "epoch": 2.52,
635
+ "grad_norm": 0.04833984375,
636
+ "learning_rate": 3.3287482806052274e-05,
637
+ "loss": 0.06628850102424622,
638
+ "mean_token_accuracy": 0.9751582950353622,
639
+ "num_tokens": 3619701.0,
640
+ "step": 630
641
+ },
642
+ {
643
+ "entropy": 0.0703458341769874,
644
+ "epoch": 2.56,
645
+ "grad_norm": 0.05859375,
646
+ "learning_rate": 3.053645116918845e-05,
647
+ "loss": 0.06557472944259643,
648
+ "mean_token_accuracy": 0.9754368677735329,
649
+ "num_tokens": 3677332.0,
650
+ "step": 640
651
+ },
652
+ {
653
+ "entropy": 0.06834300374612212,
654
+ "epoch": 2.6,
655
+ "grad_norm": 0.0498046875,
656
+ "learning_rate": 2.7785419532324624e-05,
657
+ "loss": 0.06495047211647034,
658
+ "mean_token_accuracy": 0.9757986709475517,
659
+ "num_tokens": 3735413.0,
660
+ "step": 650
661
+ },
662
+ {
663
+ "entropy": 0.06927563464269042,
664
+ "epoch": 2.64,
665
+ "grad_norm": 0.051025390625,
666
+ "learning_rate": 2.50343878954608e-05,
667
+ "loss": 0.06574679017066956,
668
+ "mean_token_accuracy": 0.9754002228379249,
669
+ "num_tokens": 3793084.0,
670
+ "step": 660
671
+ },
672
+ {
673
+ "entropy": 0.06997807957231998,
674
+ "epoch": 2.68,
675
+ "grad_norm": 0.05078125,
676
+ "learning_rate": 2.2283356258596974e-05,
677
+ "loss": 0.0656543493270874,
678
+ "mean_token_accuracy": 0.975814339518547,
679
+ "num_tokens": 3850893.0,
680
+ "step": 670
681
+ },
682
+ {
683
+ "entropy": 0.06897540120407938,
684
+ "epoch": 2.7199999999999998,
685
+ "grad_norm": 0.05078125,
686
+ "learning_rate": 1.953232462173315e-05,
687
+ "loss": 0.0652164340019226,
688
+ "mean_token_accuracy": 0.9750890001654625,
689
+ "num_tokens": 3908391.0,
690
+ "step": 680
691
+ },
692
+ {
693
+ "entropy": 0.07018874371424318,
694
+ "epoch": 2.76,
695
+ "grad_norm": 0.053466796875,
696
+ "learning_rate": 1.6781292984869327e-05,
697
+ "loss": 0.0658077359199524,
698
+ "mean_token_accuracy": 0.9751785367727279,
699
+ "num_tokens": 3965504.0,
700
+ "step": 690
701
+ },
702
+ {
703
+ "entropy": 0.07064353236928582,
704
+ "epoch": 2.8,
705
+ "grad_norm": 0.053955078125,
706
+ "learning_rate": 1.4030261348005502e-05,
707
+ "loss": 0.06580735445022583,
708
+ "mean_token_accuracy": 0.9749395668506622,
709
+ "num_tokens": 4022395.0,
710
+ "step": 700
711
+ },
712
+ {
713
+ "entropy": 0.07036935873329639,
714
+ "epoch": 2.84,
715
+ "grad_norm": 0.05078125,
716
+ "learning_rate": 1.127922971114168e-05,
717
+ "loss": 0.06488464474678039,
718
+ "mean_token_accuracy": 0.9754620343446732,
719
+ "num_tokens": 4079733.0,
720
+ "step": 710
721
+ },
722
+ {
723
+ "entropy": 0.0693251259624958,
724
+ "epoch": 2.88,
725
+ "grad_norm": 0.05859375,
726
+ "learning_rate": 8.528198074277854e-06,
727
+ "loss": 0.06533153653144837,
728
+ "mean_token_accuracy": 0.9754898160696029,
729
+ "num_tokens": 4136822.0,
730
+ "step": 720
731
+ },
732
+ {
733
+ "entropy": 0.06880372874438763,
734
+ "epoch": 2.92,
735
+ "grad_norm": 0.050537109375,
736
+ "learning_rate": 5.77716643741403e-06,
737
+ "loss": 0.06533759236335754,
738
+ "mean_token_accuracy": 0.975403068959713,
739
+ "num_tokens": 4194759.0,
740
+ "step": 730
741
+ },
742
+ {
743
+ "entropy": 0.06947986148297787,
744
+ "epoch": 2.96,
745
+ "grad_norm": 0.056884765625,
746
+ "learning_rate": 3.0261348005502065e-06,
747
+ "loss": 0.06496819257736205,
748
+ "mean_token_accuracy": 0.9755567371845245,
749
+ "num_tokens": 4252889.0,
750
+ "step": 740
751
+ },
752
+ {
753
+ "entropy": 0.06928799282759428,
754
+ "epoch": 3.0,
755
+ "grad_norm": 0.051513671875,
756
+ "learning_rate": 2.751031636863824e-07,
757
+ "loss": 0.06516113877296448,
758
+ "mean_token_accuracy": 0.9751882746815681,
759
+ "num_tokens": 4310304.0,
760
+ "step": 750
761
+ }
762
+ ],
763
+ "logging_steps": 10,
764
+ "max_steps": 750,
765
+ "num_input_tokens_seen": 0,
766
+ "num_train_epochs": 3,
767
+ "save_steps": 500,
768
+ "stateful_callbacks": {
769
+ "TrainerControl": {
770
+ "args": {
771
+ "should_epoch_stop": false,
772
+ "should_evaluate": false,
773
+ "should_log": false,
774
+ "should_save": true,
775
+ "should_training_stop": true
776
+ },
777
+ "attributes": {}
778
+ }
779
+ },
780
+ "total_flos": 2.011352114233344e+17,
781
+ "train_batch_size": 2,
782
+ "trial_name": null,
783
+ "trial_params": null
784
+ }
philosophy/checkpoint-750/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:966db706115468880de294a3bba76328adcbc3512b52119bb15c400d7708b492
3
+ size 5649
philosophy/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
philosophy/tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "model_input_names": [
8
+ "input_ids",
9
+ "attention_mask"
10
+ ],
11
+ "model_max_length": 131072,
12
+ "pad_token": "<|eot_id|>",
13
+ "tokenizer_class": "TokenizersBackend"
14
+ }