AngryBacteria
commited on
Commit
•
3fdd58e
1
Parent(s):
63aa349
End of training
Browse files- README.md +89 -0
- config.json +42 -0
- model.safetensors +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: GerMedBERT/medbert-512
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: GerMedBert_ATTR_V02_BRONCO
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# GerMedBert_ATTR_V02_BRONCO
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [GerMedBERT/medbert-512](https://huggingface.co/GerMedBERT/medbert-512) on the None dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.0593
|
23 |
+
- F1 Score: 0.8187
|
24 |
+
- Precision: 0.8235
|
25 |
+
- Recall: 0.8140
|
26 |
+
- Accuracy: 0.8993
|
27 |
+
- Num Input Tokens Seen: 4204246
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 16
|
48 |
+
- eval_batch_size: 16
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 6
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 Score | Precision | Recall | Accuracy | Input Tokens Seen |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:--------:|:-----------------:|
|
58 |
+
| No log | 0.25 | 81 | 0.1949 | 0.0 | 1.0 | 0.0 | 0.7240 | 175856 |
|
59 |
+
| 0.206 | 0.5 | 162 | 0.1196 | 0.4123 | 0.8393 | 0.2733 | 0.7847 | 349280 |
|
60 |
+
| 0.206 | 0.75 | 243 | 0.0945 | 0.6296 | 0.8673 | 0.4942 | 0.8351 | 526096 |
|
61 |
+
| 0.1019 | 1.0 | 324 | 0.0792 | 0.7584 | 0.8 | 0.7209 | 0.8698 | 702407 |
|
62 |
+
| 0.1019 | 1.25 | 405 | 0.0697 | 0.7874 | 0.7784 | 0.7965 | 0.8785 | 877047 |
|
63 |
+
| 0.0715 | 1.5 | 486 | 0.0697 | 0.7778 | 0.7447 | 0.8140 | 0.8715 | 1052647 |
|
64 |
+
| 0.0715 | 1.75 | 567 | 0.0673 | 0.7568 | 0.7826 | 0.7326 | 0.8715 | 1227287 |
|
65 |
+
| 0.0638 | 2.0 | 648 | 0.0680 | 0.7781 | 0.7358 | 0.8256 | 0.8715 | 1400330 |
|
66 |
+
| 0.0638 | 2.25 | 729 | 0.0622 | 0.7965 | 0.8084 | 0.7849 | 0.8941 | 1577786 |
|
67 |
+
| 0.0445 | 2.5 | 810 | 0.0593 | 0.8012 | 0.7943 | 0.8081 | 0.8906 | 1751722 |
|
68 |
+
| 0.0445 | 2.75 | 891 | 0.0583 | 0.8023 | 0.8023 | 0.8023 | 0.8906 | 1927258 |
|
69 |
+
| 0.0396 | 3.0 | 972 | 0.0579 | 0.8161 | 0.8068 | 0.8256 | 0.8993 | 2100749 |
|
70 |
+
| 0.0396 | 3.25 | 1053 | 0.0598 | 0.8125 | 0.7944 | 0.8314 | 0.8941 | 2276989 |
|
71 |
+
| 0.0289 | 3.5 | 1134 | 0.0592 | 0.8036 | 0.8232 | 0.7849 | 0.8941 | 2451501 |
|
72 |
+
| 0.0289 | 3.75 | 1215 | 0.0585 | 0.7954 | 0.7886 | 0.8023 | 0.8906 | 2628573 |
|
73 |
+
| 0.0271 | 4.0 | 1296 | 0.0571 | 0.8171 | 0.8034 | 0.8314 | 0.8993 | 2802576 |
|
74 |
+
| 0.0271 | 4.25 | 1377 | 0.0581 | 0.8235 | 0.8333 | 0.8140 | 0.9045 | 2978368 |
|
75 |
+
| 0.0194 | 4.5 | 1458 | 0.0619 | 0.7978 | 0.7717 | 0.8256 | 0.8837 | 3154544 |
|
76 |
+
| 0.0194 | 4.75 | 1539 | 0.0612 | 0.8048 | 0.8323 | 0.7791 | 0.8958 | 3330400 |
|
77 |
+
| 0.0193 | 5.0 | 1620 | 0.0585 | 0.8059 | 0.8155 | 0.7965 | 0.8958 | 3505555 |
|
78 |
+
| 0.0193 | 5.25 | 1701 | 0.0587 | 0.8187 | 0.8235 | 0.8140 | 0.9010 | 3680771 |
|
79 |
+
| 0.0153 | 5.5 | 1782 | 0.0592 | 0.8242 | 0.8171 | 0.8314 | 0.9010 | 3856947 |
|
80 |
+
| 0.0153 | 5.75 | 1863 | 0.0592 | 0.8163 | 0.8187 | 0.8140 | 0.8993 | 4030371 |
|
81 |
+
| 0.0146 | 6.0 | 1944 | 0.0593 | 0.8187 | 0.8235 | 0.8140 | 0.8993 | 4204246 |
|
82 |
+
|
83 |
+
|
84 |
+
### Framework versions
|
85 |
+
|
86 |
+
- Transformers 4.40.1
|
87 |
+
- Pytorch 2.3.0+cu121
|
88 |
+
- Datasets 2.19.0
|
89 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "GerMedBERT/medbert-512",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
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": "B",
|
13 |
+
"1": "L",
|
14 |
+
"2": "R",
|
15 |
+
"3": "negative",
|
16 |
+
"4": "possibleFuture",
|
17 |
+
"5": "speculative"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"B": 0,
|
23 |
+
"L": 1,
|
24 |
+
"R": 2,
|
25 |
+
"negative": 3,
|
26 |
+
"possibleFuture": 4,
|
27 |
+
"speculative": 5
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-12,
|
30 |
+
"max_position_embeddings": 512,
|
31 |
+
"model_type": "bert",
|
32 |
+
"num_attention_heads": 8,
|
33 |
+
"num_hidden_layers": 12,
|
34 |
+
"pad_token_id": 0,
|
35 |
+
"position_embedding_type": "absolute",
|
36 |
+
"problem_type": "multi_label_classification",
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.40.1",
|
39 |
+
"type_vocab_size": 2,
|
40 |
+
"use_cache": true,
|
41 |
+
"vocab_size": 30000
|
42 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2fd4aff63d5d439c6ed46e3f4a983890712d7b8aed78a97acec93d9226d4e6f4
|
3 |
+
size 436367360
|
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,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_lower_case": false,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "BertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ac468349b2c38151254fdb6b5be0a78c0102556a057a3e25acf68632a3864d7
|
3 |
+
size 5048
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|