Upload 6 files
Browse files- config.json +81 -27
- kgi_specific_config.json +29 -0
- pytorch_model.bin +2 -2
- special_tokens_map.json +25 -1
- tokenizer.json +0 -0
- tokenizer_config.json +25 -1
config.json
CHANGED
@@ -1,28 +1,82 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
"
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
{
|
2 |
+
"return_dict": true,
|
3 |
+
"output_hidden_states": false,
|
4 |
+
"output_attentions": false,
|
5 |
+
"torchscript": false,
|
6 |
+
"torch_dtype": "float32",
|
7 |
+
"use_bfloat16": false,
|
8 |
+
"tf_legacy_loss": false,
|
9 |
+
"pruned_heads": {},
|
10 |
+
"tie_word_embeddings": true,
|
11 |
+
"is_encoder_decoder": false,
|
12 |
+
"is_decoder": false,
|
13 |
+
"cross_attention_hidden_size": null,
|
14 |
+
"add_cross_attention": false,
|
15 |
+
"tie_encoder_decoder": false,
|
16 |
+
"max_length": 20,
|
17 |
+
"min_length": 0,
|
18 |
+
"do_sample": false,
|
19 |
+
"early_stopping": false,
|
20 |
+
"num_beams": 1,
|
21 |
+
"num_beam_groups": 1,
|
22 |
+
"diversity_penalty": 0.0,
|
23 |
+
"temperature": 1.0,
|
24 |
+
"top_k": 50,
|
25 |
+
"top_p": 1.0,
|
26 |
+
"typical_p": 1.0,
|
27 |
+
"repetition_penalty": 1.0,
|
28 |
+
"length_penalty": 1.0,
|
29 |
+
"no_repeat_ngram_size": 0,
|
30 |
+
"encoder_no_repeat_ngram_size": 0,
|
31 |
+
"bad_words_ids": null,
|
32 |
+
"num_return_sequences": 1,
|
33 |
+
"chunk_size_feed_forward": 0,
|
34 |
+
"output_scores": false,
|
35 |
+
"return_dict_in_generate": false,
|
36 |
+
"forced_bos_token_id": null,
|
37 |
+
"forced_eos_token_id": null,
|
38 |
+
"remove_invalid_values": false,
|
39 |
+
"exponential_decay_length_penalty": null,
|
40 |
+
"suppress_tokens": null,
|
41 |
+
"begin_suppress_tokens": null,
|
42 |
+
"architectures": [
|
43 |
+
"CamembertForMaskedLM"
|
44 |
+
],
|
45 |
+
"finetuning_task": null,
|
46 |
+
"id2label": {
|
47 |
+
"0": "LABEL_0",
|
48 |
+
"1": "LABEL_1"
|
49 |
+
},
|
50 |
+
"label2id": {
|
51 |
+
"LABEL_0": 0,
|
52 |
+
"LABEL_1": 1
|
53 |
+
},
|
54 |
+
"tokenizer_class": null,
|
55 |
+
"prefix": null,
|
56 |
+
"bos_token_id": 5,
|
57 |
+
"pad_token_id": 1,
|
58 |
+
"eos_token_id": 6,
|
59 |
+
"sep_token_id": null,
|
60 |
+
"decoder_start_token_id": null,
|
61 |
+
"task_specific_params": null,
|
62 |
+
"problem_type": null,
|
63 |
+
"_name_or_path": "Dr-BERT/DrBERT-4GB",
|
64 |
+
"transformers_version": "4.27.4",
|
65 |
+
"model_type": "camembert",
|
66 |
+
"vocab_size": 32013,
|
67 |
+
"hidden_size": 768,
|
68 |
+
"num_hidden_layers": 12,
|
69 |
+
"num_attention_heads": 12,
|
70 |
+
"hidden_act": "gelu",
|
71 |
+
"intermediate_size": 3072,
|
72 |
+
"hidden_dropout_prob": 0.1,
|
73 |
+
"attention_probs_dropout_prob": 0.1,
|
74 |
+
"max_position_embeddings": 514,
|
75 |
+
"type_vocab_size": 1,
|
76 |
+
"initializer_range": 0.02,
|
77 |
+
"layer_norm_eps": 1e-12,
|
78 |
+
"position_embedding_type": "absolute",
|
79 |
+
"use_cache": true,
|
80 |
+
"classifier_dropout": null,
|
81 |
+
"dim": 768
|
82 |
+
}
|
kgi_specific_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"num_labels_link_pred": 6,
|
3 |
+
"link_pred_dropout": 0.1,
|
4 |
+
"num_labels_triple_clf": 2,
|
5 |
+
"triple_clf_dropout": 0.1,
|
6 |
+
"task_weight_coefficients": [
|
7 |
+
0.36271557267837584,
|
8 |
+
0.41185328196487253,
|
9 |
+
0.22543114535675166
|
10 |
+
],
|
11 |
+
"n_tasks": 4,
|
12 |
+
"_clf_classes": [
|
13 |
+
32013,
|
14 |
+
6,
|
15 |
+
2,
|
16 |
+
32013
|
17 |
+
],
|
18 |
+
"_module_list": [
|
19 |
+
"lm_head",
|
20 |
+
"link_classifier",
|
21 |
+
"triple_classifier",
|
22 |
+
"lm_head"
|
23 |
+
],
|
24 |
+
"_nonzero_task_weight_coefficients": [
|
25 |
+
0.36271557267837584,
|
26 |
+
0.41185328196487253,
|
27 |
+
0.22543114535675166
|
28 |
+
]
|
29 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b95685010bf3c97966d534fce3da73cb542eaf5a931d631d155b4d56793bfcc6
|
3 |
+
size 548175458
|
special_tokens_map.json
CHANGED
@@ -1 +1,25 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"[SY]",
|
4 |
+
"[RO]",
|
5 |
+
"[RQ]",
|
6 |
+
"[RN]",
|
7 |
+
"[RB]",
|
8 |
+
"[CHD]",
|
9 |
+
"[PAR]",
|
10 |
+
"[HREL]"
|
11 |
+
],
|
12 |
+
"bos_token": "<s>",
|
13 |
+
"cls_token": "<s>",
|
14 |
+
"eos_token": "</s>",
|
15 |
+
"mask_token": {
|
16 |
+
"content": "<mask>",
|
17 |
+
"lstrip": true,
|
18 |
+
"normalized": true,
|
19 |
+
"rstrip": false,
|
20 |
+
"single_word": false
|
21 |
+
},
|
22 |
+
"pad_token": "<pad>",
|
23 |
+
"sep_token": "</s>",
|
24 |
+
"unk_token": "<unk>"
|
25 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -1 +1,25 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s>NOTUSED",
|
4 |
+
"</s>NOTUSED"
|
5 |
+
],
|
6 |
+
"bos_token": "<s>",
|
7 |
+
"cls_token": "<s>",
|
8 |
+
"eos_token": "</s>",
|
9 |
+
"mask_token": {
|
10 |
+
"__type": "AddedToken",
|
11 |
+
"content": "<mask>",
|
12 |
+
"lstrip": true,
|
13 |
+
"normalized": true,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
"max_len": 512,
|
18 |
+
"model_max_length": 256,
|
19 |
+
"pad_token": "<pad>",
|
20 |
+
"sep_token": "</s>",
|
21 |
+
"sp_model_kwargs": {},
|
22 |
+
"special_tokens_map_file": "./TokenizerFromScratchMLM/DrBERT_4GB_MLM/special_tokens_map.json",
|
23 |
+
"tokenizer_class": "CamembertTokenizer",
|
24 |
+
"unk_token": "<unk>"
|
25 |
+
}
|