johnjose223
commited on
Commit
•
a6dd7d3
1
Parent(s):
6497518
Upload with huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +53 -0
- all_results.json +25 -0
- config.json +43 -0
- eval_nbest_predictions.json +3 -0
- eval_null_odds.json +0 -0
- eval_predictions.json +0 -0
- eval_results.json +20 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +19 -0
- tokenizer.json +0 -0
- tokenizer_config.json +26 -0
- train_results.json +8 -0
- trainer_state.json +109 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
eval_nbest_predictions.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- squad_v2
|
7 |
+
model-index:
|
8 |
+
- name: wd_0.01_bs_24_lr_2e-05_epochs_4
|
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 |
+
# wd_0.01_bs_24_lr_2e-05_epochs_4
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [xlnet-large-cased](https://huggingface.co/xlnet-large-cased) on the squad_v2 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: 2e-05
|
37 |
+
- train_batch_size: 72
|
38 |
+
- eval_batch_size: 192
|
39 |
+
- seed: 42
|
40 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
41 |
+
- lr_scheduler_type: linear
|
42 |
+
- num_epochs: 4.0
|
43 |
+
|
44 |
+
### Training results
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
### Framework versions
|
49 |
+
|
50 |
+
- Transformers 4.27.4
|
51 |
+
- Pytorch 1.13.1
|
52 |
+
- Datasets 2.11.0
|
53 |
+
- Tokenizers 0.11.0
|
all_results.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_HasAns_exact": 80.28002699055331,
|
4 |
+
"eval_HasAns_f1": 87.88446365474304,
|
5 |
+
"eval_HasAns_total": 5928,
|
6 |
+
"eval_NoAns_exact": 84.50798990748528,
|
7 |
+
"eval_NoAns_f1": 84.50798990748528,
|
8 |
+
"eval_NoAns_total": 5945,
|
9 |
+
"eval_best_exact": 83.42457677082456,
|
10 |
+
"eval_best_exact_thresh": -11.09831714630127,
|
11 |
+
"eval_best_f1": 87.02545252526976,
|
12 |
+
"eval_best_f1_thresh": -11.09831714630127,
|
13 |
+
"eval_exact": 82.39703529015414,
|
14 |
+
"eval_f1": 86.19380952963157,
|
15 |
+
"eval_runtime": 207.3538,
|
16 |
+
"eval_samples": 12231,
|
17 |
+
"eval_samples_per_second": 58.986,
|
18 |
+
"eval_steps_per_second": 0.309,
|
19 |
+
"eval_total": 11873,
|
20 |
+
"train_loss": 0.4368036111282407,
|
21 |
+
"train_runtime": 19719.8453,
|
22 |
+
"train_samples": 132240,
|
23 |
+
"train_samples_per_second": 26.824,
|
24 |
+
"train_steps_per_second": 0.373
|
25 |
+
}
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "xlnet-large-cased",
|
3 |
+
"architectures": [
|
4 |
+
"XLNetForQuestionAnswering"
|
5 |
+
],
|
6 |
+
"attn_type": "bi",
|
7 |
+
"bi_data": false,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"clamp_len": -1,
|
10 |
+
"d_head": 64,
|
11 |
+
"d_inner": 4096,
|
12 |
+
"d_model": 1024,
|
13 |
+
"dropout": 0.1,
|
14 |
+
"end_n_top": 5,
|
15 |
+
"eos_token_id": 2,
|
16 |
+
"ff_activation": "gelu",
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"layer_norm_eps": 1e-12,
|
19 |
+
"mem_len": null,
|
20 |
+
"model_type": "xlnet",
|
21 |
+
"n_head": 16,
|
22 |
+
"n_layer": 24,
|
23 |
+
"pad_token_id": 5,
|
24 |
+
"reuse_len": null,
|
25 |
+
"same_length": false,
|
26 |
+
"start_n_top": 5,
|
27 |
+
"summary_activation": "tanh",
|
28 |
+
"summary_last_dropout": 0.1,
|
29 |
+
"summary_type": "last",
|
30 |
+
"summary_use_proj": true,
|
31 |
+
"task_specific_params": {
|
32 |
+
"text-generation": {
|
33 |
+
"do_sample": true,
|
34 |
+
"max_length": 250
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.27.4",
|
39 |
+
"untie_r": true,
|
40 |
+
"use_mems_eval": true,
|
41 |
+
"use_mems_train": false,
|
42 |
+
"vocab_size": 32000
|
43 |
+
}
|
eval_nbest_predictions.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d5b1875148799a069e4271461d356525cd4a6868046549ede75af19bbd3d962
|
3 |
+
size 34437874
|
eval_null_odds.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
eval_predictions.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
eval_results.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_HasAns_exact": 80.28002699055331,
|
4 |
+
"eval_HasAns_f1": 87.88446365474304,
|
5 |
+
"eval_HasAns_total": 5928,
|
6 |
+
"eval_NoAns_exact": 84.50798990748528,
|
7 |
+
"eval_NoAns_f1": 84.50798990748528,
|
8 |
+
"eval_NoAns_total": 5945,
|
9 |
+
"eval_best_exact": 83.42457677082456,
|
10 |
+
"eval_best_exact_thresh": -11.09831714630127,
|
11 |
+
"eval_best_f1": 87.02545252526976,
|
12 |
+
"eval_best_f1_thresh": -11.09831714630127,
|
13 |
+
"eval_exact": 82.39703529015414,
|
14 |
+
"eval_f1": 86.19380952963157,
|
15 |
+
"eval_runtime": 207.3538,
|
16 |
+
"eval_samples": 12231,
|
17 |
+
"eval_samples_per_second": 58.986,
|
18 |
+
"eval_steps_per_second": 0.309,
|
19 |
+
"eval_total": 11873
|
20 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:022a044cefd7960f104f52781041dd035722b327f2617b038df8f8b489cbbe86
|
3 |
+
size 1458021793
|
special_tokens_map.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<eop>",
|
4 |
+
"<eod>"
|
5 |
+
],
|
6 |
+
"bos_token": "<s>",
|
7 |
+
"cls_token": "<cls>",
|
8 |
+
"eos_token": "</s>",
|
9 |
+
"mask_token": {
|
10 |
+
"content": "<mask>",
|
11 |
+
"lstrip": true,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<pad>",
|
17 |
+
"sep_token": "<sep>",
|
18 |
+
"unk_token": "<unk>"
|
19 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<eop>",
|
4 |
+
"<eod>"
|
5 |
+
],
|
6 |
+
"bos_token": "<s>",
|
7 |
+
"cls_token": "<cls>",
|
8 |
+
"do_lower_case": false,
|
9 |
+
"eos_token": "</s>",
|
10 |
+
"keep_accents": false,
|
11 |
+
"mask_token": {
|
12 |
+
"__type": "AddedToken",
|
13 |
+
"content": "<mask>",
|
14 |
+
"lstrip": true,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
"model_max_length": 1000000000000000019884624838656,
|
20 |
+
"pad_token": "<pad>",
|
21 |
+
"remove_space": true,
|
22 |
+
"sep_token": "<sep>",
|
23 |
+
"special_tokens_map_file": null,
|
24 |
+
"tokenizer_class": "XLNetTokenizer",
|
25 |
+
"unk_token": "<unk>"
|
26 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"train_loss": 0.4368036111282407,
|
4 |
+
"train_runtime": 19719.8453,
|
5 |
+
"train_samples": 132240,
|
6 |
+
"train_samples_per_second": 26.824,
|
7 |
+
"train_steps_per_second": 0.373
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.0,
|
5 |
+
"global_step": 7348,
|
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.27,
|
12 |
+
"learning_rate": 1.863908546543277e-05,
|
13 |
+
"loss": 1.1684,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.54,
|
18 |
+
"learning_rate": 1.7278170930865544e-05,
|
19 |
+
"loss": 0.6721,
|
20 |
+
"step": 1000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.82,
|
24 |
+
"learning_rate": 1.5917256396298314e-05,
|
25 |
+
"loss": 0.6004,
|
26 |
+
"step": 1500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 1.09,
|
30 |
+
"learning_rate": 1.4556341861731085e-05,
|
31 |
+
"loss": 0.5305,
|
32 |
+
"step": 2000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 1.36,
|
36 |
+
"learning_rate": 1.3195427327163855e-05,
|
37 |
+
"loss": 0.4386,
|
38 |
+
"step": 2500
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 1.63,
|
42 |
+
"learning_rate": 1.1834512792596626e-05,
|
43 |
+
"loss": 0.4283,
|
44 |
+
"step": 3000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.91,
|
48 |
+
"learning_rate": 1.0473598258029396e-05,
|
49 |
+
"loss": 0.4255,
|
50 |
+
"step": 3500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 2.18,
|
54 |
+
"learning_rate": 9.112683723462167e-06,
|
55 |
+
"loss": 0.3535,
|
56 |
+
"step": 4000
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 2.45,
|
60 |
+
"learning_rate": 7.751769188894938e-06,
|
61 |
+
"loss": 0.308,
|
62 |
+
"step": 4500
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"epoch": 2.72,
|
66 |
+
"learning_rate": 6.390854654327709e-06,
|
67 |
+
"loss": 0.3116,
|
68 |
+
"step": 5000
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 2.99,
|
72 |
+
"learning_rate": 5.029940119760479e-06,
|
73 |
+
"loss": 0.3116,
|
74 |
+
"step": 5500
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 3.27,
|
78 |
+
"learning_rate": 3.66902558519325e-06,
|
79 |
+
"loss": 0.2396,
|
80 |
+
"step": 6000
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 3.54,
|
84 |
+
"learning_rate": 2.308111050626021e-06,
|
85 |
+
"loss": 0.2356,
|
86 |
+
"step": 6500
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 3.81,
|
90 |
+
"learning_rate": 9.471965160587916e-07,
|
91 |
+
"loss": 0.2361,
|
92 |
+
"step": 7000
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 4.0,
|
96 |
+
"step": 7348,
|
97 |
+
"total_flos": 4.0425346910601216e+17,
|
98 |
+
"train_loss": 0.4368036111282407,
|
99 |
+
"train_runtime": 19719.8453,
|
100 |
+
"train_samples_per_second": 26.824,
|
101 |
+
"train_steps_per_second": 0.373
|
102 |
+
}
|
103 |
+
],
|
104 |
+
"max_steps": 7348,
|
105 |
+
"num_train_epochs": 4,
|
106 |
+
"total_flos": 4.0425346910601216e+17,
|
107 |
+
"trial_name": null,
|
108 |
+
"trial_params": null
|
109 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6908af4ad650643910d605859dea874f8cd1989ba3a7d7408f750e63147b83f9
|
3 |
+
size 3643
|