Upload 8 files
Browse files- config.json +71 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- trainer_config.yml +11 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Dr-BERT/DrBERT-4GB-CP-PubMedBERT",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-ANAT",
|
14 |
+
"2": "I-ANAT",
|
15 |
+
"3": "B-CHEM",
|
16 |
+
"4": "I-CHEM",
|
17 |
+
"5": "B-DEVI",
|
18 |
+
"6": "I-DEVI",
|
19 |
+
"7": "B-DISO",
|
20 |
+
"8": "I-DISO",
|
21 |
+
"9": "B-GEOG",
|
22 |
+
"10": "I-GEOG",
|
23 |
+
"11": "B-LIVB",
|
24 |
+
"12": "I-LIVB",
|
25 |
+
"13": "B-OBJC",
|
26 |
+
"14": "I-OBJC",
|
27 |
+
"15": "B-PHEN",
|
28 |
+
"16": "I-PHEN",
|
29 |
+
"17": "B-PHYS",
|
30 |
+
"18": "I-PHYS",
|
31 |
+
"19": "B-PROC",
|
32 |
+
"20": "I-PROC"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"B-ANAT": 1,
|
38 |
+
"B-CHEM": 3,
|
39 |
+
"B-DEVI": 5,
|
40 |
+
"B-DISO": 7,
|
41 |
+
"B-GEOG": 9,
|
42 |
+
"B-LIVB": 11,
|
43 |
+
"B-OBJC": 13,
|
44 |
+
"B-PHEN": 15,
|
45 |
+
"B-PHYS": 17,
|
46 |
+
"B-PROC": 19,
|
47 |
+
"I-ANAT": 2,
|
48 |
+
"I-CHEM": 4,
|
49 |
+
"I-DEVI": 6,
|
50 |
+
"I-DISO": 8,
|
51 |
+
"I-GEOG": 10,
|
52 |
+
"I-LIVB": 12,
|
53 |
+
"I-OBJC": 14,
|
54 |
+
"I-PHEN": 16,
|
55 |
+
"I-PHYS": 18,
|
56 |
+
"I-PROC": 20,
|
57 |
+
"O": 0
|
58 |
+
},
|
59 |
+
"layer_norm_eps": 1e-12,
|
60 |
+
"max_position_embeddings": 512,
|
61 |
+
"model_type": "bert",
|
62 |
+
"num_attention_heads": 12,
|
63 |
+
"num_hidden_layers": 12,
|
64 |
+
"pad_token_id": 0,
|
65 |
+
"position_embedding_type": "absolute",
|
66 |
+
"torch_dtype": "float32",
|
67 |
+
"transformers_version": "4.35.2",
|
68 |
+
"type_vocab_size": 2,
|
69 |
+
"use_cache": true,
|
70 |
+
"vocab_size": 30522
|
71 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:826ba6a1d1520236b4ba8f493dc584915055a2e2a0c941364bf9d16f6f311983
|
3 |
+
size 435654532
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:12ddf17adc19b1e6347170dc0f4657d659b6ac3bf2054fbb1f3f4ea32a1e0c00
|
3 |
+
size 871428666
|
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
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"4": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
trainer_config.yml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
learning_rate: 5.0e-05
|
2 |
+
nb_training_epochs: 10
|
3 |
+
dataloader_nb_workers: 0
|
4 |
+
batch_size: 16
|
5 |
+
seed: null
|
6 |
+
gradient_accumulation_steps: 1
|
7 |
+
do_metrics_in_training: false
|
8 |
+
metric_to_track_lr: loss
|
9 |
+
checkpoint_period: 1
|
10 |
+
checkpoint_metric: loss
|
11 |
+
minimize_checkpoint_metric: true
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|