Training in progress, step 500
Browse files- README.md +99 -0
- config.json +91 -0
- model.safetensors +3 -0
- runs/Dec05_09-17-01_0ce4b59191ac/events.out.tfevents.1733390231.0ce4b59191ac.5946.0 +3 -0
- runs/Dec05_09-17-01_0ce4b59191ac/events.out.tfevents.1733390718.0ce4b59191ac.5946.1 +3 -0
- runs/Dec05_09-27-05_0ce4b59191ac/events.out.tfevents.1733390830.0ce4b59191ac.9325.0 +3 -0
- runs/Dec05_09-27-05_0ce4b59191ac/events.out.tfevents.1733391318.0ce4b59191ac.9325.1 +3 -0
- runs/Dec05_09-45-28_0ce4b59191ac/events.out.tfevents.1733391950.0ce4b59191ac.9325.3 +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
base_model: dccuchile/bert-base-spanish-wwm-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- biobert_json
|
8 |
+
metrics:
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
- accuracy
|
13 |
+
model-index:
|
14 |
+
- name: bert-biobert
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Token Classification
|
18 |
+
type: token-classification
|
19 |
+
dataset:
|
20 |
+
name: biobert_json
|
21 |
+
type: biobert_json
|
22 |
+
config: Biobert_json
|
23 |
+
split: validation
|
24 |
+
args: Biobert_json
|
25 |
+
metrics:
|
26 |
+
- name: Precision
|
27 |
+
type: precision
|
28 |
+
value: 0.9479839607930497
|
29 |
+
- name: Recall
|
30 |
+
type: recall
|
31 |
+
value: 0.9641461342395922
|
32 |
+
- name: F1
|
33 |
+
type: f1
|
34 |
+
value: 0.95599674257954
|
35 |
+
- name: Accuracy
|
36 |
+
type: accuracy
|
37 |
+
value: 0.9768617183218656
|
38 |
+
---
|
39 |
+
|
40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
41 |
+
should probably proofread and complete it, then remove this comment. -->
|
42 |
+
|
43 |
+
# bert-biobert
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-uncased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-uncased) on the biobert_json dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.1154
|
48 |
+
- Precision: 0.9480
|
49 |
+
- Recall: 0.9641
|
50 |
+
- F1: 0.9560
|
51 |
+
- Accuracy: 0.9769
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 2e-05
|
71 |
+
- train_batch_size: 16
|
72 |
+
- eval_batch_size: 16
|
73 |
+
- seed: 42
|
74 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
75 |
+
- lr_scheduler_type: linear
|
76 |
+
- num_epochs: 10
|
77 |
+
|
78 |
+
### Training results
|
79 |
+
|
80 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
81 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
82 |
+
| 0.364 | 1.0 | 612 | 0.1155 | 0.9302 | 0.9525 | 0.9412 | 0.9686 |
|
83 |
+
| 0.117 | 2.0 | 1224 | 0.1034 | 0.9405 | 0.9640 | 0.9521 | 0.9749 |
|
84 |
+
| 0.0837 | 3.0 | 1836 | 0.0980 | 0.9469 | 0.9682 | 0.9574 | 0.9772 |
|
85 |
+
| 0.066 | 4.0 | 2448 | 0.0975 | 0.9474 | 0.9678 | 0.9575 | 0.9775 |
|
86 |
+
| 0.0451 | 5.0 | 3060 | 0.0982 | 0.9498 | 0.9648 | 0.9572 | 0.9770 |
|
87 |
+
| 0.0405 | 6.0 | 3672 | 0.1074 | 0.9469 | 0.9643 | 0.9555 | 0.9761 |
|
88 |
+
| 0.0318 | 7.0 | 4284 | 0.1104 | 0.9478 | 0.9663 | 0.9570 | 0.9771 |
|
89 |
+
| 0.031 | 8.0 | 4896 | 0.1145 | 0.9495 | 0.9654 | 0.9574 | 0.9772 |
|
90 |
+
| 0.0235 | 9.0 | 5508 | 0.1137 | 0.9495 | 0.9639 | 0.9566 | 0.9767 |
|
91 |
+
| 0.0209 | 10.0 | 6120 | 0.1154 | 0.9480 | 0.9641 | 0.9560 | 0.9769 |
|
92 |
+
|
93 |
+
|
94 |
+
### Framework versions
|
95 |
+
|
96 |
+
- Transformers 4.46.2
|
97 |
+
- Pytorch 2.5.1+cu121
|
98 |
+
- Datasets 3.1.0
|
99 |
+
- Tokenizers 0.20.3
|
config.json
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dccuchile/bert-base-spanish-wwm-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
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 |
+
"15": "LABEL_15",
|
29 |
+
"16": "LABEL_16",
|
30 |
+
"17": "LABEL_17",
|
31 |
+
"18": "LABEL_18",
|
32 |
+
"19": "LABEL_19",
|
33 |
+
"20": "LABEL_20",
|
34 |
+
"21": "LABEL_21",
|
35 |
+
"22": "LABEL_22",
|
36 |
+
"23": "LABEL_23",
|
37 |
+
"24": "LABEL_24",
|
38 |
+
"25": "LABEL_25",
|
39 |
+
"26": "LABEL_26",
|
40 |
+
"27": "LABEL_27",
|
41 |
+
"28": "LABEL_28",
|
42 |
+
"29": "LABEL_29"
|
43 |
+
},
|
44 |
+
"initializer_range": 0.02,
|
45 |
+
"intermediate_size": 3072,
|
46 |
+
"label2id": {
|
47 |
+
"LABEL_0": 0,
|
48 |
+
"LABEL_1": 1,
|
49 |
+
"LABEL_10": 10,
|
50 |
+
"LABEL_11": 11,
|
51 |
+
"LABEL_12": 12,
|
52 |
+
"LABEL_13": 13,
|
53 |
+
"LABEL_14": 14,
|
54 |
+
"LABEL_15": 15,
|
55 |
+
"LABEL_16": 16,
|
56 |
+
"LABEL_17": 17,
|
57 |
+
"LABEL_18": 18,
|
58 |
+
"LABEL_19": 19,
|
59 |
+
"LABEL_2": 2,
|
60 |
+
"LABEL_20": 20,
|
61 |
+
"LABEL_21": 21,
|
62 |
+
"LABEL_22": 22,
|
63 |
+
"LABEL_23": 23,
|
64 |
+
"LABEL_24": 24,
|
65 |
+
"LABEL_25": 25,
|
66 |
+
"LABEL_26": 26,
|
67 |
+
"LABEL_27": 27,
|
68 |
+
"LABEL_28": 28,
|
69 |
+
"LABEL_29": 29,
|
70 |
+
"LABEL_3": 3,
|
71 |
+
"LABEL_4": 4,
|
72 |
+
"LABEL_5": 5,
|
73 |
+
"LABEL_6": 6,
|
74 |
+
"LABEL_7": 7,
|
75 |
+
"LABEL_8": 8,
|
76 |
+
"LABEL_9": 9
|
77 |
+
},
|
78 |
+
"layer_norm_eps": 1e-12,
|
79 |
+
"max_position_embeddings": 512,
|
80 |
+
"model_type": "bert",
|
81 |
+
"num_attention_heads": 12,
|
82 |
+
"num_hidden_layers": 12,
|
83 |
+
"output_past": true,
|
84 |
+
"pad_token_id": 1,
|
85 |
+
"position_embedding_type": "absolute",
|
86 |
+
"torch_dtype": "float32",
|
87 |
+
"transformers_version": "4.46.2",
|
88 |
+
"type_vocab_size": 2,
|
89 |
+
"use_cache": true,
|
90 |
+
"vocab_size": 31002
|
91 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ee90216f8835cd7f59ca58c0b19ec20c88d4878d91785602275c892ba846bab
|
3 |
+
size 437156776
|
runs/Dec05_09-17-01_0ce4b59191ac/events.out.tfevents.1733390231.0ce4b59191ac.5946.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68870fa38e4f4580268dea556f0a607ac70e2906b2805b3937cf6a02263d45ea
|
3 |
+
size 14050
|
runs/Dec05_09-17-01_0ce4b59191ac/events.out.tfevents.1733390718.0ce4b59191ac.5946.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f82906dc84c3e9f86fd2002a5b1d008955d24c423b8a7fcb1dfd0688b8a3e1b1
|
3 |
+
size 560
|
runs/Dec05_09-27-05_0ce4b59191ac/events.out.tfevents.1733390830.0ce4b59191ac.9325.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:157c0667f7813b1d6217ed0268cf5eaf948ae9f3d265a9932137e1746b8df0cc
|
3 |
+
size 14050
|
runs/Dec05_09-27-05_0ce4b59191ac/events.out.tfevents.1733391318.0ce4b59191ac.9325.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e8098ba096d34871564226e543d068b8c5ff6dcdf9d4cec976d5c408f306aeb5
|
3 |
+
size 560
|
runs/Dec05_09-45-28_0ce4b59191ac/events.out.tfevents.1733391950.0ce4b59191ac.9325.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5c7089726940ca6ac7d52827e49f9476207c688b7ec7e06cf25cbd08c061390
|
3 |
+
size 6644
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "[MASK]",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "[PAD]",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"3": {
|
21 |
+
"content": "[UNK]",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"4": {
|
29 |
+
"content": "[CLS]",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"5": {
|
37 |
+
"content": "[SEP]",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"clean_up_tokenization_spaces": false,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": true,
|
49 |
+
"mask_token": "[MASK]",
|
50 |
+
"model_max_length": 512,
|
51 |
+
"never_split": null,
|
52 |
+
"pad_token": "[PAD]",
|
53 |
+
"sep_token": "[SEP]",
|
54 |
+
"strip_accents": false,
|
55 |
+
"tokenize_chinese_chars": true,
|
56 |
+
"tokenizer_class": "BertTokenizer",
|
57 |
+
"unk_token": "[UNK]"
|
58 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0224b3d0b04611ec7aa499c12311e2756cdc450ee8b1fdc9c7e8db08481e2813
|
3 |
+
size 5368
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|