Mizuiro-sakura
commited on
Commit
•
3577ab2
1
Parent(s):
8616fd0
Upload 11 files
Browse files- .gitattributes +1 -0
- added_tokens.json +4 -0
- config.json +70 -0
- entity_vocab.json +3 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +31 -0
- tokenizer_config.json +78 -0
- trainer_state.json +70 -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 |
+
entity_vocab.json filter=lfs diff=lfs merge=lfs -text
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<ent2>": 32771,
|
3 |
+
"<ent>": 32770
|
4 |
+
}
|
config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "studio-ousia/luke-japanese-large",
|
3 |
+
"architectures": [
|
4 |
+
"LukeForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bert_model_name": "models/luke-japanese-large/hf_xlm_roberta",
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"classifier_dropout": null,
|
10 |
+
"cls_entity_prediction": false,
|
11 |
+
"entity_emb_size": 256,
|
12 |
+
"entity_vocab_size": 570505,
|
13 |
+
"eos_token_id": 2,
|
14 |
+
"hidden_act": "gelu",
|
15 |
+
"hidden_dropout_prob": 0.1,
|
16 |
+
"hidden_size": 1024,
|
17 |
+
"id2label": {
|
18 |
+
"0": "O",
|
19 |
+
"1": "B-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d",
|
20 |
+
"2": "I-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d",
|
21 |
+
"3": "B-\u6cd5\u4eba\u540d",
|
22 |
+
"4": "I-\u6cd5\u4eba\u540d",
|
23 |
+
"5": "B-\u5730\u540d",
|
24 |
+
"6": "I-\u5730\u540d",
|
25 |
+
"7": "B-\u4eba\u540d",
|
26 |
+
"8": "I-\u4eba\u540d",
|
27 |
+
"9": "B-\u65bd\u8a2d\u540d",
|
28 |
+
"10": "I-\u65bd\u8a2d\u540d",
|
29 |
+
"11": "B-\u30a4\u30d9\u30f3\u30c8\u540d",
|
30 |
+
"12": "I-\u30a4\u30d9\u30f3\u30c8\u540d",
|
31 |
+
"13": "B-\u653f\u6cbb\u7684\u7d44\u7e54\u540d",
|
32 |
+
"14": "I-\u653f\u6cbb\u7684\u7d44\u7e54\u540d",
|
33 |
+
"15": "B-\u88fd\u54c1\u540d",
|
34 |
+
"16": "I-\u88fd\u54c1\u540d"
|
35 |
+
},
|
36 |
+
"initializer_range": 0.02,
|
37 |
+
"intermediate_size": 4096,
|
38 |
+
"label2id": {
|
39 |
+
"B-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d": 1,
|
40 |
+
"B-\u30a4\u30d9\u30f3\u30c8\u540d": 11,
|
41 |
+
"B-\u4eba\u540d": 7,
|
42 |
+
"B-\u5730\u540d": 5,
|
43 |
+
"B-\u653f\u6cbb\u7684\u7d44\u7e54\u540d": 13,
|
44 |
+
"B-\u65bd\u8a2d\u540d": 9,
|
45 |
+
"B-\u6cd5\u4eba\u540d": 3,
|
46 |
+
"B-\u88fd\u54c1\u540d": 15,
|
47 |
+
"I-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d": 2,
|
48 |
+
"I-\u30a4\u30d9\u30f3\u30c8\u540d": 12,
|
49 |
+
"I-\u4eba\u540d": 8,
|
50 |
+
"I-\u5730\u540d": 6,
|
51 |
+
"I-\u653f\u6cbb\u7684\u7d44\u7e54\u540d": 14,
|
52 |
+
"I-\u65bd\u8a2d\u540d": 10,
|
53 |
+
"I-\u6cd5\u4eba\u540d": 4,
|
54 |
+
"I-\u88fd\u54c1\u540d": 16,
|
55 |
+
"O": 0
|
56 |
+
},
|
57 |
+
"layer_norm_eps": 1e-05,
|
58 |
+
"max_position_embeddings": 514,
|
59 |
+
"model_type": "luke",
|
60 |
+
"num_attention_heads": 16,
|
61 |
+
"num_hidden_layers": 24,
|
62 |
+
"pad_token_id": 1,
|
63 |
+
"position_embedding_type": "absolute",
|
64 |
+
"torch_dtype": "float32",
|
65 |
+
"transformers_version": "4.29.0",
|
66 |
+
"type_vocab_size": 1,
|
67 |
+
"use_cache": true,
|
68 |
+
"use_entity_aware_attention": true,
|
69 |
+
"vocab_size": 32772
|
70 |
+
}
|
entity_vocab.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b06f4585e52d018d7a4b19f1578313b5071c2bc049ee7085c59b668b27fab86
|
3 |
+
size 21684396
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90e6eb713c99abc9fc11fcd730b14e31295d780478a506a74cb67b4d5751b232
|
3 |
+
size 2235493249
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49b1f298375437845383fc52ca0e1806c97d89f6fc4b6fdf060d87a08bac6386
|
3 |
+
size 14575
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a4db5523c7c7e23368b5f50223787d2962cc7f9cf051bdb8078f4ccc89dd732
|
3 |
+
size 627
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8b73a5e054936c920cf5b7d1ec21ce9c281977078269963beb821c6c86fbff7
|
3 |
+
size 841889
|
special_tokens_map.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<ent>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "<ent2>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"bos_token": "<s>",
|
19 |
+
"cls_token": "<s>",
|
20 |
+
"eos_token": "</s>",
|
21 |
+
"mask_token": {
|
22 |
+
"content": "<mask>",
|
23 |
+
"lstrip": true,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
},
|
28 |
+
"pad_token": "<pad>",
|
29 |
+
"sep_token": "</s>",
|
30 |
+
"unk_token": "<unk>"
|
31 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"__type": "AddedToken",
|
5 |
+
"content": "<ent>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"__type": "AddedToken",
|
13 |
+
"content": "<ent2>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"__type": "AddedToken",
|
21 |
+
"content": "<ent>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"__type": "AddedToken",
|
29 |
+
"content": "<ent2>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false
|
34 |
+
}
|
35 |
+
],
|
36 |
+
"bos_token": "<s>",
|
37 |
+
"clean_up_tokenization_spaces": true,
|
38 |
+
"cls_token": "<s>",
|
39 |
+
"entity_mask2_token": "[MASK2]",
|
40 |
+
"entity_mask_token": "[MASK]",
|
41 |
+
"entity_pad_token": "[PAD]",
|
42 |
+
"entity_token_1": {
|
43 |
+
"__type": "AddedToken",
|
44 |
+
"content": "<ent>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": true,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false
|
49 |
+
},
|
50 |
+
"entity_token_2": {
|
51 |
+
"__type": "AddedToken",
|
52 |
+
"content": "<ent2>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": true,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false
|
57 |
+
},
|
58 |
+
"entity_unk_token": "[UNK]",
|
59 |
+
"eos_token": "</s>",
|
60 |
+
"mask_token": {
|
61 |
+
"__type": "AddedToken",
|
62 |
+
"content": "<mask>",
|
63 |
+
"lstrip": true,
|
64 |
+
"normalized": true,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false
|
67 |
+
},
|
68 |
+
"max_entity_length": 32,
|
69 |
+
"max_mention_length": 30,
|
70 |
+
"model_max_length": 512,
|
71 |
+
"pad_token": "<pad>",
|
72 |
+
"sep_token": "</s>",
|
73 |
+
"sp_model_kwargs": {},
|
74 |
+
"task": null,
|
75 |
+
"tokenizer_class": "MLukeTokenizer",
|
76 |
+
"tokenizer_file": "models/luke-japanese-large/hf_luke_japanese_epoch20/tokenizer.json",
|
77 |
+
"unk_token": "<unk>"
|
78 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.0,
|
5 |
+
"global_step": 4988,
|
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.4,
|
12 |
+
"learning_rate": 4.590834697217676e-05,
|
13 |
+
"loss": 0.1267,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.8,
|
18 |
+
"learning_rate": 4.079378068739771e-05,
|
19 |
+
"loss": 0.0395,
|
20 |
+
"step": 1000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 1.2,
|
24 |
+
"learning_rate": 3.567921440261866e-05,
|
25 |
+
"loss": 0.0312,
|
26 |
+
"step": 1500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 1.6,
|
30 |
+
"learning_rate": 3.05646481178396e-05,
|
31 |
+
"loss": 0.023,
|
32 |
+
"step": 2000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 2.0,
|
36 |
+
"learning_rate": 2.5450081833060556e-05,
|
37 |
+
"loss": 0.0228,
|
38 |
+
"step": 2500
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 2.41,
|
42 |
+
"learning_rate": 2.0335515548281506e-05,
|
43 |
+
"loss": 0.0144,
|
44 |
+
"step": 3000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 2.81,
|
48 |
+
"learning_rate": 1.5220949263502457e-05,
|
49 |
+
"loss": 0.0126,
|
50 |
+
"step": 3500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 3.21,
|
54 |
+
"learning_rate": 1.0106382978723404e-05,
|
55 |
+
"loss": 0.0074,
|
56 |
+
"step": 4000
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 3.61,
|
60 |
+
"learning_rate": 4.991816693944354e-06,
|
61 |
+
"loss": 0.0076,
|
62 |
+
"step": 4500
|
63 |
+
}
|
64 |
+
],
|
65 |
+
"max_steps": 4988,
|
66 |
+
"num_train_epochs": 4,
|
67 |
+
"total_flos": 8691993142769664.0,
|
68 |
+
"trial_name": null,
|
69 |
+
"trial_params": null
|
70 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7cf9aa8e159dbf907448265416ee1aed2ecba831f13be59bb81e95e5848dc2b
|
3 |
+
size 3963
|