Raiff1982 commited on
Commit
8e8a69f
·
verified ·
1 Parent(s): bb1e8ce

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -37,3 +37,6 @@ newton/checkpoint-1000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  newton/checkpoint-1125/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
  newton/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
39
  newton/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
37
  newton/checkpoint-1125/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
  newton/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
39
  newton/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
+ davinci/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
+ davinci/checkpoint-939/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
+ davinci/tokenizer.json filter=lfs diff=lfs merge=lfs -text
davinci/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: davinci
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 davinci
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
+ ```
davinci/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
+ "q_proj",
33
+ "o_proj",
34
+ "k_proj",
35
+ "v_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
+ }
davinci/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f76f7744a6495586fa6e24433bd8f2ca6b56516b79f4fad768bd5dc83fd58b
3
+ size 27297544
davinci/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 %}
davinci/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
davinci/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
+ "q_proj",
33
+ "o_proj",
34
+ "k_proj",
35
+ "v_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
+ }
davinci/checkpoint-500/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3827e8946985310f1f9bd01c2aaf3778d08911a2d21de729b8c900c77936039
3
+ size 27297544
davinci/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 %}
davinci/checkpoint-500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:947653b830d6950537a7de10e3769878f674e06129580ad51009d9fe93254633
3
+ size 54745547
davinci/checkpoint-500/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abcf9cee12e3b2d7ef53dd8425427fd15e6a6e3b1b7ab2fb87a9682dc5e34fa9
3
+ size 14645
davinci/checkpoint-500/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:820927e41cd14e86356818cda9df54ef4ef3f4c3a4d4b7a28cbf4df629afd0fd
3
+ size 1465
davinci/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
davinci/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
+ }
davinci/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": 1.5984,
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.765847223997116,
14
+ "epoch": 0.032,
15
+ "grad_norm": 0.2578125,
16
+ "learning_rate": 6.206896551724138e-05,
17
+ "loss": 2.887763786315918,
18
+ "mean_token_accuracy": 0.46187404468655585,
19
+ "num_tokens": 56152.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 2.2775970876216887,
24
+ "epoch": 0.064,
25
+ "grad_norm": 0.2236328125,
26
+ "learning_rate": 0.00013103448275862068,
27
+ "loss": 2.460337448120117,
28
+ "mean_token_accuracy": 0.506013386696577,
29
+ "num_tokens": 112587.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.8153630286455154,
34
+ "epoch": 0.096,
35
+ "grad_norm": 0.27734375,
36
+ "learning_rate": 0.0002,
37
+ "loss": 1.7399822235107423,
38
+ "mean_token_accuracy": 0.6103868752717971,
39
+ "num_tokens": 168621.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.185289441049099,
44
+ "epoch": 0.128,
45
+ "grad_norm": 0.30859375,
46
+ "learning_rate": 0.0001978021978021978,
47
+ "loss": 1.1186148643493652,
48
+ "mean_token_accuracy": 0.7334396600723266,
49
+ "num_tokens": 224707.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.8306711494922638,
54
+ "epoch": 0.16,
55
+ "grad_norm": 0.291015625,
56
+ "learning_rate": 0.00019560439560439562,
57
+ "loss": 0.7544202327728271,
58
+ "mean_token_accuracy": 0.8217264339327812,
59
+ "num_tokens": 281529.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.5289712496101856,
64
+ "epoch": 0.192,
65
+ "grad_norm": 0.3046875,
66
+ "learning_rate": 0.00019340659340659342,
67
+ "loss": 0.452878475189209,
68
+ "mean_token_accuracy": 0.8946282967925072,
69
+ "num_tokens": 338008.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.34988002628088,
74
+ "epoch": 0.224,
75
+ "grad_norm": 0.2734375,
76
+ "learning_rate": 0.00019120879120879122,
77
+ "loss": 0.29230058193206787,
78
+ "mean_token_accuracy": 0.9343003541231155,
79
+ "num_tokens": 394904.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.25185412392020223,
84
+ "epoch": 0.256,
85
+ "grad_norm": 0.251953125,
86
+ "learning_rate": 0.00018901098901098903,
87
+ "loss": 0.20802268981933594,
88
+ "mean_token_accuracy": 0.9522816658020019,
89
+ "num_tokens": 451161.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.2018993068486452,
94
+ "epoch": 0.288,
95
+ "grad_norm": 0.244140625,
96
+ "learning_rate": 0.00018681318681318683,
97
+ "loss": 0.17179200649261475,
98
+ "mean_token_accuracy": 0.9587775945663453,
99
+ "num_tokens": 507727.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.16806554533541201,
104
+ "epoch": 0.32,
105
+ "grad_norm": 0.2158203125,
106
+ "learning_rate": 0.00018461538461538463,
107
+ "loss": 0.14763951301574707,
108
+ "mean_token_accuracy": 0.9639375448226929,
109
+ "num_tokens": 564343.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.14694931916892529,
114
+ "epoch": 0.352,
115
+ "grad_norm": 0.185546875,
116
+ "learning_rate": 0.0001824175824175824,
117
+ "loss": 0.127738356590271,
118
+ "mean_token_accuracy": 0.966508974134922,
119
+ "num_tokens": 620780.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.13702088352292777,
124
+ "epoch": 0.384,
125
+ "grad_norm": 0.201171875,
126
+ "learning_rate": 0.00018021978021978024,
127
+ "loss": 0.1153560996055603,
128
+ "mean_token_accuracy": 0.9671898797154427,
129
+ "num_tokens": 676485.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.12865546997636557,
134
+ "epoch": 0.416,
135
+ "grad_norm": 0.091796875,
136
+ "learning_rate": 0.00017802197802197802,
137
+ "loss": 0.10538246631622314,
138
+ "mean_token_accuracy": 0.9685350403189659,
139
+ "num_tokens": 732104.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.11221796181052923,
144
+ "epoch": 0.448,
145
+ "grad_norm": 0.1220703125,
146
+ "learning_rate": 0.00017582417582417582,
147
+ "loss": 0.09550263285636902,
148
+ "mean_token_accuracy": 0.9704204052686691,
149
+ "num_tokens": 788648.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.11187596172094345,
154
+ "epoch": 0.48,
155
+ "grad_norm": 0.142578125,
156
+ "learning_rate": 0.00017362637362637365,
157
+ "loss": 0.09267887473106384,
158
+ "mean_token_accuracy": 0.9708487093448639,
159
+ "num_tokens": 845277.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.10449027251452207,
164
+ "epoch": 0.512,
165
+ "grad_norm": 0.11474609375,
166
+ "learning_rate": 0.00017142857142857143,
167
+ "loss": 0.09188109636306763,
168
+ "mean_token_accuracy": 0.9701150968670845,
169
+ "num_tokens": 901601.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.10061556100845337,
174
+ "epoch": 0.544,
175
+ "grad_norm": 0.078125,
176
+ "learning_rate": 0.00016923076923076923,
177
+ "loss": 0.08688170909881592,
178
+ "mean_token_accuracy": 0.9714163467288017,
179
+ "num_tokens": 958510.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.09703337252140046,
184
+ "epoch": 0.576,
185
+ "grad_norm": 0.11865234375,
186
+ "learning_rate": 0.00016703296703296706,
187
+ "loss": 0.08396151661872864,
188
+ "mean_token_accuracy": 0.9724744081497192,
189
+ "num_tokens": 1014706.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.09241664204746484,
194
+ "epoch": 0.608,
195
+ "grad_norm": 0.078125,
196
+ "learning_rate": 0.00016483516483516484,
197
+ "loss": 0.08444164395332336,
198
+ "mean_token_accuracy": 0.9721407666802406,
199
+ "num_tokens": 1071133.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.09338212702423335,
204
+ "epoch": 0.64,
205
+ "grad_norm": 0.1142578125,
206
+ "learning_rate": 0.00016263736263736264,
207
+ "loss": 0.08270348310470581,
208
+ "mean_token_accuracy": 0.9724765837192535,
209
+ "num_tokens": 1127600.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.09137626234441995,
214
+ "epoch": 0.672,
215
+ "grad_norm": 0.07275390625,
216
+ "learning_rate": 0.00016043956043956044,
217
+ "loss": 0.08120843768119812,
218
+ "mean_token_accuracy": 0.9727972850203515,
219
+ "num_tokens": 1183826.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.08943495023995637,
224
+ "epoch": 0.704,
225
+ "grad_norm": 0.09228515625,
226
+ "learning_rate": 0.00015824175824175824,
227
+ "loss": 0.0806293785572052,
228
+ "mean_token_accuracy": 0.9729145392775536,
229
+ "num_tokens": 1240123.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.08839260842651128,
234
+ "epoch": 0.736,
235
+ "grad_norm": 0.1171875,
236
+ "learning_rate": 0.00015604395604395605,
237
+ "loss": 0.07906079888343812,
238
+ "mean_token_accuracy": 0.9728850305080414,
239
+ "num_tokens": 1296696.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "entropy": 0.08858597576618195,
244
+ "epoch": 0.768,
245
+ "grad_norm": 0.1552734375,
246
+ "learning_rate": 0.00015384615384615385,
247
+ "loss": 0.08044076561927796,
248
+ "mean_token_accuracy": 0.9724162057042122,
249
+ "num_tokens": 1352831.0,
250
+ "step": 240
251
+ },
252
+ {
253
+ "entropy": 0.09007721468806267,
254
+ "epoch": 0.8,
255
+ "grad_norm": 0.10107421875,
256
+ "learning_rate": 0.00015164835164835165,
257
+ "loss": 0.08158640861511231,
258
+ "mean_token_accuracy": 0.9722792387008667,
259
+ "num_tokens": 1409271.0,
260
+ "step": 250
261
+ },
262
+ {
263
+ "entropy": 0.08655472807586193,
264
+ "epoch": 0.832,
265
+ "grad_norm": 0.07373046875,
266
+ "learning_rate": 0.00014945054945054946,
267
+ "loss": 0.08008719682693481,
268
+ "mean_token_accuracy": 0.9734297141432762,
269
+ "num_tokens": 1465271.0,
270
+ "step": 260
271
+ },
272
+ {
273
+ "entropy": 0.08689612131565809,
274
+ "epoch": 0.864,
275
+ "grad_norm": 0.1416015625,
276
+ "learning_rate": 0.00014725274725274726,
277
+ "loss": 0.07870798110961914,
278
+ "mean_token_accuracy": 0.9730307757854462,
279
+ "num_tokens": 1521295.0,
280
+ "step": 270
281
+ },
282
+ {
283
+ "entropy": 0.08382895905524493,
284
+ "epoch": 0.896,
285
+ "grad_norm": 0.09033203125,
286
+ "learning_rate": 0.00014505494505494506,
287
+ "loss": 0.07732324004173279,
288
+ "mean_token_accuracy": 0.9730261951684952,
289
+ "num_tokens": 1577651.0,
290
+ "step": 280
291
+ },
292
+ {
293
+ "entropy": 0.08625071458518505,
294
+ "epoch": 0.928,
295
+ "grad_norm": 0.095703125,
296
+ "learning_rate": 0.00014285714285714287,
297
+ "loss": 0.07772318720817566,
298
+ "mean_token_accuracy": 0.9722341999411583,
299
+ "num_tokens": 1633578.0,
300
+ "step": 290
301
+ },
302
+ {
303
+ "entropy": 0.08320586234331132,
304
+ "epoch": 0.96,
305
+ "grad_norm": 0.0654296875,
306
+ "learning_rate": 0.00014065934065934067,
307
+ "loss": 0.077446448802948,
308
+ "mean_token_accuracy": 0.972867003083229,
309
+ "num_tokens": 1690062.0,
310
+ "step": 300
311
+ },
312
+ {
313
+ "entropy": 0.08028208408504725,
314
+ "epoch": 0.992,
315
+ "grad_norm": 0.052001953125,
316
+ "learning_rate": 0.00013846153846153847,
317
+ "loss": 0.07448889017105102,
318
+ "mean_token_accuracy": 0.9736120477318764,
319
+ "num_tokens": 1747161.0,
320
+ "step": 310
321
+ },
322
+ {
323
+ "entropy": 0.08117271979388438,
324
+ "epoch": 1.0224,
325
+ "grad_norm": 0.072265625,
326
+ "learning_rate": 0.00013626373626373628,
327
+ "loss": 0.0744770348072052,
328
+ "mean_token_accuracy": 0.9738528257922122,
329
+ "num_tokens": 1800329.0,
330
+ "step": 320
331
+ },
332
+ {
333
+ "entropy": 0.080937241576612,
334
+ "epoch": 1.0544,
335
+ "grad_norm": 0.061767578125,
336
+ "learning_rate": 0.00013406593406593405,
337
+ "loss": 0.0741479218006134,
338
+ "mean_token_accuracy": 0.9734442710876465,
339
+ "num_tokens": 1856800.0,
340
+ "step": 330
341
+ },
342
+ {
343
+ "entropy": 0.07824601717293263,
344
+ "epoch": 1.0864,
345
+ "grad_norm": 0.06103515625,
346
+ "learning_rate": 0.00013186813186813188,
347
+ "loss": 0.07381554841995239,
348
+ "mean_token_accuracy": 0.973892730474472,
349
+ "num_tokens": 1912949.0,
350
+ "step": 340
351
+ },
352
+ {
353
+ "entropy": 0.0771486822515726,
354
+ "epoch": 1.1184,
355
+ "grad_norm": 0.060302734375,
356
+ "learning_rate": 0.0001296703296703297,
357
+ "loss": 0.0723546326160431,
358
+ "mean_token_accuracy": 0.974125075340271,
359
+ "num_tokens": 1969412.0,
360
+ "step": 350
361
+ },
362
+ {
363
+ "entropy": 0.07591825406998395,
364
+ "epoch": 1.1504,
365
+ "grad_norm": 0.052734375,
366
+ "learning_rate": 0.00012747252747252746,
367
+ "loss": 0.07068771123886108,
368
+ "mean_token_accuracy": 0.9741279140114785,
369
+ "num_tokens": 2025544.0,
370
+ "step": 360
371
+ },
372
+ {
373
+ "entropy": 0.0768967004492879,
374
+ "epoch": 1.1824,
375
+ "grad_norm": 0.0517578125,
376
+ "learning_rate": 0.00012527472527472527,
377
+ "loss": 0.07226019501686096,
378
+ "mean_token_accuracy": 0.974024161696434,
379
+ "num_tokens": 2082060.0,
380
+ "step": 370
381
+ },
382
+ {
383
+ "entropy": 0.07532943487167358,
384
+ "epoch": 1.2144,
385
+ "grad_norm": 0.0693359375,
386
+ "learning_rate": 0.0001230769230769231,
387
+ "loss": 0.07127081751823425,
388
+ "mean_token_accuracy": 0.9739077508449554,
389
+ "num_tokens": 2138526.0,
390
+ "step": 380
391
+ },
392
+ {
393
+ "entropy": 0.07546288054436445,
394
+ "epoch": 1.2464,
395
+ "grad_norm": 0.0732421875,
396
+ "learning_rate": 0.00012087912087912087,
397
+ "loss": 0.0715237319469452,
398
+ "mean_token_accuracy": 0.974101935327053,
399
+ "num_tokens": 2194683.0,
400
+ "step": 390
401
+ },
402
+ {
403
+ "entropy": 0.07725638337433338,
404
+ "epoch": 1.2784,
405
+ "grad_norm": 0.049560546875,
406
+ "learning_rate": 0.00011868131868131869,
407
+ "loss": 0.07198636531829834,
408
+ "mean_token_accuracy": 0.9740697085857392,
409
+ "num_tokens": 2251274.0,
410
+ "step": 400
411
+ },
412
+ {
413
+ "entropy": 0.07509954180568457,
414
+ "epoch": 1.3104,
415
+ "grad_norm": 0.1591796875,
416
+ "learning_rate": 0.0001164835164835165,
417
+ "loss": 0.07245813012123108,
418
+ "mean_token_accuracy": 0.97386264950037,
419
+ "num_tokens": 2307625.0,
420
+ "step": 410
421
+ },
422
+ {
423
+ "entropy": 0.07573851495981217,
424
+ "epoch": 1.3424,
425
+ "grad_norm": 0.11572265625,
426
+ "learning_rate": 0.00011428571428571428,
427
+ "loss": 0.07237505316734313,
428
+ "mean_token_accuracy": 0.9742786347866058,
429
+ "num_tokens": 2363944.0,
430
+ "step": 420
431
+ },
432
+ {
433
+ "entropy": 0.07536402009427548,
434
+ "epoch": 1.3744,
435
+ "grad_norm": 0.07861328125,
436
+ "learning_rate": 0.0001120879120879121,
437
+ "loss": 0.07097623944282531,
438
+ "mean_token_accuracy": 0.9736705645918846,
439
+ "num_tokens": 2420074.0,
440
+ "step": 430
441
+ },
442
+ {
443
+ "entropy": 0.07416129969060421,
444
+ "epoch": 1.4064,
445
+ "grad_norm": 0.052734375,
446
+ "learning_rate": 0.0001098901098901099,
447
+ "loss": 0.07140442728996277,
448
+ "mean_token_accuracy": 0.9747859939932824,
449
+ "num_tokens": 2476657.0,
450
+ "step": 440
451
+ },
452
+ {
453
+ "entropy": 0.07501455284655094,
454
+ "epoch": 1.4384000000000001,
455
+ "grad_norm": 0.05712890625,
456
+ "learning_rate": 0.0001076923076923077,
457
+ "loss": 0.07142727375030518,
458
+ "mean_token_accuracy": 0.9742778673768043,
459
+ "num_tokens": 2533642.0,
460
+ "step": 450
461
+ },
462
+ {
463
+ "entropy": 0.07456400785595178,
464
+ "epoch": 1.4704,
465
+ "grad_norm": 0.04736328125,
466
+ "learning_rate": 0.0001054945054945055,
467
+ "loss": 0.06932693123817443,
468
+ "mean_token_accuracy": 0.9749433383345604,
469
+ "num_tokens": 2590615.0,
470
+ "step": 460
471
+ },
472
+ {
473
+ "entropy": 0.07349070943892003,
474
+ "epoch": 1.5024,
475
+ "grad_norm": 0.0634765625,
476
+ "learning_rate": 0.00010329670329670331,
477
+ "loss": 0.06970517039299011,
478
+ "mean_token_accuracy": 0.9744679152965545,
479
+ "num_tokens": 2647074.0,
480
+ "step": 470
481
+ },
482
+ {
483
+ "entropy": 0.07532282676547766,
484
+ "epoch": 1.5344,
485
+ "grad_norm": 0.0498046875,
486
+ "learning_rate": 0.0001010989010989011,
487
+ "loss": 0.07047909498214722,
488
+ "mean_token_accuracy": 0.9740379452705383,
489
+ "num_tokens": 2703311.0,
490
+ "step": 480
491
+ },
492
+ {
493
+ "entropy": 0.07352385744452476,
494
+ "epoch": 1.5664,
495
+ "grad_norm": 0.05126953125,
496
+ "learning_rate": 9.89010989010989e-05,
497
+ "loss": 0.07030070424079896,
498
+ "mean_token_accuracy": 0.9743834063410759,
499
+ "num_tokens": 2759737.0,
500
+ "step": 490
501
+ },
502
+ {
503
+ "entropy": 0.07334190551191569,
504
+ "epoch": 1.5984,
505
+ "grad_norm": 0.050048828125,
506
+ "learning_rate": 9.670329670329671e-05,
507
+ "loss": 0.06969634890556335,
508
+ "mean_token_accuracy": 0.9740354612469673,
509
+ "num_tokens": 2815903.0,
510
+ "step": 500
511
+ }
512
+ ],
513
+ "logging_steps": 10,
514
+ "max_steps": 939,
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.3093502396768256e+17,
531
+ "train_batch_size": 2,
532
+ "trial_name": null,
533
+ "trial_params": null
534
+ }
davinci/checkpoint-500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f21cb0f4416a41acd8ff9feb8c0f995a14287a039f7c3dc536cda4414e290f8
3
+ size 5585
davinci/checkpoint-939/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
davinci/checkpoint-939/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
+ "q_proj",
33
+ "o_proj",
34
+ "k_proj",
35
+ "v_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
+ }
davinci/checkpoint-939/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f76f7744a6495586fa6e24433bd8f2ca6b56516b79f4fad768bd5dc83fd58b
3
+ size 27297544
davinci/checkpoint-939/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 %}
davinci/checkpoint-939/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12ec721ffd7ea81911e8868ad42809f38c2ca2e1ee45363b256ba4c9f5338b28
3
+ size 54745547
davinci/checkpoint-939/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6336e829a9ff8cce299b6fd18f96bdb30f66fa9d26a2d0e60c9f3abf68ca973d
3
+ size 14645
davinci/checkpoint-939/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a85b9d8d75b43f2deffbdf4c4ecce548860c65bc59c665b7c0dfc2918984f3a7
3
+ size 1465
davinci/checkpoint-939/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
davinci/checkpoint-939/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
+ }
davinci/checkpoint-939/trainer_state.json ADDED
@@ -0,0 +1,964 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 939,
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.765847223997116,
14
+ "epoch": 0.032,
15
+ "grad_norm": 0.2578125,
16
+ "learning_rate": 6.206896551724138e-05,
17
+ "loss": 2.887763786315918,
18
+ "mean_token_accuracy": 0.46187404468655585,
19
+ "num_tokens": 56152.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 2.2775970876216887,
24
+ "epoch": 0.064,
25
+ "grad_norm": 0.2236328125,
26
+ "learning_rate": 0.00013103448275862068,
27
+ "loss": 2.460337448120117,
28
+ "mean_token_accuracy": 0.506013386696577,
29
+ "num_tokens": 112587.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.8153630286455154,
34
+ "epoch": 0.096,
35
+ "grad_norm": 0.27734375,
36
+ "learning_rate": 0.0002,
37
+ "loss": 1.7399822235107423,
38
+ "mean_token_accuracy": 0.6103868752717971,
39
+ "num_tokens": 168621.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.185289441049099,
44
+ "epoch": 0.128,
45
+ "grad_norm": 0.30859375,
46
+ "learning_rate": 0.0001978021978021978,
47
+ "loss": 1.1186148643493652,
48
+ "mean_token_accuracy": 0.7334396600723266,
49
+ "num_tokens": 224707.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.8306711494922638,
54
+ "epoch": 0.16,
55
+ "grad_norm": 0.291015625,
56
+ "learning_rate": 0.00019560439560439562,
57
+ "loss": 0.7544202327728271,
58
+ "mean_token_accuracy": 0.8217264339327812,
59
+ "num_tokens": 281529.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.5289712496101856,
64
+ "epoch": 0.192,
65
+ "grad_norm": 0.3046875,
66
+ "learning_rate": 0.00019340659340659342,
67
+ "loss": 0.452878475189209,
68
+ "mean_token_accuracy": 0.8946282967925072,
69
+ "num_tokens": 338008.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.34988002628088,
74
+ "epoch": 0.224,
75
+ "grad_norm": 0.2734375,
76
+ "learning_rate": 0.00019120879120879122,
77
+ "loss": 0.29230058193206787,
78
+ "mean_token_accuracy": 0.9343003541231155,
79
+ "num_tokens": 394904.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.25185412392020223,
84
+ "epoch": 0.256,
85
+ "grad_norm": 0.251953125,
86
+ "learning_rate": 0.00018901098901098903,
87
+ "loss": 0.20802268981933594,
88
+ "mean_token_accuracy": 0.9522816658020019,
89
+ "num_tokens": 451161.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.2018993068486452,
94
+ "epoch": 0.288,
95
+ "grad_norm": 0.244140625,
96
+ "learning_rate": 0.00018681318681318683,
97
+ "loss": 0.17179200649261475,
98
+ "mean_token_accuracy": 0.9587775945663453,
99
+ "num_tokens": 507727.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.16806554533541201,
104
+ "epoch": 0.32,
105
+ "grad_norm": 0.2158203125,
106
+ "learning_rate": 0.00018461538461538463,
107
+ "loss": 0.14763951301574707,
108
+ "mean_token_accuracy": 0.9639375448226929,
109
+ "num_tokens": 564343.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.14694931916892529,
114
+ "epoch": 0.352,
115
+ "grad_norm": 0.185546875,
116
+ "learning_rate": 0.0001824175824175824,
117
+ "loss": 0.127738356590271,
118
+ "mean_token_accuracy": 0.966508974134922,
119
+ "num_tokens": 620780.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.13702088352292777,
124
+ "epoch": 0.384,
125
+ "grad_norm": 0.201171875,
126
+ "learning_rate": 0.00018021978021978024,
127
+ "loss": 0.1153560996055603,
128
+ "mean_token_accuracy": 0.9671898797154427,
129
+ "num_tokens": 676485.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.12865546997636557,
134
+ "epoch": 0.416,
135
+ "grad_norm": 0.091796875,
136
+ "learning_rate": 0.00017802197802197802,
137
+ "loss": 0.10538246631622314,
138
+ "mean_token_accuracy": 0.9685350403189659,
139
+ "num_tokens": 732104.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.11221796181052923,
144
+ "epoch": 0.448,
145
+ "grad_norm": 0.1220703125,
146
+ "learning_rate": 0.00017582417582417582,
147
+ "loss": 0.09550263285636902,
148
+ "mean_token_accuracy": 0.9704204052686691,
149
+ "num_tokens": 788648.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.11187596172094345,
154
+ "epoch": 0.48,
155
+ "grad_norm": 0.142578125,
156
+ "learning_rate": 0.00017362637362637365,
157
+ "loss": 0.09267887473106384,
158
+ "mean_token_accuracy": 0.9708487093448639,
159
+ "num_tokens": 845277.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.10449027251452207,
164
+ "epoch": 0.512,
165
+ "grad_norm": 0.11474609375,
166
+ "learning_rate": 0.00017142857142857143,
167
+ "loss": 0.09188109636306763,
168
+ "mean_token_accuracy": 0.9701150968670845,
169
+ "num_tokens": 901601.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.10061556100845337,
174
+ "epoch": 0.544,
175
+ "grad_norm": 0.078125,
176
+ "learning_rate": 0.00016923076923076923,
177
+ "loss": 0.08688170909881592,
178
+ "mean_token_accuracy": 0.9714163467288017,
179
+ "num_tokens": 958510.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.09703337252140046,
184
+ "epoch": 0.576,
185
+ "grad_norm": 0.11865234375,
186
+ "learning_rate": 0.00016703296703296706,
187
+ "loss": 0.08396151661872864,
188
+ "mean_token_accuracy": 0.9724744081497192,
189
+ "num_tokens": 1014706.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.09241664204746484,
194
+ "epoch": 0.608,
195
+ "grad_norm": 0.078125,
196
+ "learning_rate": 0.00016483516483516484,
197
+ "loss": 0.08444164395332336,
198
+ "mean_token_accuracy": 0.9721407666802406,
199
+ "num_tokens": 1071133.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.09338212702423335,
204
+ "epoch": 0.64,
205
+ "grad_norm": 0.1142578125,
206
+ "learning_rate": 0.00016263736263736264,
207
+ "loss": 0.08270348310470581,
208
+ "mean_token_accuracy": 0.9724765837192535,
209
+ "num_tokens": 1127600.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.09137626234441995,
214
+ "epoch": 0.672,
215
+ "grad_norm": 0.07275390625,
216
+ "learning_rate": 0.00016043956043956044,
217
+ "loss": 0.08120843768119812,
218
+ "mean_token_accuracy": 0.9727972850203515,
219
+ "num_tokens": 1183826.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.08943495023995637,
224
+ "epoch": 0.704,
225
+ "grad_norm": 0.09228515625,
226
+ "learning_rate": 0.00015824175824175824,
227
+ "loss": 0.0806293785572052,
228
+ "mean_token_accuracy": 0.9729145392775536,
229
+ "num_tokens": 1240123.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.08839260842651128,
234
+ "epoch": 0.736,
235
+ "grad_norm": 0.1171875,
236
+ "learning_rate": 0.00015604395604395605,
237
+ "loss": 0.07906079888343812,
238
+ "mean_token_accuracy": 0.9728850305080414,
239
+ "num_tokens": 1296696.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "entropy": 0.08858597576618195,
244
+ "epoch": 0.768,
245
+ "grad_norm": 0.1552734375,
246
+ "learning_rate": 0.00015384615384615385,
247
+ "loss": 0.08044076561927796,
248
+ "mean_token_accuracy": 0.9724162057042122,
249
+ "num_tokens": 1352831.0,
250
+ "step": 240
251
+ },
252
+ {
253
+ "entropy": 0.09007721468806267,
254
+ "epoch": 0.8,
255
+ "grad_norm": 0.10107421875,
256
+ "learning_rate": 0.00015164835164835165,
257
+ "loss": 0.08158640861511231,
258
+ "mean_token_accuracy": 0.9722792387008667,
259
+ "num_tokens": 1409271.0,
260
+ "step": 250
261
+ },
262
+ {
263
+ "entropy": 0.08655472807586193,
264
+ "epoch": 0.832,
265
+ "grad_norm": 0.07373046875,
266
+ "learning_rate": 0.00014945054945054946,
267
+ "loss": 0.08008719682693481,
268
+ "mean_token_accuracy": 0.9734297141432762,
269
+ "num_tokens": 1465271.0,
270
+ "step": 260
271
+ },
272
+ {
273
+ "entropy": 0.08689612131565809,
274
+ "epoch": 0.864,
275
+ "grad_norm": 0.1416015625,
276
+ "learning_rate": 0.00014725274725274726,
277
+ "loss": 0.07870798110961914,
278
+ "mean_token_accuracy": 0.9730307757854462,
279
+ "num_tokens": 1521295.0,
280
+ "step": 270
281
+ },
282
+ {
283
+ "entropy": 0.08382895905524493,
284
+ "epoch": 0.896,
285
+ "grad_norm": 0.09033203125,
286
+ "learning_rate": 0.00014505494505494506,
287
+ "loss": 0.07732324004173279,
288
+ "mean_token_accuracy": 0.9730261951684952,
289
+ "num_tokens": 1577651.0,
290
+ "step": 280
291
+ },
292
+ {
293
+ "entropy": 0.08625071458518505,
294
+ "epoch": 0.928,
295
+ "grad_norm": 0.095703125,
296
+ "learning_rate": 0.00014285714285714287,
297
+ "loss": 0.07772318720817566,
298
+ "mean_token_accuracy": 0.9722341999411583,
299
+ "num_tokens": 1633578.0,
300
+ "step": 290
301
+ },
302
+ {
303
+ "entropy": 0.08320586234331132,
304
+ "epoch": 0.96,
305
+ "grad_norm": 0.0654296875,
306
+ "learning_rate": 0.00014065934065934067,
307
+ "loss": 0.077446448802948,
308
+ "mean_token_accuracy": 0.972867003083229,
309
+ "num_tokens": 1690062.0,
310
+ "step": 300
311
+ },
312
+ {
313
+ "entropy": 0.08028208408504725,
314
+ "epoch": 0.992,
315
+ "grad_norm": 0.052001953125,
316
+ "learning_rate": 0.00013846153846153847,
317
+ "loss": 0.07448889017105102,
318
+ "mean_token_accuracy": 0.9736120477318764,
319
+ "num_tokens": 1747161.0,
320
+ "step": 310
321
+ },
322
+ {
323
+ "entropy": 0.08117271979388438,
324
+ "epoch": 1.0224,
325
+ "grad_norm": 0.072265625,
326
+ "learning_rate": 0.00013626373626373628,
327
+ "loss": 0.0744770348072052,
328
+ "mean_token_accuracy": 0.9738528257922122,
329
+ "num_tokens": 1800329.0,
330
+ "step": 320
331
+ },
332
+ {
333
+ "entropy": 0.080937241576612,
334
+ "epoch": 1.0544,
335
+ "grad_norm": 0.061767578125,
336
+ "learning_rate": 0.00013406593406593405,
337
+ "loss": 0.0741479218006134,
338
+ "mean_token_accuracy": 0.9734442710876465,
339
+ "num_tokens": 1856800.0,
340
+ "step": 330
341
+ },
342
+ {
343
+ "entropy": 0.07824601717293263,
344
+ "epoch": 1.0864,
345
+ "grad_norm": 0.06103515625,
346
+ "learning_rate": 0.00013186813186813188,
347
+ "loss": 0.07381554841995239,
348
+ "mean_token_accuracy": 0.973892730474472,
349
+ "num_tokens": 1912949.0,
350
+ "step": 340
351
+ },
352
+ {
353
+ "entropy": 0.0771486822515726,
354
+ "epoch": 1.1184,
355
+ "grad_norm": 0.060302734375,
356
+ "learning_rate": 0.0001296703296703297,
357
+ "loss": 0.0723546326160431,
358
+ "mean_token_accuracy": 0.974125075340271,
359
+ "num_tokens": 1969412.0,
360
+ "step": 350
361
+ },
362
+ {
363
+ "entropy": 0.07591825406998395,
364
+ "epoch": 1.1504,
365
+ "grad_norm": 0.052734375,
366
+ "learning_rate": 0.00012747252747252746,
367
+ "loss": 0.07068771123886108,
368
+ "mean_token_accuracy": 0.9741279140114785,
369
+ "num_tokens": 2025544.0,
370
+ "step": 360
371
+ },
372
+ {
373
+ "entropy": 0.0768967004492879,
374
+ "epoch": 1.1824,
375
+ "grad_norm": 0.0517578125,
376
+ "learning_rate": 0.00012527472527472527,
377
+ "loss": 0.07226019501686096,
378
+ "mean_token_accuracy": 0.974024161696434,
379
+ "num_tokens": 2082060.0,
380
+ "step": 370
381
+ },
382
+ {
383
+ "entropy": 0.07532943487167358,
384
+ "epoch": 1.2144,
385
+ "grad_norm": 0.0693359375,
386
+ "learning_rate": 0.0001230769230769231,
387
+ "loss": 0.07127081751823425,
388
+ "mean_token_accuracy": 0.9739077508449554,
389
+ "num_tokens": 2138526.0,
390
+ "step": 380
391
+ },
392
+ {
393
+ "entropy": 0.07546288054436445,
394
+ "epoch": 1.2464,
395
+ "grad_norm": 0.0732421875,
396
+ "learning_rate": 0.00012087912087912087,
397
+ "loss": 0.0715237319469452,
398
+ "mean_token_accuracy": 0.974101935327053,
399
+ "num_tokens": 2194683.0,
400
+ "step": 390
401
+ },
402
+ {
403
+ "entropy": 0.07725638337433338,
404
+ "epoch": 1.2784,
405
+ "grad_norm": 0.049560546875,
406
+ "learning_rate": 0.00011868131868131869,
407
+ "loss": 0.07198636531829834,
408
+ "mean_token_accuracy": 0.9740697085857392,
409
+ "num_tokens": 2251274.0,
410
+ "step": 400
411
+ },
412
+ {
413
+ "entropy": 0.07509954180568457,
414
+ "epoch": 1.3104,
415
+ "grad_norm": 0.1591796875,
416
+ "learning_rate": 0.0001164835164835165,
417
+ "loss": 0.07245813012123108,
418
+ "mean_token_accuracy": 0.97386264950037,
419
+ "num_tokens": 2307625.0,
420
+ "step": 410
421
+ },
422
+ {
423
+ "entropy": 0.07573851495981217,
424
+ "epoch": 1.3424,
425
+ "grad_norm": 0.11572265625,
426
+ "learning_rate": 0.00011428571428571428,
427
+ "loss": 0.07237505316734313,
428
+ "mean_token_accuracy": 0.9742786347866058,
429
+ "num_tokens": 2363944.0,
430
+ "step": 420
431
+ },
432
+ {
433
+ "entropy": 0.07536402009427548,
434
+ "epoch": 1.3744,
435
+ "grad_norm": 0.07861328125,
436
+ "learning_rate": 0.0001120879120879121,
437
+ "loss": 0.07097623944282531,
438
+ "mean_token_accuracy": 0.9736705645918846,
439
+ "num_tokens": 2420074.0,
440
+ "step": 430
441
+ },
442
+ {
443
+ "entropy": 0.07416129969060421,
444
+ "epoch": 1.4064,
445
+ "grad_norm": 0.052734375,
446
+ "learning_rate": 0.0001098901098901099,
447
+ "loss": 0.07140442728996277,
448
+ "mean_token_accuracy": 0.9747859939932824,
449
+ "num_tokens": 2476657.0,
450
+ "step": 440
451
+ },
452
+ {
453
+ "entropy": 0.07501455284655094,
454
+ "epoch": 1.4384000000000001,
455
+ "grad_norm": 0.05712890625,
456
+ "learning_rate": 0.0001076923076923077,
457
+ "loss": 0.07142727375030518,
458
+ "mean_token_accuracy": 0.9742778673768043,
459
+ "num_tokens": 2533642.0,
460
+ "step": 450
461
+ },
462
+ {
463
+ "entropy": 0.07456400785595178,
464
+ "epoch": 1.4704,
465
+ "grad_norm": 0.04736328125,
466
+ "learning_rate": 0.0001054945054945055,
467
+ "loss": 0.06932693123817443,
468
+ "mean_token_accuracy": 0.9749433383345604,
469
+ "num_tokens": 2590615.0,
470
+ "step": 460
471
+ },
472
+ {
473
+ "entropy": 0.07349070943892003,
474
+ "epoch": 1.5024,
475
+ "grad_norm": 0.0634765625,
476
+ "learning_rate": 0.00010329670329670331,
477
+ "loss": 0.06970517039299011,
478
+ "mean_token_accuracy": 0.9744679152965545,
479
+ "num_tokens": 2647074.0,
480
+ "step": 470
481
+ },
482
+ {
483
+ "entropy": 0.07532282676547766,
484
+ "epoch": 1.5344,
485
+ "grad_norm": 0.0498046875,
486
+ "learning_rate": 0.0001010989010989011,
487
+ "loss": 0.07047909498214722,
488
+ "mean_token_accuracy": 0.9740379452705383,
489
+ "num_tokens": 2703311.0,
490
+ "step": 480
491
+ },
492
+ {
493
+ "entropy": 0.07352385744452476,
494
+ "epoch": 1.5664,
495
+ "grad_norm": 0.05126953125,
496
+ "learning_rate": 9.89010989010989e-05,
497
+ "loss": 0.07030070424079896,
498
+ "mean_token_accuracy": 0.9743834063410759,
499
+ "num_tokens": 2759737.0,
500
+ "step": 490
501
+ },
502
+ {
503
+ "entropy": 0.07334190551191569,
504
+ "epoch": 1.5984,
505
+ "grad_norm": 0.050048828125,
506
+ "learning_rate": 9.670329670329671e-05,
507
+ "loss": 0.06969634890556335,
508
+ "mean_token_accuracy": 0.9740354612469673,
509
+ "num_tokens": 2815903.0,
510
+ "step": 500
511
+ },
512
+ {
513
+ "entropy": 0.07266121916472912,
514
+ "epoch": 1.6303999999999998,
515
+ "grad_norm": 0.0615234375,
516
+ "learning_rate": 9.450549450549451e-05,
517
+ "loss": 0.06949952840805054,
518
+ "mean_token_accuracy": 0.9742880925536156,
519
+ "num_tokens": 2872194.0,
520
+ "step": 510
521
+ },
522
+ {
523
+ "entropy": 0.07272388003766536,
524
+ "epoch": 1.6623999999999999,
525
+ "grad_norm": 0.076171875,
526
+ "learning_rate": 9.230769230769232e-05,
527
+ "loss": 0.06940392851829529,
528
+ "mean_token_accuracy": 0.9741565704345703,
529
+ "num_tokens": 2928523.0,
530
+ "step": 520
531
+ },
532
+ {
533
+ "entropy": 0.07339652627706528,
534
+ "epoch": 1.6944,
535
+ "grad_norm": 0.0595703125,
536
+ "learning_rate": 9.010989010989012e-05,
537
+ "loss": 0.06963216066360474,
538
+ "mean_token_accuracy": 0.9739155307412147,
539
+ "num_tokens": 2984536.0,
540
+ "step": 530
541
+ },
542
+ {
543
+ "entropy": 0.07244944609701634,
544
+ "epoch": 1.7264,
545
+ "grad_norm": 0.055908203125,
546
+ "learning_rate": 8.791208791208791e-05,
547
+ "loss": 0.06880267858505248,
548
+ "mean_token_accuracy": 0.9742810636758804,
549
+ "num_tokens": 3041273.0,
550
+ "step": 540
551
+ },
552
+ {
553
+ "entropy": 0.07108333166688681,
554
+ "epoch": 1.7584,
555
+ "grad_norm": 0.046630859375,
556
+ "learning_rate": 8.571428571428571e-05,
557
+ "loss": 0.06817492246627807,
558
+ "mean_token_accuracy": 0.9747302502393722,
559
+ "num_tokens": 3097967.0,
560
+ "step": 550
561
+ },
562
+ {
563
+ "entropy": 0.07293068561702967,
564
+ "epoch": 1.7904,
565
+ "grad_norm": 0.047119140625,
566
+ "learning_rate": 8.351648351648353e-05,
567
+ "loss": 0.06863305568695069,
568
+ "mean_token_accuracy": 0.9745977595448494,
569
+ "num_tokens": 3154269.0,
570
+ "step": 560
571
+ },
572
+ {
573
+ "entropy": 0.07215537298470735,
574
+ "epoch": 1.8224,
575
+ "grad_norm": 0.044677734375,
576
+ "learning_rate": 8.131868131868132e-05,
577
+ "loss": 0.0701857328414917,
578
+ "mean_token_accuracy": 0.9745570942759514,
579
+ "num_tokens": 3210196.0,
580
+ "step": 570
581
+ },
582
+ {
583
+ "entropy": 0.07419390864670276,
584
+ "epoch": 1.8544,
585
+ "grad_norm": 0.0498046875,
586
+ "learning_rate": 7.912087912087912e-05,
587
+ "loss": 0.06985241174697876,
588
+ "mean_token_accuracy": 0.9743385434150695,
589
+ "num_tokens": 3266168.0,
590
+ "step": 580
591
+ },
592
+ {
593
+ "entropy": 0.07155264187604189,
594
+ "epoch": 1.8864,
595
+ "grad_norm": 0.047119140625,
596
+ "learning_rate": 7.692307692307693e-05,
597
+ "loss": 0.06801514625549317,
598
+ "mean_token_accuracy": 0.9741999164223671,
599
+ "num_tokens": 3322720.0,
600
+ "step": 590
601
+ },
602
+ {
603
+ "entropy": 0.07301885243505239,
604
+ "epoch": 1.9184,
605
+ "grad_norm": 0.052978515625,
606
+ "learning_rate": 7.472527472527473e-05,
607
+ "loss": 0.06798295974731446,
608
+ "mean_token_accuracy": 0.9746290504932403,
609
+ "num_tokens": 3379106.0,
610
+ "step": 600
611
+ },
612
+ {
613
+ "entropy": 0.07121691349893808,
614
+ "epoch": 1.9504000000000001,
615
+ "grad_norm": 0.04736328125,
616
+ "learning_rate": 7.252747252747253e-05,
617
+ "loss": 0.068598073720932,
618
+ "mean_token_accuracy": 0.9740164309740067,
619
+ "num_tokens": 3435455.0,
620
+ "step": 610
621
+ },
622
+ {
623
+ "entropy": 0.07093659751117229,
624
+ "epoch": 1.9824000000000002,
625
+ "grad_norm": 0.04345703125,
626
+ "learning_rate": 7.032967032967034e-05,
627
+ "loss": 0.06840575337409974,
628
+ "mean_token_accuracy": 0.9743095189332962,
629
+ "num_tokens": 3491913.0,
630
+ "step": 620
631
+ },
632
+ {
633
+ "entropy": 0.07206394935124799,
634
+ "epoch": 2.0128,
635
+ "grad_norm": 0.046142578125,
636
+ "learning_rate": 6.813186813186814e-05,
637
+ "loss": 0.06758478283882141,
638
+ "mean_token_accuracy": 0.974631174614555,
639
+ "num_tokens": 3545532.0,
640
+ "step": 630
641
+ },
642
+ {
643
+ "entropy": 0.07083711996674538,
644
+ "epoch": 2.0448,
645
+ "grad_norm": 0.043701171875,
646
+ "learning_rate": 6.593406593406594e-05,
647
+ "loss": 0.06740251779556275,
648
+ "mean_token_accuracy": 0.9746132045984268,
649
+ "num_tokens": 3601750.0,
650
+ "step": 640
651
+ },
652
+ {
653
+ "entropy": 0.06940150745213032,
654
+ "epoch": 2.0768,
655
+ "grad_norm": 0.044677734375,
656
+ "learning_rate": 6.373626373626373e-05,
657
+ "loss": 0.06656463742256165,
658
+ "mean_token_accuracy": 0.9751317039132118,
659
+ "num_tokens": 3658200.0,
660
+ "step": 650
661
+ },
662
+ {
663
+ "entropy": 0.06972125004976988,
664
+ "epoch": 2.1088,
665
+ "grad_norm": 0.053955078125,
666
+ "learning_rate": 6.153846153846155e-05,
667
+ "loss": 0.06672356724739074,
668
+ "mean_token_accuracy": 0.9748880088329315,
669
+ "num_tokens": 3714571.0,
670
+ "step": 660
671
+ },
672
+ {
673
+ "entropy": 0.07049978096038104,
674
+ "epoch": 2.1408,
675
+ "grad_norm": 0.048583984375,
676
+ "learning_rate": 5.9340659340659345e-05,
677
+ "loss": 0.06648544073104859,
678
+ "mean_token_accuracy": 0.9752828374505043,
679
+ "num_tokens": 3771237.0,
680
+ "step": 670
681
+ },
682
+ {
683
+ "entropy": 0.07016281113028526,
684
+ "epoch": 2.1728,
685
+ "grad_norm": 0.053466796875,
686
+ "learning_rate": 5.714285714285714e-05,
687
+ "loss": 0.06775825023651123,
688
+ "mean_token_accuracy": 0.9741855576634407,
689
+ "num_tokens": 3827333.0,
690
+ "step": 680
691
+ },
692
+ {
693
+ "entropy": 0.0697398909367621,
694
+ "epoch": 2.2048,
695
+ "grad_norm": 0.0478515625,
696
+ "learning_rate": 5.494505494505495e-05,
697
+ "loss": 0.06558757424354553,
698
+ "mean_token_accuracy": 0.9750754848122597,
699
+ "num_tokens": 3884047.0,
700
+ "step": 690
701
+ },
702
+ {
703
+ "entropy": 0.07038046848028898,
704
+ "epoch": 2.2368,
705
+ "grad_norm": 0.0537109375,
706
+ "learning_rate": 5.274725274725275e-05,
707
+ "loss": 0.06697022914886475,
708
+ "mean_token_accuracy": 0.9747041672468185,
709
+ "num_tokens": 3939674.0,
710
+ "step": 700
711
+ },
712
+ {
713
+ "entropy": 0.06939303996041417,
714
+ "epoch": 2.2688,
715
+ "grad_norm": 0.049560546875,
716
+ "learning_rate": 5.054945054945055e-05,
717
+ "loss": 0.06623688936233521,
718
+ "mean_token_accuracy": 0.9746327564120293,
719
+ "num_tokens": 3995336.0,
720
+ "step": 710
721
+ },
722
+ {
723
+ "entropy": 0.06911874655634165,
724
+ "epoch": 2.3008,
725
+ "grad_norm": 0.05078125,
726
+ "learning_rate": 4.8351648351648355e-05,
727
+ "loss": 0.06572118401527405,
728
+ "mean_token_accuracy": 0.9751049995422363,
729
+ "num_tokens": 4052061.0,
730
+ "step": 720
731
+ },
732
+ {
733
+ "entropy": 0.07011389117687941,
734
+ "epoch": 2.3327999999999998,
735
+ "grad_norm": 0.109375,
736
+ "learning_rate": 4.615384615384616e-05,
737
+ "loss": 0.06583920121192932,
738
+ "mean_token_accuracy": 0.9755928933620452,
739
+ "num_tokens": 4108527.0,
740
+ "step": 730
741
+ },
742
+ {
743
+ "entropy": 0.0693218169733882,
744
+ "epoch": 2.3648,
745
+ "grad_norm": 0.043212890625,
746
+ "learning_rate": 4.3956043956043955e-05,
747
+ "loss": 0.06613236665725708,
748
+ "mean_token_accuracy": 0.9750977262854577,
749
+ "num_tokens": 4164949.0,
750
+ "step": 740
751
+ },
752
+ {
753
+ "entropy": 0.06911731557920575,
754
+ "epoch": 2.3968,
755
+ "grad_norm": 0.07177734375,
756
+ "learning_rate": 4.1758241758241765e-05,
757
+ "loss": 0.06604759097099304,
758
+ "mean_token_accuracy": 0.9754573971033096,
759
+ "num_tokens": 4221691.0,
760
+ "step": 750
761
+ },
762
+ {
763
+ "entropy": 0.06993914116173983,
764
+ "epoch": 2.4288,
765
+ "grad_norm": 0.04833984375,
766
+ "learning_rate": 3.956043956043956e-05,
767
+ "loss": 0.06716731190681458,
768
+ "mean_token_accuracy": 0.975093024969101,
769
+ "num_tokens": 4278417.0,
770
+ "step": 760
771
+ },
772
+ {
773
+ "entropy": 0.06964065954089164,
774
+ "epoch": 2.4608,
775
+ "grad_norm": 0.048095703125,
776
+ "learning_rate": 3.7362637362637365e-05,
777
+ "loss": 0.06574493050575256,
778
+ "mean_token_accuracy": 0.9751413717865944,
779
+ "num_tokens": 4334891.0,
780
+ "step": 770
781
+ },
782
+ {
783
+ "entropy": 0.07056677304208278,
784
+ "epoch": 2.4928,
785
+ "grad_norm": 0.051513671875,
786
+ "learning_rate": 3.516483516483517e-05,
787
+ "loss": 0.0663109302520752,
788
+ "mean_token_accuracy": 0.975189596414566,
789
+ "num_tokens": 4390612.0,
790
+ "step": 780
791
+ },
792
+ {
793
+ "entropy": 0.06927145700901746,
794
+ "epoch": 2.5248,
795
+ "grad_norm": 0.052978515625,
796
+ "learning_rate": 3.296703296703297e-05,
797
+ "loss": 0.06642587780952454,
798
+ "mean_token_accuracy": 0.9745640248060227,
799
+ "num_tokens": 4446472.0,
800
+ "step": 790
801
+ },
802
+ {
803
+ "entropy": 0.07022066749632358,
804
+ "epoch": 2.5568,
805
+ "grad_norm": 0.053466796875,
806
+ "learning_rate": 3.0769230769230774e-05,
807
+ "loss": 0.06618784666061402,
808
+ "mean_token_accuracy": 0.9756692573428154,
809
+ "num_tokens": 4502636.0,
810
+ "step": 800
811
+ },
812
+ {
813
+ "entropy": 0.06819943720474839,
814
+ "epoch": 2.5888,
815
+ "grad_norm": 0.046630859375,
816
+ "learning_rate": 2.857142857142857e-05,
817
+ "loss": 0.06411008238792419,
818
+ "mean_token_accuracy": 0.9754757001996041,
819
+ "num_tokens": 4559884.0,
820
+ "step": 810
821
+ },
822
+ {
823
+ "entropy": 0.06905186725780368,
824
+ "epoch": 2.6208,
825
+ "grad_norm": 0.046875,
826
+ "learning_rate": 2.6373626373626374e-05,
827
+ "loss": 0.06473379135131836,
828
+ "mean_token_accuracy": 0.9757311746478081,
829
+ "num_tokens": 4617030.0,
830
+ "step": 820
831
+ },
832
+ {
833
+ "entropy": 0.06890011681243777,
834
+ "epoch": 2.6528,
835
+ "grad_norm": 0.0517578125,
836
+ "learning_rate": 2.4175824175824177e-05,
837
+ "loss": 0.06536944508552552,
838
+ "mean_token_accuracy": 0.9754818379878998,
839
+ "num_tokens": 4673956.0,
840
+ "step": 830
841
+ },
842
+ {
843
+ "entropy": 0.07007441222667694,
844
+ "epoch": 2.6848,
845
+ "grad_norm": 0.0576171875,
846
+ "learning_rate": 2.1978021978021977e-05,
847
+ "loss": 0.06617265939712524,
848
+ "mean_token_accuracy": 0.9750760287046433,
849
+ "num_tokens": 4729829.0,
850
+ "step": 840
851
+ },
852
+ {
853
+ "entropy": 0.06897767269983887,
854
+ "epoch": 2.7168,
855
+ "grad_norm": 0.050048828125,
856
+ "learning_rate": 1.978021978021978e-05,
857
+ "loss": 0.06520164012908936,
858
+ "mean_token_accuracy": 0.9748285204172135,
859
+ "num_tokens": 4785877.0,
860
+ "step": 850
861
+ },
862
+ {
863
+ "entropy": 0.06972532533109188,
864
+ "epoch": 2.7488,
865
+ "grad_norm": 0.0498046875,
866
+ "learning_rate": 1.7582417582417584e-05,
867
+ "loss": 0.06575180888175965,
868
+ "mean_token_accuracy": 0.9751192405819893,
869
+ "num_tokens": 4842245.0,
870
+ "step": 860
871
+ },
872
+ {
873
+ "entropy": 0.0695738073438406,
874
+ "epoch": 2.7808,
875
+ "grad_norm": 0.05322265625,
876
+ "learning_rate": 1.5384615384615387e-05,
877
+ "loss": 0.06541760563850403,
878
+ "mean_token_accuracy": 0.9751872330904007,
879
+ "num_tokens": 4898430.0,
880
+ "step": 870
881
+ },
882
+ {
883
+ "entropy": 0.06915857251733541,
884
+ "epoch": 2.8128,
885
+ "grad_norm": 0.0517578125,
886
+ "learning_rate": 1.3186813186813187e-05,
887
+ "loss": 0.06457725763320923,
888
+ "mean_token_accuracy": 0.9754222899675369,
889
+ "num_tokens": 4954992.0,
890
+ "step": 880
891
+ },
892
+ {
893
+ "entropy": 0.06952376030385495,
894
+ "epoch": 2.8448,
895
+ "grad_norm": 0.05078125,
896
+ "learning_rate": 1.0989010989010989e-05,
897
+ "loss": 0.06499672532081605,
898
+ "mean_token_accuracy": 0.9750340938568115,
899
+ "num_tokens": 5011180.0,
900
+ "step": 890
901
+ },
902
+ {
903
+ "entropy": 0.07051521427929401,
904
+ "epoch": 2.8768000000000002,
905
+ "grad_norm": 0.050537109375,
906
+ "learning_rate": 8.791208791208792e-06,
907
+ "loss": 0.06588171124458313,
908
+ "mean_token_accuracy": 0.9754653736948967,
909
+ "num_tokens": 5067372.0,
910
+ "step": 900
911
+ },
912
+ {
913
+ "entropy": 0.0689331229776144,
914
+ "epoch": 2.9088000000000003,
915
+ "grad_norm": 0.05322265625,
916
+ "learning_rate": 6.5934065934065935e-06,
917
+ "loss": 0.06466820240020751,
918
+ "mean_token_accuracy": 0.9759261250495911,
919
+ "num_tokens": 5124244.0,
920
+ "step": 910
921
+ },
922
+ {
923
+ "entropy": 0.06952993655577303,
924
+ "epoch": 2.9408,
925
+ "grad_norm": 0.046142578125,
926
+ "learning_rate": 4.395604395604396e-06,
927
+ "loss": 0.0658172309398651,
928
+ "mean_token_accuracy": 0.9749145016074181,
929
+ "num_tokens": 5180364.0,
930
+ "step": 920
931
+ },
932
+ {
933
+ "entropy": 0.06960295150056481,
934
+ "epoch": 2.9728,
935
+ "grad_norm": 0.05126953125,
936
+ "learning_rate": 2.197802197802198e-06,
937
+ "loss": 0.06470752358436585,
938
+ "mean_token_accuracy": 0.9757384702563285,
939
+ "num_tokens": 5237172.0,
940
+ "step": 930
941
+ }
942
+ ],
943
+ "logging_steps": 10,
944
+ "max_steps": 939,
945
+ "num_input_tokens_seen": 0,
946
+ "num_train_epochs": 3,
947
+ "save_steps": 500,
948
+ "stateful_callbacks": {
949
+ "TrainerControl": {
950
+ "args": {
951
+ "should_epoch_stop": false,
952
+ "should_evaluate": false,
953
+ "should_log": false,
954
+ "should_save": true,
955
+ "should_training_stop": true
956
+ },
957
+ "attributes": {}
958
+ }
959
+ },
960
+ "total_flos": 2.4584794460995584e+17,
961
+ "train_batch_size": 2,
962
+ "trial_name": null,
963
+ "trial_params": null
964
+ }
davinci/checkpoint-939/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f21cb0f4416a41acd8ff9feb8c0f995a14287a039f7c3dc536cda4414e290f8
3
+ size 5585
davinci/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
davinci/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
+ }