Upload 6 files
Browse files- config.json +81 -1
- kgi_specific_config.json +29 -0
- pytorch_model.bin +2 -2
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +11 -1
config.json
CHANGED
@@ -1 +1,81 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"return_dict": true,
|
3 |
+
"output_hidden_states": false,
|
4 |
+
"output_attentions": false,
|
5 |
+
"torchscript": false,
|
6 |
+
"torch_dtype": null,
|
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 |
+
"DistilBertModel",
|
44 |
+
"DistilBertForMaskedLM"
|
45 |
+
],
|
46 |
+
"finetuning_task": null,
|
47 |
+
"id2label": {
|
48 |
+
"0": "LABEL_0",
|
49 |
+
"1": "LABEL_1"
|
50 |
+
},
|
51 |
+
"label2id": {
|
52 |
+
"LABEL_0": 0,
|
53 |
+
"LABEL_1": 1
|
54 |
+
},
|
55 |
+
"tokenizer_class": null,
|
56 |
+
"prefix": null,
|
57 |
+
"bos_token_id": null,
|
58 |
+
"pad_token_id": 0,
|
59 |
+
"eos_token_id": null,
|
60 |
+
"sep_token_id": null,
|
61 |
+
"decoder_start_token_id": null,
|
62 |
+
"task_specific_params": null,
|
63 |
+
"problem_type": null,
|
64 |
+
"_name_or_path": "/lustre/fswork/projects/rech/cuf/udk72sb/umls-kgi/model_configs/db-base",
|
65 |
+
"transformers_version": "4.27.4",
|
66 |
+
"vocab_size": 50010,
|
67 |
+
"max_position_embeddings": 512,
|
68 |
+
"sinusoidal_pos_embds": false,
|
69 |
+
"n_layers": 8,
|
70 |
+
"n_heads": 8,
|
71 |
+
"dim": 768,
|
72 |
+
"hidden_dim": 2048,
|
73 |
+
"dropout": 0.05,
|
74 |
+
"attention_dropout": 0.15,
|
75 |
+
"activation": "gelu",
|
76 |
+
"initializer_range": 0.02,
|
77 |
+
"qa_dropout": 0.1,
|
78 |
+
"seq_classif_dropout": 0.2,
|
79 |
+
"model_type": "distilbert",
|
80 |
+
"layer_norm_eps": 1e-12
|
81 |
+
}
|
kgi_specific_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"num_labels_link_pred": 8,
|
3 |
+
"link_pred_dropout": 0.1,
|
4 |
+
"num_labels_triple_clf": 2,
|
5 |
+
"triple_clf_dropout": 0.1,
|
6 |
+
"task_weight_coefficients": [
|
7 |
+
0.37236131743576156,
|
8 |
+
0.3829458850250046,
|
9 |
+
0.24469279753923384
|
10 |
+
],
|
11 |
+
"n_tasks": 4,
|
12 |
+
"_clf_classes": [
|
13 |
+
50010,
|
14 |
+
8,
|
15 |
+
2,
|
16 |
+
50010
|
17 |
+
],
|
18 |
+
"_module_list": [
|
19 |
+
"lm_head",
|
20 |
+
"link_classifier",
|
21 |
+
"triple_classifier",
|
22 |
+
"lm_head"
|
23 |
+
],
|
24 |
+
"_nonzero_task_weight_coefficients": [
|
25 |
+
0.37236131743576156,
|
26 |
+
0.3829458850250046,
|
27 |
+
0.24469279753923384
|
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:d816f91d00bc3219ea104479db1344f2f5e1204fd2f7226b3f7a056ff16cd8b0
|
3 |
+
size 492657362
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -1 +1,11 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"model_max_length": 256,
|
5 |
+
"pad_token": "[PAD]",
|
6 |
+
"padding_side": "right",
|
7 |
+
"sep_token": "[SEP]",
|
8 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
9 |
+
"truncation_side": "right",
|
10 |
+
"unk_token": "[UNK]"
|
11 |
+
}
|