Palak Goenka
commited on
Commit
路
51961f3
1
Parent(s):
8a6068e
add files
Browse files- README.md +53 -0
- all_results.json +11 -0
- config.json +32 -0
- eval_results.json +6 -0
- merges.txt +0 -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 +289 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- squad
|
7 |
+
model-index:
|
8 |
+
- name: microsoft_deberta-base_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 |
+
# microsoft_deberta-base_squad
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [microsoft/deberta-base](https://huggingface.co/microsoft/deberta-base) 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: 12
|
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": 86.30085146641439,
|
4 |
+
"eval_f1": 92.68502275661561,
|
5 |
+
"eval_samples": 10788,
|
6 |
+
"train_loss": 0.6538377606771826,
|
7 |
+
"train_runtime": 11699.9166,
|
8 |
+
"train_samples": 88550,
|
9 |
+
"train_samples_per_second": 22.705,
|
10 |
+
"train_steps_per_second": 1.892
|
11 |
+
}
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/deberta-base",
|
3 |
+
"architectures": [
|
4 |
+
"DebertaForQuestionAnswering"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.1,
|
9 |
+
"hidden_size": 768,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 3072,
|
12 |
+
"layer_norm_eps": 1e-07,
|
13 |
+
"max_position_embeddings": 512,
|
14 |
+
"max_relative_positions": -1,
|
15 |
+
"model_type": "deberta",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"pooler_dropout": 0,
|
20 |
+
"pooler_hidden_act": "gelu",
|
21 |
+
"pooler_hidden_size": 768,
|
22 |
+
"pos_att_type": [
|
23 |
+
"c2p",
|
24 |
+
"p2c"
|
25 |
+
],
|
26 |
+
"position_biased_input": false,
|
27 |
+
"relative_attention": true,
|
28 |
+
"torch_dtype": "float32",
|
29 |
+
"transformers_version": "4.14.1",
|
30 |
+
"type_vocab_size": 0,
|
31 |
+
"vocab_size": 50265
|
32 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_exact_match": 86.30085146641439,
|
4 |
+
"eval_f1": 92.68502275661561,
|
5 |
+
"eval_samples": 10788
|
6 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27f90b764250c27c9ad1ab0edd941aeb988d77a655330921172254e171029fde
|
3 |
+
size 554498419
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": {"content": "[CLS]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "[SEP]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "[UNK]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "[SEP]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "[PAD]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "[CLS]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "[MASK]", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": {"content": "[UNK]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "[CLS]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "[SEP]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "errors": "replace", "sep_token": {"content": "[SEP]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "cls_token": {"content": "[CLS]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": {"content": "[PAD]", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "mask_token": {"content": "[MASK]", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "do_lower_case": false, "vocab_type": "gpt2", "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "microsoft/deberta-base", "tokenizer_class": "DebertaTokenizer"}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"train_loss": 0.6538377606771826,
|
4 |
+
"train_runtime": 11699.9166,
|
5 |
+
"train_samples": 88550,
|
6 |
+
"train_samples_per_second": 22.705,
|
7 |
+
"train_steps_per_second": 1.892
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"global_step": 22140,
|
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.07,
|
12 |
+
"learning_rate": 2.932249322493225e-05,
|
13 |
+
"loss": 1.6277,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.14,
|
18 |
+
"learning_rate": 2.86449864498645e-05,
|
19 |
+
"loss": 1.0907,
|
20 |
+
"step": 1000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.2,
|
24 |
+
"learning_rate": 2.7967479674796748e-05,
|
25 |
+
"loss": 1.0199,
|
26 |
+
"step": 1500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.27,
|
30 |
+
"learning_rate": 2.7289972899729e-05,
|
31 |
+
"loss": 0.9284,
|
32 |
+
"step": 2000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 0.34,
|
36 |
+
"learning_rate": 2.6612466124661247e-05,
|
37 |
+
"loss": 0.9689,
|
38 |
+
"step": 2500
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 0.41,
|
42 |
+
"learning_rate": 2.59349593495935e-05,
|
43 |
+
"loss": 0.9188,
|
44 |
+
"step": 3000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.47,
|
48 |
+
"learning_rate": 2.5257452574525747e-05,
|
49 |
+
"loss": 0.898,
|
50 |
+
"step": 3500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 0.54,
|
54 |
+
"learning_rate": 2.4579945799457998e-05,
|
55 |
+
"loss": 0.902,
|
56 |
+
"step": 4000
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 0.61,
|
60 |
+
"learning_rate": 2.3902439024390246e-05,
|
61 |
+
"loss": 0.8888,
|
62 |
+
"step": 4500
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"epoch": 0.68,
|
66 |
+
"learning_rate": 2.3224932249322494e-05,
|
67 |
+
"loss": 0.8703,
|
68 |
+
"step": 5000
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 0.75,
|
72 |
+
"learning_rate": 2.2547425474254745e-05,
|
73 |
+
"loss": 0.842,
|
74 |
+
"step": 5500
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 0.81,
|
78 |
+
"learning_rate": 2.186991869918699e-05,
|
79 |
+
"loss": 0.8403,
|
80 |
+
"step": 6000
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 0.88,
|
84 |
+
"learning_rate": 2.119241192411924e-05,
|
85 |
+
"loss": 0.8354,
|
86 |
+
"step": 6500
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.95,
|
90 |
+
"learning_rate": 2.051490514905149e-05,
|
91 |
+
"loss": 0.816,
|
92 |
+
"step": 7000
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 1.02,
|
96 |
+
"learning_rate": 1.983739837398374e-05,
|
97 |
+
"loss": 0.7617,
|
98 |
+
"step": 7500
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 1.08,
|
102 |
+
"learning_rate": 1.915989159891599e-05,
|
103 |
+
"loss": 0.5977,
|
104 |
+
"step": 8000
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 1.15,
|
108 |
+
"learning_rate": 1.8482384823848237e-05,
|
109 |
+
"loss": 0.6169,
|
110 |
+
"step": 8500
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"epoch": 1.22,
|
114 |
+
"learning_rate": 1.7804878048780488e-05,
|
115 |
+
"loss": 0.594,
|
116 |
+
"step": 9000
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 1.29,
|
120 |
+
"learning_rate": 1.7127371273712736e-05,
|
121 |
+
"loss": 0.6107,
|
122 |
+
"step": 9500
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"epoch": 1.36,
|
126 |
+
"learning_rate": 1.6449864498644987e-05,
|
127 |
+
"loss": 0.611,
|
128 |
+
"step": 10000
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 1.42,
|
132 |
+
"learning_rate": 1.5772357723577235e-05,
|
133 |
+
"loss": 0.63,
|
134 |
+
"step": 10500
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"epoch": 1.49,
|
138 |
+
"learning_rate": 1.5094850948509487e-05,
|
139 |
+
"loss": 0.6039,
|
140 |
+
"step": 11000
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"epoch": 1.56,
|
144 |
+
"learning_rate": 1.4417344173441735e-05,
|
145 |
+
"loss": 0.6143,
|
146 |
+
"step": 11500
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"epoch": 1.63,
|
150 |
+
"learning_rate": 1.3739837398373984e-05,
|
151 |
+
"loss": 0.5886,
|
152 |
+
"step": 12000
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"epoch": 1.69,
|
156 |
+
"learning_rate": 1.3062330623306234e-05,
|
157 |
+
"loss": 0.6002,
|
158 |
+
"step": 12500
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 1.76,
|
162 |
+
"learning_rate": 1.2384823848238483e-05,
|
163 |
+
"loss": 0.6013,
|
164 |
+
"step": 13000
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 1.83,
|
168 |
+
"learning_rate": 1.1707317073170733e-05,
|
169 |
+
"loss": 0.5779,
|
170 |
+
"step": 13500
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 1.9,
|
174 |
+
"learning_rate": 1.1029810298102981e-05,
|
175 |
+
"loss": 0.58,
|
176 |
+
"step": 14000
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"epoch": 1.96,
|
180 |
+
"learning_rate": 1.035230352303523e-05,
|
181 |
+
"loss": 0.5889,
|
182 |
+
"step": 14500
|
183 |
+
},
|
184 |
+
{
|
185 |
+
"epoch": 2.03,
|
186 |
+
"learning_rate": 9.674796747967479e-06,
|
187 |
+
"loss": 0.5174,
|
188 |
+
"step": 15000
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 2.1,
|
192 |
+
"learning_rate": 8.997289972899728e-06,
|
193 |
+
"loss": 0.4231,
|
194 |
+
"step": 15500
|
195 |
+
},
|
196 |
+
{
|
197 |
+
"epoch": 2.17,
|
198 |
+
"learning_rate": 8.319783197831978e-06,
|
199 |
+
"loss": 0.4261,
|
200 |
+
"step": 16000
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"epoch": 2.24,
|
204 |
+
"learning_rate": 7.642276422764228e-06,
|
205 |
+
"loss": 0.4206,
|
206 |
+
"step": 16500
|
207 |
+
},
|
208 |
+
{
|
209 |
+
"epoch": 2.3,
|
210 |
+
"learning_rate": 6.964769647696477e-06,
|
211 |
+
"loss": 0.393,
|
212 |
+
"step": 17000
|
213 |
+
},
|
214 |
+
{
|
215 |
+
"epoch": 2.37,
|
216 |
+
"learning_rate": 6.287262872628727e-06,
|
217 |
+
"loss": 0.4052,
|
218 |
+
"step": 17500
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"epoch": 2.44,
|
222 |
+
"learning_rate": 5.609756097560976e-06,
|
223 |
+
"loss": 0.4186,
|
224 |
+
"step": 18000
|
225 |
+
},
|
226 |
+
{
|
227 |
+
"epoch": 2.51,
|
228 |
+
"learning_rate": 4.932249322493225e-06,
|
229 |
+
"loss": 0.4225,
|
230 |
+
"step": 18500
|
231 |
+
},
|
232 |
+
{
|
233 |
+
"epoch": 2.57,
|
234 |
+
"learning_rate": 4.254742547425474e-06,
|
235 |
+
"loss": 0.4012,
|
236 |
+
"step": 19000
|
237 |
+
},
|
238 |
+
{
|
239 |
+
"epoch": 2.64,
|
240 |
+
"learning_rate": 3.5772357723577236e-06,
|
241 |
+
"loss": 0.4124,
|
242 |
+
"step": 19500
|
243 |
+
},
|
244 |
+
{
|
245 |
+
"epoch": 2.71,
|
246 |
+
"learning_rate": 2.8997289972899733e-06,
|
247 |
+
"loss": 0.3895,
|
248 |
+
"step": 20000
|
249 |
+
},
|
250 |
+
{
|
251 |
+
"epoch": 2.78,
|
252 |
+
"learning_rate": 2.222222222222222e-06,
|
253 |
+
"loss": 0.3905,
|
254 |
+
"step": 20500
|
255 |
+
},
|
256 |
+
{
|
257 |
+
"epoch": 2.85,
|
258 |
+
"learning_rate": 1.5447154471544717e-06,
|
259 |
+
"loss": 0.3781,
|
260 |
+
"step": 21000
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"epoch": 2.91,
|
264 |
+
"learning_rate": 8.672086720867209e-07,
|
265 |
+
"loss": 0.3939,
|
266 |
+
"step": 21500
|
267 |
+
},
|
268 |
+
{
|
269 |
+
"epoch": 2.98,
|
270 |
+
"learning_rate": 1.8970189701897021e-07,
|
271 |
+
"loss": 0.408,
|
272 |
+
"step": 22000
|
273 |
+
},
|
274 |
+
{
|
275 |
+
"epoch": 3.0,
|
276 |
+
"step": 22140,
|
277 |
+
"total_flos": 6.07242628548864e+16,
|
278 |
+
"train_loss": 0.6538377606771826,
|
279 |
+
"train_runtime": 11699.9166,
|
280 |
+
"train_samples_per_second": 22.705,
|
281 |
+
"train_steps_per_second": 1.892
|
282 |
+
}
|
283 |
+
],
|
284 |
+
"max_steps": 22140,
|
285 |
+
"num_train_epochs": 3,
|
286 |
+
"total_flos": 6.07242628548864e+16,
|
287 |
+
"trial_name": null,
|
288 |
+
"trial_params": null
|
289 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:956f0e7ae4c82cca152ade53c0762d0e28099321cae6bd20bb0af0f6747442a4
|
3 |
+
size 2927
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|