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

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -46,3 +46,6 @@ 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
 
 
 
 
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
49
+ quantum/checkpoint-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
50
+ quantum/checkpoint-750/tokenizer.json filter=lfs diff=lfs merge=lfs -text
51
+ quantum/tokenizer.json filter=lfs diff=lfs merge=lfs -text
quantum/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: quantum
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 quantum
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
+ ```
quantum/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
+ }
quantum/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daba59d3101ca1d0b42077187173d137c7894ff810c91e08e276ae0b3877bab9
3
+ size 27297544
quantum/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 %}
quantum/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
quantum/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
+ }
quantum/checkpoint-500/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5fbff570532ef2ed5d1c567a87f04e2d774adc879a14b0f8b99b24240875d5c
3
+ size 27297544
quantum/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 %}
quantum/checkpoint-500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:548cd71d3acb628e49e4978c5d4f6e94a0670c6c4bcf1b1754c6802844387f10
3
+ size 54745547
quantum/checkpoint-500/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f236a9c3350a4934ac64660483579d1ba3f9c41841ad20be10061a453545498d
3
+ size 14645
quantum/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
quantum/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
quantum/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
+ }
quantum/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.656589758396149,
14
+ "epoch": 0.04,
15
+ "grad_norm": 0.2294921875,
16
+ "learning_rate": 7.82608695652174e-05,
17
+ "loss": 2.784135627746582,
18
+ "mean_token_accuracy": 0.47858900427818296,
19
+ "num_tokens": 58831.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 2.130512335896492,
24
+ "epoch": 0.08,
25
+ "grad_norm": 0.314453125,
26
+ "learning_rate": 0.00016521739130434784,
27
+ "loss": 2.2649614334106447,
28
+ "mean_token_accuracy": 0.5313303798437119,
29
+ "num_tokens": 117426.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.6294835805892944,
34
+ "epoch": 0.12,
35
+ "grad_norm": 0.287109375,
36
+ "learning_rate": 0.00019834938101788172,
37
+ "loss": 1.5735199928283692,
38
+ "mean_token_accuracy": 0.6429987847805023,
39
+ "num_tokens": 176834.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.1312334761023521,
44
+ "epoch": 0.16,
45
+ "grad_norm": 0.294921875,
46
+ "learning_rate": 0.00019559834938101788,
47
+ "loss": 1.0732216835021973,
48
+ "mean_token_accuracy": 0.7459557801485062,
49
+ "num_tokens": 236514.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.8465340793132782,
54
+ "epoch": 0.2,
55
+ "grad_norm": 0.302734375,
56
+ "learning_rate": 0.00019284731774415407,
57
+ "loss": 0.785353136062622,
58
+ "mean_token_accuracy": 0.8123098656535148,
59
+ "num_tokens": 296192.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.5795673660933971,
64
+ "epoch": 0.24,
65
+ "grad_norm": 0.359375,
66
+ "learning_rate": 0.00019009628610729023,
67
+ "loss": 0.5051940441131592,
68
+ "mean_token_accuracy": 0.8781622618436813,
69
+ "num_tokens": 355215.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.40687272399663926,
74
+ "epoch": 0.28,
75
+ "grad_norm": 0.314453125,
76
+ "learning_rate": 0.00018734525447042642,
77
+ "loss": 0.33609719276428224,
78
+ "mean_token_accuracy": 0.9220139101147652,
79
+ "num_tokens": 414445.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.2907550849020481,
84
+ "epoch": 0.32,
85
+ "grad_norm": 0.27734375,
86
+ "learning_rate": 0.0001845942228335626,
87
+ "loss": 0.2400279998779297,
88
+ "mean_token_accuracy": 0.946020171046257,
89
+ "num_tokens": 472587.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.20616337098181248,
94
+ "epoch": 0.36,
95
+ "grad_norm": 0.384765625,
96
+ "learning_rate": 0.00018184319119669877,
97
+ "loss": 0.16702178716659546,
98
+ "mean_token_accuracy": 0.9592987820506096,
99
+ "num_tokens": 531382.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.1737002834677696,
104
+ "epoch": 0.4,
105
+ "grad_norm": 0.21875,
106
+ "learning_rate": 0.00017909215955983493,
107
+ "loss": 0.1450087308883667,
108
+ "mean_token_accuracy": 0.9636144921183586,
109
+ "num_tokens": 590952.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.15012313090264798,
114
+ "epoch": 0.44,
115
+ "grad_norm": 0.1337890625,
116
+ "learning_rate": 0.00017634112792297112,
117
+ "loss": 0.12923150062561034,
118
+ "mean_token_accuracy": 0.9657299771904946,
119
+ "num_tokens": 649294.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.1399887653067708,
124
+ "epoch": 0.48,
125
+ "grad_norm": 0.1630859375,
126
+ "learning_rate": 0.00017359009628610728,
127
+ "loss": 0.11557692289352417,
128
+ "mean_token_accuracy": 0.9665726378560067,
129
+ "num_tokens": 707250.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.13480644691735505,
134
+ "epoch": 0.52,
135
+ "grad_norm": 0.1328125,
136
+ "learning_rate": 0.00017083906464924347,
137
+ "loss": 0.10591565370559693,
138
+ "mean_token_accuracy": 0.96910200715065,
139
+ "num_tokens": 765329.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.1241924112662673,
144
+ "epoch": 0.56,
145
+ "grad_norm": 0.1484375,
146
+ "learning_rate": 0.00016808803301237966,
147
+ "loss": 0.10353405475616455,
148
+ "mean_token_accuracy": 0.9683606043457985,
149
+ "num_tokens": 824273.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.11277825795114041,
154
+ "epoch": 0.6,
155
+ "grad_norm": 0.10986328125,
156
+ "learning_rate": 0.00016533700137551582,
157
+ "loss": 0.09382225871086121,
158
+ "mean_token_accuracy": 0.9702155590057373,
159
+ "num_tokens": 882872.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.10969954002648592,
164
+ "epoch": 0.64,
165
+ "grad_norm": 0.134765625,
166
+ "learning_rate": 0.000162585969738652,
167
+ "loss": 0.09240695238113403,
168
+ "mean_token_accuracy": 0.9704399675130844,
169
+ "num_tokens": 940980.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.10195165053009987,
174
+ "epoch": 0.68,
175
+ "grad_norm": 0.11181640625,
176
+ "learning_rate": 0.00015983493810178817,
177
+ "loss": 0.08729770183563232,
178
+ "mean_token_accuracy": 0.971330963075161,
179
+ "num_tokens": 999648.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.10189895406365394,
184
+ "epoch": 0.72,
185
+ "grad_norm": 0.134765625,
186
+ "learning_rate": 0.00015708390646492434,
187
+ "loss": 0.08697207570075989,
188
+ "mean_token_accuracy": 0.9706669732928276,
189
+ "num_tokens": 1058258.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.0982053680345416,
194
+ "epoch": 0.76,
195
+ "grad_norm": 0.146484375,
196
+ "learning_rate": 0.00015433287482806052,
197
+ "loss": 0.08617557287216186,
198
+ "mean_token_accuracy": 0.9712221831083298,
199
+ "num_tokens": 1116552.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.09435265585780143,
204
+ "epoch": 0.8,
205
+ "grad_norm": 0.1064453125,
206
+ "learning_rate": 0.0001515818431911967,
207
+ "loss": 0.0837143063545227,
208
+ "mean_token_accuracy": 0.9719299852848053,
209
+ "num_tokens": 1176273.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.09587750304490328,
214
+ "epoch": 0.84,
215
+ "grad_norm": 0.07958984375,
216
+ "learning_rate": 0.00014883081155433287,
217
+ "loss": 0.08407689332962036,
218
+ "mean_token_accuracy": 0.971569187939167,
219
+ "num_tokens": 1235151.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.0908985884860158,
224
+ "epoch": 0.88,
225
+ "grad_norm": 0.07421875,
226
+ "learning_rate": 0.00014607977991746906,
227
+ "loss": 0.08094486594200134,
228
+ "mean_token_accuracy": 0.9715604752302169,
229
+ "num_tokens": 1294009.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.08810036238282919,
234
+ "epoch": 0.92,
235
+ "grad_norm": 0.09326171875,
236
+ "learning_rate": 0.00014332874828060522,
237
+ "loss": 0.08071699142456054,
238
+ "mean_token_accuracy": 0.9727177411317826,
239
+ "num_tokens": 1352581.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "entropy": 0.09025063011795283,
244
+ "epoch": 0.96,
245
+ "grad_norm": 0.11279296875,
246
+ "learning_rate": 0.0001405777166437414,
247
+ "loss": 0.07819713950157166,
248
+ "mean_token_accuracy": 0.9728495046496392,
249
+ "num_tokens": 1411471.0,
250
+ "step": 240
251
+ },
252
+ {
253
+ "entropy": 0.08711748849600554,
254
+ "epoch": 1.0,
255
+ "grad_norm": 0.10888671875,
256
+ "learning_rate": 0.00013782668500687757,
257
+ "loss": 0.07690830826759339,
258
+ "mean_token_accuracy": 0.9727286458015442,
259
+ "num_tokens": 1470323.0,
260
+ "step": 250
261
+ },
262
+ {
263
+ "entropy": 0.08317579198628663,
264
+ "epoch": 1.04,
265
+ "grad_norm": 0.11376953125,
266
+ "learning_rate": 0.00013507565337001376,
267
+ "loss": 0.07629346251487731,
268
+ "mean_token_accuracy": 0.9728547275066376,
269
+ "num_tokens": 1528025.0,
270
+ "step": 260
271
+ },
272
+ {
273
+ "entropy": 0.08498188965022564,
274
+ "epoch": 1.08,
275
+ "grad_norm": 0.08984375,
276
+ "learning_rate": 0.00013232462173314995,
277
+ "loss": 0.0764327347278595,
278
+ "mean_token_accuracy": 0.9724415943026543,
279
+ "num_tokens": 1586684.0,
280
+ "step": 270
281
+ },
282
+ {
283
+ "entropy": 0.0807153021916747,
284
+ "epoch": 1.12,
285
+ "grad_norm": 0.087890625,
286
+ "learning_rate": 0.0001295735900962861,
287
+ "loss": 0.07380666732788085,
288
+ "mean_token_accuracy": 0.9741398721933365,
289
+ "num_tokens": 1645327.0,
290
+ "step": 280
291
+ },
292
+ {
293
+ "entropy": 0.08144337944686413,
294
+ "epoch": 1.16,
295
+ "grad_norm": 0.09033203125,
296
+ "learning_rate": 0.00012682255845942227,
297
+ "loss": 0.07288264632225036,
298
+ "mean_token_accuracy": 0.9744224503636361,
299
+ "num_tokens": 1704753.0,
300
+ "step": 290
301
+ },
302
+ {
303
+ "entropy": 0.07854557279497384,
304
+ "epoch": 1.2,
305
+ "grad_norm": 0.07763671875,
306
+ "learning_rate": 0.00012407152682255846,
307
+ "loss": 0.07169762253761292,
308
+ "mean_token_accuracy": 0.9740740984678269,
309
+ "num_tokens": 1764019.0,
310
+ "step": 300
311
+ },
312
+ {
313
+ "entropy": 0.07972831521183252,
314
+ "epoch": 1.24,
315
+ "grad_norm": 0.06005859375,
316
+ "learning_rate": 0.00012132049518569464,
317
+ "loss": 0.07355321049690247,
318
+ "mean_token_accuracy": 0.9732201337814331,
319
+ "num_tokens": 1823105.0,
320
+ "step": 310
321
+ },
322
+ {
323
+ "entropy": 0.08080395516008139,
324
+ "epoch": 1.28,
325
+ "grad_norm": 0.08056640625,
326
+ "learning_rate": 0.00011856946354883083,
327
+ "loss": 0.0732525646686554,
328
+ "mean_token_accuracy": 0.9736150786280632,
329
+ "num_tokens": 1881613.0,
330
+ "step": 320
331
+ },
332
+ {
333
+ "entropy": 0.07835352420806885,
334
+ "epoch": 1.32,
335
+ "grad_norm": 0.0966796875,
336
+ "learning_rate": 0.000115818431911967,
337
+ "loss": 0.07361866235733032,
338
+ "mean_token_accuracy": 0.9739573955535888,
339
+ "num_tokens": 1939954.0,
340
+ "step": 330
341
+ },
342
+ {
343
+ "entropy": 0.07962071467190981,
344
+ "epoch": 1.3599999999999999,
345
+ "grad_norm": 0.1142578125,
346
+ "learning_rate": 0.00011306740027510316,
347
+ "loss": 0.07115083336830139,
348
+ "mean_token_accuracy": 0.9738854169845581,
349
+ "num_tokens": 1999104.0,
350
+ "step": 340
351
+ },
352
+ {
353
+ "entropy": 0.07753032837063074,
354
+ "epoch": 1.4,
355
+ "grad_norm": 0.1376953125,
356
+ "learning_rate": 0.00011031636863823935,
357
+ "loss": 0.07132790684700012,
358
+ "mean_token_accuracy": 0.9740729615092277,
359
+ "num_tokens": 2058086.0,
360
+ "step": 350
361
+ },
362
+ {
363
+ "entropy": 0.07756854929029941,
364
+ "epoch": 1.44,
365
+ "grad_norm": 0.06201171875,
366
+ "learning_rate": 0.00010756533700137553,
367
+ "loss": 0.07140335440635681,
368
+ "mean_token_accuracy": 0.9735552534461022,
369
+ "num_tokens": 2116832.0,
370
+ "step": 360
371
+ },
372
+ {
373
+ "entropy": 0.07727070953696966,
374
+ "epoch": 1.48,
375
+ "grad_norm": 0.056396484375,
376
+ "learning_rate": 0.00010481430536451169,
377
+ "loss": 0.0708472490310669,
378
+ "mean_token_accuracy": 0.9730932384729385,
379
+ "num_tokens": 2175363.0,
380
+ "step": 370
381
+ },
382
+ {
383
+ "entropy": 0.07725130897015334,
384
+ "epoch": 1.52,
385
+ "grad_norm": 0.0908203125,
386
+ "learning_rate": 0.00010206327372764788,
387
+ "loss": 0.0706408977508545,
388
+ "mean_token_accuracy": 0.9745364651083946,
389
+ "num_tokens": 2234249.0,
390
+ "step": 380
391
+ },
392
+ {
393
+ "entropy": 0.07416967656463384,
394
+ "epoch": 1.56,
395
+ "grad_norm": 0.0556640625,
396
+ "learning_rate": 9.931224209078405e-05,
397
+ "loss": 0.07005369067192077,
398
+ "mean_token_accuracy": 0.9741830781102181,
399
+ "num_tokens": 2293472.0,
400
+ "step": 390
401
+ },
402
+ {
403
+ "entropy": 0.07707195524126291,
404
+ "epoch": 1.6,
405
+ "grad_norm": 0.10498046875,
406
+ "learning_rate": 9.656121045392023e-05,
407
+ "loss": 0.07068833112716674,
408
+ "mean_token_accuracy": 0.9736332967877388,
409
+ "num_tokens": 2352115.0,
410
+ "step": 400
411
+ },
412
+ {
413
+ "entropy": 0.07442550137639045,
414
+ "epoch": 1.6400000000000001,
415
+ "grad_norm": 0.05322265625,
416
+ "learning_rate": 9.38101788170564e-05,
417
+ "loss": 0.06983445286750793,
418
+ "mean_token_accuracy": 0.9745775699615479,
419
+ "num_tokens": 2410823.0,
420
+ "step": 410
421
+ },
422
+ {
423
+ "entropy": 0.07408876791596412,
424
+ "epoch": 1.6800000000000002,
425
+ "grad_norm": 0.056396484375,
426
+ "learning_rate": 9.105914718019258e-05,
427
+ "loss": 0.0696213722229004,
428
+ "mean_token_accuracy": 0.9745879158377647,
429
+ "num_tokens": 2469755.0,
430
+ "step": 420
431
+ },
432
+ {
433
+ "entropy": 0.07369720749557018,
434
+ "epoch": 1.72,
435
+ "grad_norm": 0.06982421875,
436
+ "learning_rate": 8.830811554332875e-05,
437
+ "loss": 0.0684428870677948,
438
+ "mean_token_accuracy": 0.974769426882267,
439
+ "num_tokens": 2529125.0,
440
+ "step": 430
441
+ },
442
+ {
443
+ "entropy": 0.07348712086677552,
444
+ "epoch": 1.76,
445
+ "grad_norm": 0.050048828125,
446
+ "learning_rate": 8.555708390646493e-05,
447
+ "loss": 0.06892426013946533,
448
+ "mean_token_accuracy": 0.9747400760650635,
449
+ "num_tokens": 2588493.0,
450
+ "step": 440
451
+ },
452
+ {
453
+ "entropy": 0.07465939875692129,
454
+ "epoch": 1.8,
455
+ "grad_norm": 0.0595703125,
456
+ "learning_rate": 8.28060522696011e-05,
457
+ "loss": 0.07028486132621765,
458
+ "mean_token_accuracy": 0.9742415577173233,
459
+ "num_tokens": 2646682.0,
460
+ "step": 450
461
+ },
462
+ {
463
+ "entropy": 0.07388942837715148,
464
+ "epoch": 1.8399999999999999,
465
+ "grad_norm": 0.054931640625,
466
+ "learning_rate": 8.005502063273728e-05,
467
+ "loss": 0.06874784231185913,
468
+ "mean_token_accuracy": 0.9752144053578377,
469
+ "num_tokens": 2705754.0,
470
+ "step": 460
471
+ },
472
+ {
473
+ "entropy": 0.07370481453835964,
474
+ "epoch": 1.88,
475
+ "grad_norm": 0.055908203125,
476
+ "learning_rate": 7.730398899587345e-05,
477
+ "loss": 0.06871609091758728,
478
+ "mean_token_accuracy": 0.9748002246022225,
479
+ "num_tokens": 2764663.0,
480
+ "step": 470
481
+ },
482
+ {
483
+ "entropy": 0.07374548772349954,
484
+ "epoch": 1.92,
485
+ "grad_norm": 0.0751953125,
486
+ "learning_rate": 7.455295735900963e-05,
487
+ "loss": 0.06881117820739746,
488
+ "mean_token_accuracy": 0.9741248309612274,
489
+ "num_tokens": 2823742.0,
490
+ "step": 480
491
+ },
492
+ {
493
+ "entropy": 0.07451288178563117,
494
+ "epoch": 1.96,
495
+ "grad_norm": 0.051513671875,
496
+ "learning_rate": 7.180192572214582e-05,
497
+ "loss": 0.06924532651901245,
498
+ "mean_token_accuracy": 0.9737852603197098,
499
+ "num_tokens": 2882364.0,
500
+ "step": 490
501
+ },
502
+ {
503
+ "entropy": 0.07393263652920723,
504
+ "epoch": 2.0,
505
+ "grad_norm": 0.06005859375,
506
+ "learning_rate": 6.905089408528198e-05,
507
+ "loss": 0.06974378228187561,
508
+ "mean_token_accuracy": 0.9740638837218285,
509
+ "num_tokens": 2940646.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.3795263376785408e+17,
531
+ "train_batch_size": 2,
532
+ "trial_name": null,
533
+ "trial_params": null
534
+ }
quantum/checkpoint-500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23936680c6aa38f0881055cbef17d9546ee79c0924110452d372c113f99cdf46
3
+ size 5585
quantum/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
quantum/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
+ }
quantum/checkpoint-750/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daba59d3101ca1d0b42077187173d137c7894ff810c91e08e276ae0b3877bab9
3
+ size 27297544
quantum/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 %}
quantum/checkpoint-750/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42c07086c1dda039753f67fade8e8997c07ba71e4fe4c252d117c94550fb5f17
3
+ size 54745547
quantum/checkpoint-750/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cbfb3f2d3b1c9994c5639fcf9b72501475c561bb11054c488d64ac9b0eae140
3
+ size 14645
quantum/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
quantum/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
quantum/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
+ }
quantum/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.656589758396149,
14
+ "epoch": 0.04,
15
+ "grad_norm": 0.2294921875,
16
+ "learning_rate": 7.82608695652174e-05,
17
+ "loss": 2.784135627746582,
18
+ "mean_token_accuracy": 0.47858900427818296,
19
+ "num_tokens": 58831.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 2.130512335896492,
24
+ "epoch": 0.08,
25
+ "grad_norm": 0.314453125,
26
+ "learning_rate": 0.00016521739130434784,
27
+ "loss": 2.2649614334106447,
28
+ "mean_token_accuracy": 0.5313303798437119,
29
+ "num_tokens": 117426.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 1.6294835805892944,
34
+ "epoch": 0.12,
35
+ "grad_norm": 0.287109375,
36
+ "learning_rate": 0.00019834938101788172,
37
+ "loss": 1.5735199928283692,
38
+ "mean_token_accuracy": 0.6429987847805023,
39
+ "num_tokens": 176834.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.1312334761023521,
44
+ "epoch": 0.16,
45
+ "grad_norm": 0.294921875,
46
+ "learning_rate": 0.00019559834938101788,
47
+ "loss": 1.0732216835021973,
48
+ "mean_token_accuracy": 0.7459557801485062,
49
+ "num_tokens": 236514.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 0.8465340793132782,
54
+ "epoch": 0.2,
55
+ "grad_norm": 0.302734375,
56
+ "learning_rate": 0.00019284731774415407,
57
+ "loss": 0.785353136062622,
58
+ "mean_token_accuracy": 0.8123098656535148,
59
+ "num_tokens": 296192.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.5795673660933971,
64
+ "epoch": 0.24,
65
+ "grad_norm": 0.359375,
66
+ "learning_rate": 0.00019009628610729023,
67
+ "loss": 0.5051940441131592,
68
+ "mean_token_accuracy": 0.8781622618436813,
69
+ "num_tokens": 355215.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.40687272399663926,
74
+ "epoch": 0.28,
75
+ "grad_norm": 0.314453125,
76
+ "learning_rate": 0.00018734525447042642,
77
+ "loss": 0.33609719276428224,
78
+ "mean_token_accuracy": 0.9220139101147652,
79
+ "num_tokens": 414445.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.2907550849020481,
84
+ "epoch": 0.32,
85
+ "grad_norm": 0.27734375,
86
+ "learning_rate": 0.0001845942228335626,
87
+ "loss": 0.2400279998779297,
88
+ "mean_token_accuracy": 0.946020171046257,
89
+ "num_tokens": 472587.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.20616337098181248,
94
+ "epoch": 0.36,
95
+ "grad_norm": 0.384765625,
96
+ "learning_rate": 0.00018184319119669877,
97
+ "loss": 0.16702178716659546,
98
+ "mean_token_accuracy": 0.9592987820506096,
99
+ "num_tokens": 531382.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.1737002834677696,
104
+ "epoch": 0.4,
105
+ "grad_norm": 0.21875,
106
+ "learning_rate": 0.00017909215955983493,
107
+ "loss": 0.1450087308883667,
108
+ "mean_token_accuracy": 0.9636144921183586,
109
+ "num_tokens": 590952.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.15012313090264798,
114
+ "epoch": 0.44,
115
+ "grad_norm": 0.1337890625,
116
+ "learning_rate": 0.00017634112792297112,
117
+ "loss": 0.12923150062561034,
118
+ "mean_token_accuracy": 0.9657299771904946,
119
+ "num_tokens": 649294.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.1399887653067708,
124
+ "epoch": 0.48,
125
+ "grad_norm": 0.1630859375,
126
+ "learning_rate": 0.00017359009628610728,
127
+ "loss": 0.11557692289352417,
128
+ "mean_token_accuracy": 0.9665726378560067,
129
+ "num_tokens": 707250.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.13480644691735505,
134
+ "epoch": 0.52,
135
+ "grad_norm": 0.1328125,
136
+ "learning_rate": 0.00017083906464924347,
137
+ "loss": 0.10591565370559693,
138
+ "mean_token_accuracy": 0.96910200715065,
139
+ "num_tokens": 765329.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.1241924112662673,
144
+ "epoch": 0.56,
145
+ "grad_norm": 0.1484375,
146
+ "learning_rate": 0.00016808803301237966,
147
+ "loss": 0.10353405475616455,
148
+ "mean_token_accuracy": 0.9683606043457985,
149
+ "num_tokens": 824273.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.11277825795114041,
154
+ "epoch": 0.6,
155
+ "grad_norm": 0.10986328125,
156
+ "learning_rate": 0.00016533700137551582,
157
+ "loss": 0.09382225871086121,
158
+ "mean_token_accuracy": 0.9702155590057373,
159
+ "num_tokens": 882872.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.10969954002648592,
164
+ "epoch": 0.64,
165
+ "grad_norm": 0.134765625,
166
+ "learning_rate": 0.000162585969738652,
167
+ "loss": 0.09240695238113403,
168
+ "mean_token_accuracy": 0.9704399675130844,
169
+ "num_tokens": 940980.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.10195165053009987,
174
+ "epoch": 0.68,
175
+ "grad_norm": 0.11181640625,
176
+ "learning_rate": 0.00015983493810178817,
177
+ "loss": 0.08729770183563232,
178
+ "mean_token_accuracy": 0.971330963075161,
179
+ "num_tokens": 999648.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.10189895406365394,
184
+ "epoch": 0.72,
185
+ "grad_norm": 0.134765625,
186
+ "learning_rate": 0.00015708390646492434,
187
+ "loss": 0.08697207570075989,
188
+ "mean_token_accuracy": 0.9706669732928276,
189
+ "num_tokens": 1058258.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.0982053680345416,
194
+ "epoch": 0.76,
195
+ "grad_norm": 0.146484375,
196
+ "learning_rate": 0.00015433287482806052,
197
+ "loss": 0.08617557287216186,
198
+ "mean_token_accuracy": 0.9712221831083298,
199
+ "num_tokens": 1116552.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.09435265585780143,
204
+ "epoch": 0.8,
205
+ "grad_norm": 0.1064453125,
206
+ "learning_rate": 0.0001515818431911967,
207
+ "loss": 0.0837143063545227,
208
+ "mean_token_accuracy": 0.9719299852848053,
209
+ "num_tokens": 1176273.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.09587750304490328,
214
+ "epoch": 0.84,
215
+ "grad_norm": 0.07958984375,
216
+ "learning_rate": 0.00014883081155433287,
217
+ "loss": 0.08407689332962036,
218
+ "mean_token_accuracy": 0.971569187939167,
219
+ "num_tokens": 1235151.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.0908985884860158,
224
+ "epoch": 0.88,
225
+ "grad_norm": 0.07421875,
226
+ "learning_rate": 0.00014607977991746906,
227
+ "loss": 0.08094486594200134,
228
+ "mean_token_accuracy": 0.9715604752302169,
229
+ "num_tokens": 1294009.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.08810036238282919,
234
+ "epoch": 0.92,
235
+ "grad_norm": 0.09326171875,
236
+ "learning_rate": 0.00014332874828060522,
237
+ "loss": 0.08071699142456054,
238
+ "mean_token_accuracy": 0.9727177411317826,
239
+ "num_tokens": 1352581.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "entropy": 0.09025063011795283,
244
+ "epoch": 0.96,
245
+ "grad_norm": 0.11279296875,
246
+ "learning_rate": 0.0001405777166437414,
247
+ "loss": 0.07819713950157166,
248
+ "mean_token_accuracy": 0.9728495046496392,
249
+ "num_tokens": 1411471.0,
250
+ "step": 240
251
+ },
252
+ {
253
+ "entropy": 0.08711748849600554,
254
+ "epoch": 1.0,
255
+ "grad_norm": 0.10888671875,
256
+ "learning_rate": 0.00013782668500687757,
257
+ "loss": 0.07690830826759339,
258
+ "mean_token_accuracy": 0.9727286458015442,
259
+ "num_tokens": 1470323.0,
260
+ "step": 250
261
+ },
262
+ {
263
+ "entropy": 0.08317579198628663,
264
+ "epoch": 1.04,
265
+ "grad_norm": 0.11376953125,
266
+ "learning_rate": 0.00013507565337001376,
267
+ "loss": 0.07629346251487731,
268
+ "mean_token_accuracy": 0.9728547275066376,
269
+ "num_tokens": 1528025.0,
270
+ "step": 260
271
+ },
272
+ {
273
+ "entropy": 0.08498188965022564,
274
+ "epoch": 1.08,
275
+ "grad_norm": 0.08984375,
276
+ "learning_rate": 0.00013232462173314995,
277
+ "loss": 0.0764327347278595,
278
+ "mean_token_accuracy": 0.9724415943026543,
279
+ "num_tokens": 1586684.0,
280
+ "step": 270
281
+ },
282
+ {
283
+ "entropy": 0.0807153021916747,
284
+ "epoch": 1.12,
285
+ "grad_norm": 0.087890625,
286
+ "learning_rate": 0.0001295735900962861,
287
+ "loss": 0.07380666732788085,
288
+ "mean_token_accuracy": 0.9741398721933365,
289
+ "num_tokens": 1645327.0,
290
+ "step": 280
291
+ },
292
+ {
293
+ "entropy": 0.08144337944686413,
294
+ "epoch": 1.16,
295
+ "grad_norm": 0.09033203125,
296
+ "learning_rate": 0.00012682255845942227,
297
+ "loss": 0.07288264632225036,
298
+ "mean_token_accuracy": 0.9744224503636361,
299
+ "num_tokens": 1704753.0,
300
+ "step": 290
301
+ },
302
+ {
303
+ "entropy": 0.07854557279497384,
304
+ "epoch": 1.2,
305
+ "grad_norm": 0.07763671875,
306
+ "learning_rate": 0.00012407152682255846,
307
+ "loss": 0.07169762253761292,
308
+ "mean_token_accuracy": 0.9740740984678269,
309
+ "num_tokens": 1764019.0,
310
+ "step": 300
311
+ },
312
+ {
313
+ "entropy": 0.07972831521183252,
314
+ "epoch": 1.24,
315
+ "grad_norm": 0.06005859375,
316
+ "learning_rate": 0.00012132049518569464,
317
+ "loss": 0.07355321049690247,
318
+ "mean_token_accuracy": 0.9732201337814331,
319
+ "num_tokens": 1823105.0,
320
+ "step": 310
321
+ },
322
+ {
323
+ "entropy": 0.08080395516008139,
324
+ "epoch": 1.28,
325
+ "grad_norm": 0.08056640625,
326
+ "learning_rate": 0.00011856946354883083,
327
+ "loss": 0.0732525646686554,
328
+ "mean_token_accuracy": 0.9736150786280632,
329
+ "num_tokens": 1881613.0,
330
+ "step": 320
331
+ },
332
+ {
333
+ "entropy": 0.07835352420806885,
334
+ "epoch": 1.32,
335
+ "grad_norm": 0.0966796875,
336
+ "learning_rate": 0.000115818431911967,
337
+ "loss": 0.07361866235733032,
338
+ "mean_token_accuracy": 0.9739573955535888,
339
+ "num_tokens": 1939954.0,
340
+ "step": 330
341
+ },
342
+ {
343
+ "entropy": 0.07962071467190981,
344
+ "epoch": 1.3599999999999999,
345
+ "grad_norm": 0.1142578125,
346
+ "learning_rate": 0.00011306740027510316,
347
+ "loss": 0.07115083336830139,
348
+ "mean_token_accuracy": 0.9738854169845581,
349
+ "num_tokens": 1999104.0,
350
+ "step": 340
351
+ },
352
+ {
353
+ "entropy": 0.07753032837063074,
354
+ "epoch": 1.4,
355
+ "grad_norm": 0.1376953125,
356
+ "learning_rate": 0.00011031636863823935,
357
+ "loss": 0.07132790684700012,
358
+ "mean_token_accuracy": 0.9740729615092277,
359
+ "num_tokens": 2058086.0,
360
+ "step": 350
361
+ },
362
+ {
363
+ "entropy": 0.07756854929029941,
364
+ "epoch": 1.44,
365
+ "grad_norm": 0.06201171875,
366
+ "learning_rate": 0.00010756533700137553,
367
+ "loss": 0.07140335440635681,
368
+ "mean_token_accuracy": 0.9735552534461022,
369
+ "num_tokens": 2116832.0,
370
+ "step": 360
371
+ },
372
+ {
373
+ "entropy": 0.07727070953696966,
374
+ "epoch": 1.48,
375
+ "grad_norm": 0.056396484375,
376
+ "learning_rate": 0.00010481430536451169,
377
+ "loss": 0.0708472490310669,
378
+ "mean_token_accuracy": 0.9730932384729385,
379
+ "num_tokens": 2175363.0,
380
+ "step": 370
381
+ },
382
+ {
383
+ "entropy": 0.07725130897015334,
384
+ "epoch": 1.52,
385
+ "grad_norm": 0.0908203125,
386
+ "learning_rate": 0.00010206327372764788,
387
+ "loss": 0.0706408977508545,
388
+ "mean_token_accuracy": 0.9745364651083946,
389
+ "num_tokens": 2234249.0,
390
+ "step": 380
391
+ },
392
+ {
393
+ "entropy": 0.07416967656463384,
394
+ "epoch": 1.56,
395
+ "grad_norm": 0.0556640625,
396
+ "learning_rate": 9.931224209078405e-05,
397
+ "loss": 0.07005369067192077,
398
+ "mean_token_accuracy": 0.9741830781102181,
399
+ "num_tokens": 2293472.0,
400
+ "step": 390
401
+ },
402
+ {
403
+ "entropy": 0.07707195524126291,
404
+ "epoch": 1.6,
405
+ "grad_norm": 0.10498046875,
406
+ "learning_rate": 9.656121045392023e-05,
407
+ "loss": 0.07068833112716674,
408
+ "mean_token_accuracy": 0.9736332967877388,
409
+ "num_tokens": 2352115.0,
410
+ "step": 400
411
+ },
412
+ {
413
+ "entropy": 0.07442550137639045,
414
+ "epoch": 1.6400000000000001,
415
+ "grad_norm": 0.05322265625,
416
+ "learning_rate": 9.38101788170564e-05,
417
+ "loss": 0.06983445286750793,
418
+ "mean_token_accuracy": 0.9745775699615479,
419
+ "num_tokens": 2410823.0,
420
+ "step": 410
421
+ },
422
+ {
423
+ "entropy": 0.07408876791596412,
424
+ "epoch": 1.6800000000000002,
425
+ "grad_norm": 0.056396484375,
426
+ "learning_rate": 9.105914718019258e-05,
427
+ "loss": 0.0696213722229004,
428
+ "mean_token_accuracy": 0.9745879158377647,
429
+ "num_tokens": 2469755.0,
430
+ "step": 420
431
+ },
432
+ {
433
+ "entropy": 0.07369720749557018,
434
+ "epoch": 1.72,
435
+ "grad_norm": 0.06982421875,
436
+ "learning_rate": 8.830811554332875e-05,
437
+ "loss": 0.0684428870677948,
438
+ "mean_token_accuracy": 0.974769426882267,
439
+ "num_tokens": 2529125.0,
440
+ "step": 430
441
+ },
442
+ {
443
+ "entropy": 0.07348712086677552,
444
+ "epoch": 1.76,
445
+ "grad_norm": 0.050048828125,
446
+ "learning_rate": 8.555708390646493e-05,
447
+ "loss": 0.06892426013946533,
448
+ "mean_token_accuracy": 0.9747400760650635,
449
+ "num_tokens": 2588493.0,
450
+ "step": 440
451
+ },
452
+ {
453
+ "entropy": 0.07465939875692129,
454
+ "epoch": 1.8,
455
+ "grad_norm": 0.0595703125,
456
+ "learning_rate": 8.28060522696011e-05,
457
+ "loss": 0.07028486132621765,
458
+ "mean_token_accuracy": 0.9742415577173233,
459
+ "num_tokens": 2646682.0,
460
+ "step": 450
461
+ },
462
+ {
463
+ "entropy": 0.07388942837715148,
464
+ "epoch": 1.8399999999999999,
465
+ "grad_norm": 0.054931640625,
466
+ "learning_rate": 8.005502063273728e-05,
467
+ "loss": 0.06874784231185913,
468
+ "mean_token_accuracy": 0.9752144053578377,
469
+ "num_tokens": 2705754.0,
470
+ "step": 460
471
+ },
472
+ {
473
+ "entropy": 0.07370481453835964,
474
+ "epoch": 1.88,
475
+ "grad_norm": 0.055908203125,
476
+ "learning_rate": 7.730398899587345e-05,
477
+ "loss": 0.06871609091758728,
478
+ "mean_token_accuracy": 0.9748002246022225,
479
+ "num_tokens": 2764663.0,
480
+ "step": 470
481
+ },
482
+ {
483
+ "entropy": 0.07374548772349954,
484
+ "epoch": 1.92,
485
+ "grad_norm": 0.0751953125,
486
+ "learning_rate": 7.455295735900963e-05,
487
+ "loss": 0.06881117820739746,
488
+ "mean_token_accuracy": 0.9741248309612274,
489
+ "num_tokens": 2823742.0,
490
+ "step": 480
491
+ },
492
+ {
493
+ "entropy": 0.07451288178563117,
494
+ "epoch": 1.96,
495
+ "grad_norm": 0.051513671875,
496
+ "learning_rate": 7.180192572214582e-05,
497
+ "loss": 0.06924532651901245,
498
+ "mean_token_accuracy": 0.9737852603197098,
499
+ "num_tokens": 2882364.0,
500
+ "step": 490
501
+ },
502
+ {
503
+ "entropy": 0.07393263652920723,
504
+ "epoch": 2.0,
505
+ "grad_norm": 0.06005859375,
506
+ "learning_rate": 6.905089408528198e-05,
507
+ "loss": 0.06974378228187561,
508
+ "mean_token_accuracy": 0.9740638837218285,
509
+ "num_tokens": 2940646.0,
510
+ "step": 500
511
+ },
512
+ {
513
+ "entropy": 0.07165123773738742,
514
+ "epoch": 2.04,
515
+ "grad_norm": 0.056884765625,
516
+ "learning_rate": 6.629986244841817e-05,
517
+ "loss": 0.06680834889411927,
518
+ "mean_token_accuracy": 0.9748308375477791,
519
+ "num_tokens": 2998916.0,
520
+ "step": 510
521
+ },
522
+ {
523
+ "entropy": 0.07095922846347094,
524
+ "epoch": 2.08,
525
+ "grad_norm": 0.05126953125,
526
+ "learning_rate": 6.354883081155434e-05,
527
+ "loss": 0.06595931053161622,
528
+ "mean_token_accuracy": 0.9754224255681038,
529
+ "num_tokens": 3058365.0,
530
+ "step": 520
531
+ },
532
+ {
533
+ "entropy": 0.0720227850601077,
534
+ "epoch": 2.12,
535
+ "grad_norm": 0.056884765625,
536
+ "learning_rate": 6.0797799174690516e-05,
537
+ "loss": 0.067144775390625,
538
+ "mean_token_accuracy": 0.9746366187930107,
539
+ "num_tokens": 3116986.0,
540
+ "step": 530
541
+ },
542
+ {
543
+ "entropy": 0.07073751464486122,
544
+ "epoch": 2.16,
545
+ "grad_norm": 0.05078125,
546
+ "learning_rate": 5.8046767537826685e-05,
547
+ "loss": 0.06626754403114318,
548
+ "mean_token_accuracy": 0.9748034983873367,
549
+ "num_tokens": 3175913.0,
550
+ "step": 540
551
+ },
552
+ {
553
+ "entropy": 0.07113336315378546,
554
+ "epoch": 2.2,
555
+ "grad_norm": 0.055419921875,
556
+ "learning_rate": 5.5295735900962866e-05,
557
+ "loss": 0.06611629724502563,
558
+ "mean_token_accuracy": 0.9757323890924454,
559
+ "num_tokens": 3234770.0,
560
+ "step": 550
561
+ },
562
+ {
563
+ "entropy": 0.07078722622245551,
564
+ "epoch": 2.24,
565
+ "grad_norm": 0.047119140625,
566
+ "learning_rate": 5.254470426409904e-05,
567
+ "loss": 0.06645765900611877,
568
+ "mean_token_accuracy": 0.9749927267432212,
569
+ "num_tokens": 3293609.0,
570
+ "step": 560
571
+ },
572
+ {
573
+ "entropy": 0.07144544133916497,
574
+ "epoch": 2.2800000000000002,
575
+ "grad_norm": 0.054443359375,
576
+ "learning_rate": 4.9793672627235217e-05,
577
+ "loss": 0.06597168445587158,
578
+ "mean_token_accuracy": 0.9753631532192231,
579
+ "num_tokens": 3352426.0,
580
+ "step": 570
581
+ },
582
+ {
583
+ "entropy": 0.07122885715216398,
584
+ "epoch": 2.32,
585
+ "grad_norm": 0.048095703125,
586
+ "learning_rate": 4.704264099037139e-05,
587
+ "loss": 0.06688882112503051,
588
+ "mean_token_accuracy": 0.9748361185193062,
589
+ "num_tokens": 3411185.0,
590
+ "step": 580
591
+ },
592
+ {
593
+ "entropy": 0.0705800049006939,
594
+ "epoch": 2.36,
595
+ "grad_norm": 0.06640625,
596
+ "learning_rate": 4.429160935350757e-05,
597
+ "loss": 0.06566575169563293,
598
+ "mean_token_accuracy": 0.9755433648824692,
599
+ "num_tokens": 3469959.0,
600
+ "step": 590
601
+ },
602
+ {
603
+ "entropy": 0.07156918346881866,
604
+ "epoch": 2.4,
605
+ "grad_norm": 0.06396484375,
606
+ "learning_rate": 4.154057771664374e-05,
607
+ "loss": 0.06604508757591247,
608
+ "mean_token_accuracy": 0.9750233232975006,
609
+ "num_tokens": 3528922.0,
610
+ "step": 600
611
+ },
612
+ {
613
+ "entropy": 0.07152145858854056,
614
+ "epoch": 2.44,
615
+ "grad_norm": 0.056396484375,
616
+ "learning_rate": 3.8789546079779924e-05,
617
+ "loss": 0.06587186455726624,
618
+ "mean_token_accuracy": 0.9750920787453652,
619
+ "num_tokens": 3587481.0,
620
+ "step": 610
621
+ },
622
+ {
623
+ "entropy": 0.0699362089857459,
624
+ "epoch": 2.48,
625
+ "grad_norm": 0.0517578125,
626
+ "learning_rate": 3.603851444291609e-05,
627
+ "loss": 0.06582777500152588,
628
+ "mean_token_accuracy": 0.9753644019365311,
629
+ "num_tokens": 3646133.0,
630
+ "step": 620
631
+ },
632
+ {
633
+ "entropy": 0.07039630739018321,
634
+ "epoch": 2.52,
635
+ "grad_norm": 0.05517578125,
636
+ "learning_rate": 3.3287482806052274e-05,
637
+ "loss": 0.06508519053459168,
638
+ "mean_token_accuracy": 0.974852642416954,
639
+ "num_tokens": 3704870.0,
640
+ "step": 630
641
+ },
642
+ {
643
+ "entropy": 0.07073354339227081,
644
+ "epoch": 2.56,
645
+ "grad_norm": 0.046142578125,
646
+ "learning_rate": 3.053645116918845e-05,
647
+ "loss": 0.06597902178764344,
648
+ "mean_token_accuracy": 0.9750823274254798,
649
+ "num_tokens": 3763130.0,
650
+ "step": 640
651
+ },
652
+ {
653
+ "entropy": 0.07001532316207885,
654
+ "epoch": 2.6,
655
+ "grad_norm": 0.047607421875,
656
+ "learning_rate": 2.7785419532324624e-05,
657
+ "loss": 0.06426129937171936,
658
+ "mean_token_accuracy": 0.9758271887898445,
659
+ "num_tokens": 3822705.0,
660
+ "step": 650
661
+ },
662
+ {
663
+ "entropy": 0.07013930734246969,
664
+ "epoch": 2.64,
665
+ "grad_norm": 0.06396484375,
666
+ "learning_rate": 2.50343878954608e-05,
667
+ "loss": 0.06570706367492676,
668
+ "mean_token_accuracy": 0.9747341394424438,
669
+ "num_tokens": 3881186.0,
670
+ "step": 660
671
+ },
672
+ {
673
+ "entropy": 0.07004177290946245,
674
+ "epoch": 2.68,
675
+ "grad_norm": 0.058349609375,
676
+ "learning_rate": 2.2283356258596974e-05,
677
+ "loss": 0.06568543314933777,
678
+ "mean_token_accuracy": 0.9752050325274467,
679
+ "num_tokens": 3939850.0,
680
+ "step": 670
681
+ },
682
+ {
683
+ "entropy": 0.07051089331507683,
684
+ "epoch": 2.7199999999999998,
685
+ "grad_norm": 0.05517578125,
686
+ "learning_rate": 1.953232462173315e-05,
687
+ "loss": 0.06640489101409912,
688
+ "mean_token_accuracy": 0.9754770487546921,
689
+ "num_tokens": 3998032.0,
690
+ "step": 680
691
+ },
692
+ {
693
+ "entropy": 0.06977471075952053,
694
+ "epoch": 2.76,
695
+ "grad_norm": 0.052734375,
696
+ "learning_rate": 1.6781292984869327e-05,
697
+ "loss": 0.06518170833587647,
698
+ "mean_token_accuracy": 0.9750692203640938,
699
+ "num_tokens": 4056625.0,
700
+ "step": 690
701
+ },
702
+ {
703
+ "entropy": 0.0697881813161075,
704
+ "epoch": 2.8,
705
+ "grad_norm": 0.0517578125,
706
+ "learning_rate": 1.4030261348005502e-05,
707
+ "loss": 0.06471436619758605,
708
+ "mean_token_accuracy": 0.9756176814436912,
709
+ "num_tokens": 4116174.0,
710
+ "step": 700
711
+ },
712
+ {
713
+ "entropy": 0.07102781580761075,
714
+ "epoch": 2.84,
715
+ "grad_norm": 0.06787109375,
716
+ "learning_rate": 1.127922971114168e-05,
717
+ "loss": 0.06581937670707702,
718
+ "mean_token_accuracy": 0.9749741673469543,
719
+ "num_tokens": 4174286.0,
720
+ "step": 710
721
+ },
722
+ {
723
+ "entropy": 0.07014696691185236,
724
+ "epoch": 2.88,
725
+ "grad_norm": 0.0634765625,
726
+ "learning_rate": 8.528198074277854e-06,
727
+ "loss": 0.0643849492073059,
728
+ "mean_token_accuracy": 0.9756950348615646,
729
+ "num_tokens": 4233470.0,
730
+ "step": 720
731
+ },
732
+ {
733
+ "entropy": 0.06872736243531108,
734
+ "epoch": 2.92,
735
+ "grad_norm": 0.05078125,
736
+ "learning_rate": 5.77716643741403e-06,
737
+ "loss": 0.06423060894012451,
738
+ "mean_token_accuracy": 0.975555220246315,
739
+ "num_tokens": 4292239.0,
740
+ "step": 730
741
+ },
742
+ {
743
+ "entropy": 0.06862422479316592,
744
+ "epoch": 2.96,
745
+ "grad_norm": 0.05615234375,
746
+ "learning_rate": 3.0261348005502065e-06,
747
+ "loss": 0.06354117393493652,
748
+ "mean_token_accuracy": 0.9763716101646424,
749
+ "num_tokens": 4351953.0,
750
+ "step": 740
751
+ },
752
+ {
753
+ "entropy": 0.06982343215495349,
754
+ "epoch": 3.0,
755
+ "grad_norm": 0.0546875,
756
+ "learning_rate": 2.751031636863824e-07,
757
+ "loss": 0.0649968683719635,
758
+ "mean_token_accuracy": 0.9751548632979393,
759
+ "num_tokens": 4410969.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.0699580565315584e+17,
781
+ "train_batch_size": 2,
782
+ "trial_name": null,
783
+ "trial_params": null
784
+ }
quantum/checkpoint-750/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23936680c6aa38f0881055cbef17d9546ee79c0924110452d372c113f99cdf46
3
+ size 5585
quantum/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
quantum/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
+ }