FredrikMoller
commited on
Commit
•
a9b7cc6
1
Parent(s):
7e509ef
initial commit
Browse files- config.json +60 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- trainer_state.json +171 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "KB/bert-base-swedish-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"finetuning_task": "ner",
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5",
|
19 |
+
"6": "LABEL_6",
|
20 |
+
"7": "LABEL_7",
|
21 |
+
"8": "LABEL_8",
|
22 |
+
"9": "LABEL_9",
|
23 |
+
"10": "LABEL_10",
|
24 |
+
"11": "LABEL_11",
|
25 |
+
"12": "LABEL_12",
|
26 |
+
"13": "LABEL_13",
|
27 |
+
"14": "LABEL_14"
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 3072,
|
31 |
+
"label2id": {
|
32 |
+
"LABEL_0": 0,
|
33 |
+
"LABEL_1": 1,
|
34 |
+
"LABEL_10": 10,
|
35 |
+
"LABEL_11": 11,
|
36 |
+
"LABEL_12": 12,
|
37 |
+
"LABEL_13": 13,
|
38 |
+
"LABEL_14": 14,
|
39 |
+
"LABEL_2": 2,
|
40 |
+
"LABEL_3": 3,
|
41 |
+
"LABEL_4": 4,
|
42 |
+
"LABEL_5": 5,
|
43 |
+
"LABEL_6": 6,
|
44 |
+
"LABEL_7": 7,
|
45 |
+
"LABEL_8": 8,
|
46 |
+
"LABEL_9": 9
|
47 |
+
},
|
48 |
+
"layer_norm_eps": 1e-12,
|
49 |
+
"max_position_embeddings": 512,
|
50 |
+
"model_type": "bert",
|
51 |
+
"num_attention_heads": 12,
|
52 |
+
"num_hidden_layers": 12,
|
53 |
+
"output_past": true,
|
54 |
+
"pad_token_id": 0,
|
55 |
+
"position_embedding_type": "absolute",
|
56 |
+
"transformers_version": "4.5.1",
|
57 |
+
"type_vocab_size": 2,
|
58 |
+
"use_cache": true,
|
59 |
+
"vocab_size": 50325
|
60 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfcf6cc4b830ee8270d32186b20240ce1f80a82df954785a235a88f31b2753ed
|
3 |
+
size 496534094
|
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_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": false, "special_tokens_map_file": "/home/fmoller/.cache/huggingface/transformers/37f2eab7cd9b3716ce0160ea9562138ae9247fb3ea61a2fd0190b16d0970444e.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "KB/bert-base-swedish-cased", "do_basic_tokenize": true, "never_split": null}
|
trainer_state.json
ADDED
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 8.0,
|
5 |
+
"global_step": 5056,
|
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.79,
|
12 |
+
"learning_rate": 5e-05,
|
13 |
+
"loss": 0.324,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 1.0,
|
18 |
+
"eval_accuracy": 0.9792203149081317,
|
19 |
+
"eval_f1": 0.9060294526257294,
|
20 |
+
"eval_loss": 0.10194244235754013,
|
21 |
+
"eval_precision": 0.9077614045506849,
|
22 |
+
"eval_recall": 0.904304097027067,
|
23 |
+
"eval_runtime": 12.6479,
|
24 |
+
"eval_samples_per_second": 217.348,
|
25 |
+
"step": 632
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"epoch": 1.58,
|
29 |
+
"learning_rate": 4.451273046532046e-05,
|
30 |
+
"loss": 0.0599,
|
31 |
+
"step": 1000
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 2.0,
|
35 |
+
"eval_accuracy": 0.9832931525115832,
|
36 |
+
"eval_f1": 0.9250188602866763,
|
37 |
+
"eval_loss": 0.08270899951457977,
|
38 |
+
"eval_precision": 0.9206314324433212,
|
39 |
+
"eval_recall": 0.9294483064635409,
|
40 |
+
"eval_runtime": 12.8104,
|
41 |
+
"eval_samples_per_second": 214.592,
|
42 |
+
"step": 1264
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 2.37,
|
46 |
+
"learning_rate": 3.902546093064092e-05,
|
47 |
+
"loss": 0.0414,
|
48 |
+
"step": 1500
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 3.0,
|
52 |
+
"eval_accuracy": 0.9813122943651833,
|
53 |
+
"eval_f1": 0.9174662014827737,
|
54 |
+
"eval_loss": 0.09249694645404816,
|
55 |
+
"eval_precision": 0.9019937115906818,
|
56 |
+
"eval_recall": 0.9334787753290933,
|
57 |
+
"eval_runtime": 12.6986,
|
58 |
+
"eval_samples_per_second": 216.48,
|
59 |
+
"step": 1896
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 3.16,
|
63 |
+
"learning_rate": 3.353819139596137e-05,
|
64 |
+
"loss": 0.03,
|
65 |
+
"step": 2000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 3.96,
|
69 |
+
"learning_rate": 2.8050921861281827e-05,
|
70 |
+
"loss": 0.0203,
|
71 |
+
"step": 2500
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 4.0,
|
75 |
+
"eval_accuracy": 0.9827810282103189,
|
76 |
+
"eval_f1": 0.9226777565140586,
|
77 |
+
"eval_loss": 0.09510081261396408,
|
78 |
+
"eval_precision": 0.9183516483516484,
|
79 |
+
"eval_recall": 0.9270448158556427,
|
80 |
+
"eval_runtime": 12.7912,
|
81 |
+
"eval_samples_per_second": 214.913,
|
82 |
+
"step": 2528
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"epoch": 4.75,
|
86 |
+
"learning_rate": 2.256365232660228e-05,
|
87 |
+
"loss": 0.0139,
|
88 |
+
"step": 3000
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 5.0,
|
92 |
+
"eval_accuracy": 0.9840951584928085,
|
93 |
+
"eval_f1": 0.9295437821927889,
|
94 |
+
"eval_loss": 0.09760858118534088,
|
95 |
+
"eval_precision": 0.9249158002635818,
|
96 |
+
"eval_recall": 0.9342183109007544,
|
97 |
+
"eval_runtime": 12.7478,
|
98 |
+
"eval_samples_per_second": 215.645,
|
99 |
+
"step": 3160
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 5.54,
|
103 |
+
"learning_rate": 1.707638279192274e-05,
|
104 |
+
"loss": 0.01,
|
105 |
+
"step": 3500
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 6.0,
|
109 |
+
"eval_accuracy": 0.9842159425261255,
|
110 |
+
"eval_f1": 0.9298436262501611,
|
111 |
+
"eval_loss": 0.10052050650119781,
|
112 |
+
"eval_precision": 0.9263459209512276,
|
113 |
+
"eval_recall": 0.9333678449933441,
|
114 |
+
"eval_runtime": 12.7445,
|
115 |
+
"eval_samples_per_second": 215.702,
|
116 |
+
"step": 3792
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 6.33,
|
120 |
+
"learning_rate": 1.1589113257243196e-05,
|
121 |
+
"loss": 0.0067,
|
122 |
+
"step": 4000
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"epoch": 7.0,
|
126 |
+
"eval_accuracy": 0.984558969180746,
|
127 |
+
"eval_f1": 0.9318746892093487,
|
128 |
+
"eval_loss": 0.11000438034534454,
|
129 |
+
"eval_precision": 0.9283014713976443,
|
130 |
+
"eval_recall": 0.9354755213725781,
|
131 |
+
"eval_runtime": 12.8711,
|
132 |
+
"eval_samples_per_second": 213.579,
|
133 |
+
"step": 4424
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"epoch": 7.12,
|
137 |
+
"learning_rate": 6.101843722563653e-06,
|
138 |
+
"loss": 0.0049,
|
139 |
+
"step": 4500
|
140 |
+
},
|
141 |
+
{
|
142 |
+
"epoch": 7.91,
|
143 |
+
"learning_rate": 6.145741878841089e-07,
|
144 |
+
"loss": 0.0033,
|
145 |
+
"step": 5000
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"epoch": 8.0,
|
149 |
+
"eval_accuracy": 0.9842642561394525,
|
150 |
+
"eval_f1": 0.9308433246772383,
|
151 |
+
"eval_loss": 0.11643598228693008,
|
152 |
+
"eval_precision": 0.9272740615712032,
|
153 |
+
"eval_recall": 0.9344401715722527,
|
154 |
+
"eval_runtime": 12.7915,
|
155 |
+
"eval_samples_per_second": 214.908,
|
156 |
+
"step": 5056
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 8.0,
|
160 |
+
"step": 5056,
|
161 |
+
"total_flos": 1.2033636864613164e+16,
|
162 |
+
"train_runtime": 1294.9862,
|
163 |
+
"train_samples_per_second": 3.904
|
164 |
+
}
|
165 |
+
],
|
166 |
+
"max_steps": 5056,
|
167 |
+
"num_train_epochs": 8,
|
168 |
+
"total_flos": 1.2033636864613164e+16,
|
169 |
+
"trial_name": null,
|
170 |
+
"trial_params": null
|
171 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0524cdf78de92a7d42130730c57be368d99dc8eff497253e49144ccd7f2daec
|
3 |
+
size 2351
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|