Palak Goenka
commited on
Commit
•
cdb6713
1
Parent(s):
f7d0aac
add files
Browse files- README.md +53 -0
- all_results.json +11 -0
- config.json +30 -0
- eval_results.json +6 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +223 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- squad
|
7 |
+
model-index:
|
8 |
+
- name: google_electra-small-discriminator_squad
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# google_electra-small-discriminator_squad
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [google/electra-small-discriminator](https://huggingface.co/google/electra-small-discriminator) on the squad dataset.
|
18 |
+
|
19 |
+
## Model description
|
20 |
+
|
21 |
+
More information needed
|
22 |
+
|
23 |
+
## Intended uses & limitations
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Training and evaluation data
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training procedure
|
32 |
+
|
33 |
+
### Training hyperparameters
|
34 |
+
|
35 |
+
The following hyperparameters were used during training:
|
36 |
+
- learning_rate: 3e-05
|
37 |
+
- train_batch_size: 16
|
38 |
+
- eval_batch_size: 32
|
39 |
+
- seed: 42
|
40 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
41 |
+
- lr_scheduler_type: linear
|
42 |
+
- num_epochs: 3.0
|
43 |
+
|
44 |
+
### Training results
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
### Framework versions
|
49 |
+
|
50 |
+
- Transformers 4.14.1
|
51 |
+
- Pytorch 1.9.0
|
52 |
+
- Datasets 1.16.1
|
53 |
+
- Tokenizers 0.10.3
|
all_results.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_exact_match": 76.95364238410596,
|
4 |
+
"eval_f1": 84.98869246841396,
|
5 |
+
"eval_samples": 10784,
|
6 |
+
"train_loss": 1.262162847499961,
|
7 |
+
"train_runtime": 2635.5654,
|
8 |
+
"train_samples": 88524,
|
9 |
+
"train_samples_per_second": 100.765,
|
10 |
+
"train_steps_per_second": 6.298
|
11 |
+
}
|
config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/electra-small-discriminator",
|
3 |
+
"architectures": [
|
4 |
+
"ElectraForQuestionAnswering"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"embedding_size": 128,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 256,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 1024,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "electra",
|
17 |
+
"num_attention_heads": 4,
|
18 |
+
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"position_embedding_type": "absolute",
|
21 |
+
"summary_activation": "gelu",
|
22 |
+
"summary_last_dropout": 0.1,
|
23 |
+
"summary_type": "first",
|
24 |
+
"summary_use_proj": true,
|
25 |
+
"torch_dtype": "float32",
|
26 |
+
"transformers_version": "4.14.1",
|
27 |
+
"type_vocab_size": 2,
|
28 |
+
"use_cache": true,
|
29 |
+
"vocab_size": 30522
|
30 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_exact_match": 76.95364238410596,
|
4 |
+
"eval_f1": 84.98869246841396,
|
5 |
+
"eval_samples": 10784
|
6 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a664650162a084e5a48dfee5c525a8b1e54dac575cccf38dfd8e4a6effef9e69
|
3 |
+
size 54019309
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "google/electra-small-discriminator", "tokenizer_class": "ElectraTokenizer"}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"global_step": 16599,
|
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.09,
|
12 |
+
"learning_rate": 2.9096331104283392e-05,
|
13 |
+
"loss": 3.2794,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.18,
|
18 |
+
"learning_rate": 2.819266220856678e-05,
|
19 |
+
"loss": 2.2324,
|
20 |
+
"step": 1000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.27,
|
24 |
+
"learning_rate": 2.7288993312850172e-05,
|
25 |
+
"loss": 1.9171,
|
26 |
+
"step": 1500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.36,
|
30 |
+
"learning_rate": 2.6385324417133564e-05,
|
31 |
+
"loss": 1.6619,
|
32 |
+
"step": 2000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 0.45,
|
36 |
+
"learning_rate": 2.5481655521416952e-05,
|
37 |
+
"loss": 1.5888,
|
38 |
+
"step": 2500
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 0.54,
|
42 |
+
"learning_rate": 2.4577986625700344e-05,
|
43 |
+
"loss": 1.4678,
|
44 |
+
"step": 3000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.63,
|
48 |
+
"learning_rate": 2.3674317729983735e-05,
|
49 |
+
"loss": 1.3724,
|
50 |
+
"step": 3500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 0.72,
|
54 |
+
"learning_rate": 2.2770648834267124e-05,
|
55 |
+
"loss": 1.4076,
|
56 |
+
"step": 4000
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 0.81,
|
60 |
+
"learning_rate": 2.1866979938550515e-05,
|
61 |
+
"loss": 1.3559,
|
62 |
+
"step": 4500
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"epoch": 0.9,
|
66 |
+
"learning_rate": 2.0963311042833907e-05,
|
67 |
+
"loss": 1.2931,
|
68 |
+
"step": 5000
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 0.99,
|
72 |
+
"learning_rate": 2.0059642147117295e-05,
|
73 |
+
"loss": 1.3135,
|
74 |
+
"step": 5500
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 1.08,
|
78 |
+
"learning_rate": 1.9155973251400687e-05,
|
79 |
+
"loss": 1.1764,
|
80 |
+
"step": 6000
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 1.17,
|
84 |
+
"learning_rate": 1.825230435568408e-05,
|
85 |
+
"loss": 1.1188,
|
86 |
+
"step": 6500
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 1.27,
|
90 |
+
"learning_rate": 1.7348635459967467e-05,
|
91 |
+
"loss": 1.1272,
|
92 |
+
"step": 7000
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 1.36,
|
96 |
+
"learning_rate": 1.644496656425086e-05,
|
97 |
+
"loss": 1.1424,
|
98 |
+
"step": 7500
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 1.45,
|
102 |
+
"learning_rate": 1.554129766853425e-05,
|
103 |
+
"loss": 1.1509,
|
104 |
+
"step": 8000
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 1.54,
|
108 |
+
"learning_rate": 1.463762877281764e-05,
|
109 |
+
"loss": 1.0994,
|
110 |
+
"step": 8500
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"epoch": 1.63,
|
114 |
+
"learning_rate": 1.373395987710103e-05,
|
115 |
+
"loss": 1.1085,
|
116 |
+
"step": 9000
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 1.72,
|
120 |
+
"learning_rate": 1.283029098138442e-05,
|
121 |
+
"loss": 1.0516,
|
122 |
+
"step": 9500
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"epoch": 1.81,
|
126 |
+
"learning_rate": 1.1926622085667812e-05,
|
127 |
+
"loss": 1.1125,
|
128 |
+
"step": 10000
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 1.9,
|
132 |
+
"learning_rate": 1.1022953189951202e-05,
|
133 |
+
"loss": 1.0775,
|
134 |
+
"step": 10500
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"epoch": 1.99,
|
138 |
+
"learning_rate": 1.0119284294234592e-05,
|
139 |
+
"loss": 1.0903,
|
140 |
+
"step": 11000
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"epoch": 2.08,
|
144 |
+
"learning_rate": 9.215615398517983e-06,
|
145 |
+
"loss": 0.9665,
|
146 |
+
"step": 11500
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"epoch": 2.17,
|
150 |
+
"learning_rate": 8.311946502801373e-06,
|
151 |
+
"loss": 0.958,
|
152 |
+
"step": 12000
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"epoch": 2.26,
|
156 |
+
"learning_rate": 7.408277607084765e-06,
|
157 |
+
"loss": 0.9539,
|
158 |
+
"step": 12500
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 2.35,
|
162 |
+
"learning_rate": 6.504608711368155e-06,
|
163 |
+
"loss": 0.9495,
|
164 |
+
"step": 13000
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 2.44,
|
168 |
+
"learning_rate": 5.6009398156515455e-06,
|
169 |
+
"loss": 0.9543,
|
170 |
+
"step": 13500
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 2.53,
|
174 |
+
"learning_rate": 4.697270919934936e-06,
|
175 |
+
"loss": 0.9697,
|
176 |
+
"step": 14000
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"epoch": 2.62,
|
180 |
+
"learning_rate": 3.7936020242183263e-06,
|
181 |
+
"loss": 0.973,
|
182 |
+
"step": 14500
|
183 |
+
},
|
184 |
+
{
|
185 |
+
"epoch": 2.71,
|
186 |
+
"learning_rate": 2.889933128501717e-06,
|
187 |
+
"loss": 0.9563,
|
188 |
+
"step": 15000
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 2.8,
|
192 |
+
"learning_rate": 1.9862642327851074e-06,
|
193 |
+
"loss": 0.9312,
|
194 |
+
"step": 15500
|
195 |
+
},
|
196 |
+
{
|
197 |
+
"epoch": 2.89,
|
198 |
+
"learning_rate": 1.0825953370684982e-06,
|
199 |
+
"loss": 0.9779,
|
200 |
+
"step": 16000
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"epoch": 2.98,
|
204 |
+
"learning_rate": 1.7892644135188868e-07,
|
205 |
+
"loss": 0.966,
|
206 |
+
"step": 16500
|
207 |
+
},
|
208 |
+
{
|
209 |
+
"epoch": 3.0,
|
210 |
+
"step": 16599,
|
211 |
+
"total_flos": 5819517971269632.0,
|
212 |
+
"train_loss": 1.262162847499961,
|
213 |
+
"train_runtime": 2635.5654,
|
214 |
+
"train_samples_per_second": 100.765,
|
215 |
+
"train_steps_per_second": 6.298
|
216 |
+
}
|
217 |
+
],
|
218 |
+
"max_steps": 16599,
|
219 |
+
"num_train_epochs": 3,
|
220 |
+
"total_flos": 5819517971269632.0,
|
221 |
+
"trial_name": null,
|
222 |
+
"trial_params": null
|
223 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01fa2b63a20382a2e83ea2e70ee67ed26f54ce5784699186a8ae62657e14e182
|
3 |
+
size 2991
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|