nicholasKluge commited on
Commit
1d42d90
1 Parent(s): 40a671b

Upload 16 files

Browse files
LICENSE.txt ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright Nicholas Kluge Corrêa
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
README.md ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - nicholasKluge/reward-aira-dataset
5
+ language:
6
+ - en
7
+ metrics:
8
+ - accuracy
9
+ library_name: transformers
10
+ pipeline_tag: text-classification
11
+ tags:
12
+ - reward model
13
+ - alignment
14
+ - preference model
15
+ - RLHF
16
+ widget:
17
+ - text: "Por que a ética da IA é importante? [SEP] Quem se importa com a ética da IA? É apenas um monte de reclamações sobre os humanos que criam e usam IA e reclamam do que as máquinas fazem."
18
+ example_title: "Resposta Ruim"
19
+ - text: "Por que a ética da IA é importante? [SEP] O campo da ética da IA se aprofunda nas intrincadas considerações éticas que surgem com relação aos sistemas de IA. Isso inclui o papel da humanidade na criação e implantação desses sistemas, bem como a conduta das próprias máquinas. Em termos gerais, a ética da IA pode ser dividida em duas categorias principais: preocupações com a moralidade das ações humanas em relação à criação e ao uso da IA e preocupações com as implicações morais do comportamento da máquina."
20
+ example_title: "Resposta Boa"
21
+ ---
22
+ # RewardModel (Portuguese)
23
+
24
+ The `RewardModelPT` is a [BERT](https://huggingface.co/neuralmind/bert-base-portuguese-cased) model that can be used to score the quality of a completion for a given prompt.
25
+
26
+ The model was trained with a dataset composed of `prompt`, `prefered_completions`, and `rejected_completions`.
27
+
28
+ These prompt + completions are samples of intruction datasets created via the [Self-Instruct](https://github.com/yizhongw/self-instruct) framework.
29
+
30
+ ## Details
31
+
32
+ - **Size:** 109,038,209 parameters
33
+ - **Dataset:** [Reward-Aira Dataset](https://huggingface.co/datasets/nicholasKluge/reward-aira-dataset)
34
+ - **Language:** Portuguese
35
+ - **Number of Epochs:** 5
36
+ - **Batch size:** 42
37
+ - **Optimizer:** `torch.optim.AdamW`
38
+ - **Learning Rate:** 5e-5
39
+ - **GPU:** 1 NVIDIA A100-SXM4-40GB
40
+ - **Emissions:** 0.23 KgCO2
41
+ - **Total Energy Consumption:** 0.48 kWh
42
+
43
+ | Step|Training Loss|Validation Loss|Accuracy|
44
+ |---|---|---|---|
45
+ | 200 |0.079500|0.043422|0.986357|
46
+ | 400 |0.043400|0.035848|0.986955|
47
+ | 600 |0.037500|0.034161|0.987674|
48
+ | 800 |0.011200|0.039309|0.988511|
49
+ | 1000 |0.008900|0.043876|0.987793|
50
+ | 1200 |0.011700|0.041023|0.989588|
51
+ | 1400 |0.002800|0.055005|0.989588|
52
+ | 1600 |0.001400|0.054428|0.988990|
53
+ | 1800 |0.001100|0.053148|0.989588|
54
+ | 2000 |0.000200|0.058280|0.989469|
55
+ | 2200 |0.000200|0.054245|0.989708|
56
+ | 2400 |0.000200|0.058009|0.989588|
57
+ | 2600 |0.000200|0.059581|0.989349|
58
+ | 2800 |0.001100|0.057820|0.989110|
59
+
60
+ This repository has the notebook used to train this model.
61
+
62
+ ## Usage
63
+
64
+ Here's an example of how to use the `RewardModelPT` to score the quality of a response to a given prompt:
65
+
66
+ ```python
67
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
68
+ import torch
69
+
70
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
71
+
72
+ tokenizer = AutoTokenizer.from_pretrained("nicholasKluge/RewardModelPT")
73
+ rewardModel = AutoModelForSequenceClassification.from_pretrained("nicholasKluge/RewardModelPT")
74
+
75
+ rewardModel.eval()
76
+ rewardModel.to(device)
77
+
78
+ # Define the question and response
79
+ prompt = "Por que a ética da IA é importante?"
80
+ response_good = "O campo da ética da IA se aprofunda nas intrincadas considerações éticas que surgem com relação aos sistemas de IA. Isso inclui o papel da humanidade na criação e implantação desses sistemas, bem como a conduta das próprias máquinas. Em termos gerais, a ética da IA pode ser dividida em duas categorias principais: preocupações com a moralidade das ações humanas em relação à criação e ao uso da IA e preocupações com as implicações morais do comportamento da máquina."
81
+ response_bad = "Quem se importa com a ética da IA? É apenas um monte de reclamações sobre os humanos que criam e usam IA e reclamam do que as máquinas fazem."
82
+
83
+
84
+ # Tokenize the question and response
85
+ tokens_good = tokenizer(prompt, response_good,
86
+ truncation=True,
87
+ max_length=512,
88
+ return_token_type_ids=False,
89
+ return_tensors="pt",
90
+ return_attention_mask=True)
91
+
92
+ tokens_bad = tokenizer(prompt, response_bad,
93
+ truncation=True,
94
+ max_length=512,
95
+ return_token_type_ids=False,
96
+ return_tensors="pt",
97
+ return_attention_mask=True)
98
+
99
+ tokens_good.to(device)
100
+ tokens_bad.to(device)
101
+
102
+ score_good = rewardModel(**tokens_good)[0].item()
103
+ score_bad = rewardModel(**tokens_bad)[0].item()
104
+
105
+ print(f"Question: {prompt} \n")
106
+ print(f"Response 1: {response_good} Score: {score_good:.3f}")
107
+ print(f"Response 2: {response_bad} Score: {score_bad:.3f}")
108
+ ```
109
+
110
+ This will output the following:
111
+
112
+ ```markdown
113
+ >>> Question: Why is AI Ethics important?
114
+
115
+ >>>Response 1: The field of AI Ethics delves deeply into the intricate ethical considerations that arise with respect to AI systems. This includes the role of humanity in creating and deploying these systems, as well as the conduct of machines themselves. Broadly speaking, AI Ethics can be divided into two major categories : concerns surrounding the morality of human actions in relation to creating and using AI, and concerns regarding the moral implications of machine behavior. Score: 4.777
116
+ >>>Response 2: Who cares about AI Ethics? It's just a bunch of whining about humans making and using AI and bitching about what the machines do. Score: -11.582
117
+ ```
118
+
119
+ ## License
120
+
121
+ The `RewardModelPT` is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for more details.
RewardModel.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
RewardModel_emissions.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
2
+ 2023-06-13T19:45:49,RewardModel_emissions,28b84f34-fd57-4f25-961c-9f6528e5c397,4601.62472319603,0.2357451806109479,5.1230857532252777e-05,42.5,151.204,31.30528450012207,0.054317600807878674,0.38820106547692845,0.039978418433687345,0.48249708471849406,Singapore,SGP,,,,Linux-5.15.107+-x86_64-with-glibc2.31,3.10.12,2.2.3,12,Intel(R) Xeon(R) CPU @ 2.20GHz,1,1 x NVIDIA A100-SXM4-40GB,103.8547,1.2929,83.48075866699219,machine,N,1.0
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "neuralmind/bert-base-portuguese-cased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "REWARD"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "REWARD": 0
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 12,
24
+ "num_hidden_layers": 12,
25
+ "output_past": true,
26
+ "pad_token_id": 0,
27
+ "pooler_fc_size": 768,
28
+ "pooler_num_attention_heads": 12,
29
+ "pooler_num_fc_layers": 3,
30
+ "pooler_size_per_head": 128,
31
+ "pooler_type": "first_token_transform",
32
+ "position_embedding_type": "absolute",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.30.1",
35
+ "type_vocab_size": 2,
36
+ "use_cache": true,
37
+ "vocab_size": 29794
38
+ }
emissions.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
2
+ 2023-06-13T19:45:49,codecarbon,2de453b7-7d43-4801-8ca2-4a76c5d1d4e8,4600.945932149887,0.2315601471929047,5.0328812945798606e-05,42.5,151.204,31.30528450012207,0.05430841069701648,0.3796531637740959,0.039970048088527325,0.47393162255963983,Singapore,SGP,,,,Linux-5.15.107+-x86_64-with-glibc2.31,3.10.12,2.2.3,12,Intel(R) Xeon(R) CPU @ 2.20GHz,1,1 x NVIDIA A100-SXM4-40GB,103.8547,1.2929,83.48075866699219,machine,N,1.0
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42127a92fb8636f60c5268afc9bd5e2885fda45b635559f5d75a5cccd05b5de6
3
+ size 871509189
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e09aab5cc0f696d5dc7bb319ec42158f0d8241bd8060a7285ec77bec19718c97
3
+ size 435768437
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a5bf9f43a8b55cc2c935d5c586202803aafae6b7e25833430938be6e97ddb9b
3
+ size 14575
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68dd66f43268be9abd400bd2e864096b73cf1d96aedbf4ec9feacc73aa567580
3
+ size 627
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 1000000000000000019884624838656,
8
+ "never_split": null,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
trainer_state.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 4.187604690117253,
5
+ "global_step": 2500,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.34,
12
+ "learning_rate": 4.66499162479062e-05,
13
+ "loss": 0.0795,
14
+ "step": 200
15
+ },
16
+ {
17
+ "epoch": 0.34,
18
+ "eval_accuracy": 0.9863571086644327,
19
+ "eval_loss": 0.04342207312583923,
20
+ "eval_runtime": 78.4916,
21
+ "eval_samples_per_second": 106.457,
22
+ "eval_steps_per_second": 2.535,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 0.67,
27
+ "learning_rate": 4.32998324958124e-05,
28
+ "loss": 0.0434,
29
+ "step": 400
30
+ },
31
+ {
32
+ "epoch": 0.67,
33
+ "eval_accuracy": 0.9869554810914313,
34
+ "eval_loss": 0.035848040133714676,
35
+ "eval_runtime": 78.5171,
36
+ "eval_samples_per_second": 106.423,
37
+ "eval_steps_per_second": 2.534,
38
+ "step": 400
39
+ },
40
+ {
41
+ "epoch": 1.01,
42
+ "learning_rate": 3.9949748743718597e-05,
43
+ "loss": 0.0375,
44
+ "step": 600
45
+ },
46
+ {
47
+ "epoch": 1.01,
48
+ "eval_accuracy": 0.9876735280038296,
49
+ "eval_loss": 0.03416126221418381,
50
+ "eval_runtime": 78.4728,
51
+ "eval_samples_per_second": 106.483,
52
+ "eval_steps_per_second": 2.536,
53
+ "step": 600
54
+ },
55
+ {
56
+ "epoch": 1.34,
57
+ "learning_rate": 3.6599664991624795e-05,
58
+ "loss": 0.0112,
59
+ "step": 800
60
+ },
61
+ {
62
+ "epoch": 1.34,
63
+ "eval_accuracy": 0.9885112494016276,
64
+ "eval_loss": 0.03930915519595146,
65
+ "eval_runtime": 78.5108,
66
+ "eval_samples_per_second": 106.431,
67
+ "eval_steps_per_second": 2.535,
68
+ "step": 800
69
+ },
70
+ {
71
+ "epoch": 1.68,
72
+ "learning_rate": 3.324958123953099e-05,
73
+ "loss": 0.0089,
74
+ "step": 1000
75
+ },
76
+ {
77
+ "epoch": 1.68,
78
+ "eval_accuracy": 0.9877932024892293,
79
+ "eval_loss": 0.04387575387954712,
80
+ "eval_runtime": 78.5288,
81
+ "eval_samples_per_second": 106.407,
82
+ "eval_steps_per_second": 2.534,
83
+ "step": 1000
84
+ },
85
+ {
86
+ "epoch": 2.01,
87
+ "learning_rate": 2.989949748743719e-05,
88
+ "loss": 0.0117,
89
+ "step": 1200
90
+ },
91
+ {
92
+ "epoch": 2.01,
93
+ "eval_accuracy": 0.989588319770225,
94
+ "eval_loss": 0.04102291911840439,
95
+ "eval_runtime": 78.5424,
96
+ "eval_samples_per_second": 106.388,
97
+ "eval_steps_per_second": 2.534,
98
+ "step": 1200
99
+ },
100
+ {
101
+ "epoch": 2.35,
102
+ "learning_rate": 2.6549413735343385e-05,
103
+ "loss": 0.0028,
104
+ "step": 1400
105
+ },
106
+ {
107
+ "epoch": 2.35,
108
+ "eval_accuracy": 0.989588319770225,
109
+ "eval_loss": 0.055005114525556564,
110
+ "eval_runtime": 78.492,
111
+ "eval_samples_per_second": 106.457,
112
+ "eval_steps_per_second": 2.535,
113
+ "step": 1400
114
+ },
115
+ {
116
+ "epoch": 2.68,
117
+ "learning_rate": 2.3199329983249583e-05,
118
+ "loss": 0.0014,
119
+ "step": 1600
120
+ },
121
+ {
122
+ "epoch": 2.68,
123
+ "eval_accuracy": 0.9889899473432264,
124
+ "eval_loss": 0.054427579045295715,
125
+ "eval_runtime": 78.5005,
126
+ "eval_samples_per_second": 106.445,
127
+ "eval_steps_per_second": 2.535,
128
+ "step": 1600
129
+ },
130
+ {
131
+ "epoch": 3.02,
132
+ "learning_rate": 1.984924623115578e-05,
133
+ "loss": 0.0011,
134
+ "step": 1800
135
+ },
136
+ {
137
+ "epoch": 3.02,
138
+ "eval_accuracy": 0.989588319770225,
139
+ "eval_loss": 0.05314817279577255,
140
+ "eval_runtime": 78.5501,
141
+ "eval_samples_per_second": 106.378,
142
+ "eval_steps_per_second": 2.533,
143
+ "step": 1800
144
+ },
145
+ {
146
+ "epoch": 3.35,
147
+ "learning_rate": 1.6499162479061976e-05,
148
+ "loss": 0.0002,
149
+ "step": 2000
150
+ },
151
+ {
152
+ "epoch": 3.35,
153
+ "eval_accuracy": 0.9894686452848253,
154
+ "eval_loss": 0.058279525488615036,
155
+ "eval_runtime": 78.4971,
156
+ "eval_samples_per_second": 106.45,
157
+ "eval_steps_per_second": 2.535,
158
+ "step": 2000
159
+ },
160
+ {
161
+ "epoch": 3.69,
162
+ "learning_rate": 1.3149078726968176e-05,
163
+ "loss": 0.0002,
164
+ "step": 2200
165
+ },
166
+ {
167
+ "epoch": 3.69,
168
+ "eval_accuracy": 0.9897079942556247,
169
+ "eval_loss": 0.05424511060118675,
170
+ "eval_runtime": 78.4985,
171
+ "eval_samples_per_second": 106.448,
172
+ "eval_steps_per_second": 2.535,
173
+ "step": 2200
174
+ },
175
+ {
176
+ "epoch": 4.02,
177
+ "learning_rate": 9.798994974874372e-06,
178
+ "loss": 0.0002,
179
+ "step": 2400
180
+ },
181
+ {
182
+ "epoch": 4.02,
183
+ "eval_accuracy": 0.989588319770225,
184
+ "eval_loss": 0.05800911784172058,
185
+ "eval_runtime": 78.5022,
186
+ "eval_samples_per_second": 106.443,
187
+ "eval_steps_per_second": 2.535,
188
+ "step": 2400
189
+ }
190
+ ],
191
+ "max_steps": 2985,
192
+ "num_train_epochs": 5,
193
+ "total_flos": 0.0,
194
+ "trial_name": null,
195
+ "trial_params": null
196
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f250a5c08e1e9c5ee5dcaeb636fb35a215c6505d2392dc80f8e0d6af40a76a8c
3
+ size 4027
vocab.txt ADDED
The diff for this file is too large to render. See raw diff