Luggi commited on
Commit
f1243b0
·
verified ·
1 Parent(s): e5bb2ca

End of training

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilbert/distilbert-base-german-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: task2_small
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # task2_small
21
+
22
+ This model is a fine-tuned version of [distilbert/distilbert-base-german-cased](https://huggingface.co/distilbert/distilbert-base-german-cased) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0507
25
+ - Precision: 0.8401
26
+ - Recall: 0.8712
27
+ - F1: 0.8554
28
+ - Accuracy: 0.9894
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 16
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 10
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
58
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
59
+ | 0.0329 | 1.0 | 2359 | 0.0386 | 0.8098 | 0.8163 | 0.8130 | 0.9870 |
60
+ | 0.0245 | 2.0 | 4718 | 0.0356 | 0.8210 | 0.8551 | 0.8377 | 0.9888 |
61
+ | 0.0158 | 3.0 | 7077 | 0.0401 | 0.8426 | 0.8551 | 0.8488 | 0.9887 |
62
+ | 0.0118 | 4.0 | 9436 | 0.0417 | 0.8144 | 0.8664 | 0.8396 | 0.9885 |
63
+ | 0.0093 | 5.0 | 11795 | 0.0434 | 0.8470 | 0.8522 | 0.8496 | 0.9889 |
64
+ | 0.0063 | 6.0 | 14154 | 0.0472 | 0.8548 | 0.8580 | 0.8564 | 0.9891 |
65
+ | 0.0054 | 7.0 | 16513 | 0.0484 | 0.8450 | 0.8680 | 0.8564 | 0.9893 |
66
+ | 0.0049 | 8.0 | 18872 | 0.0492 | 0.8398 | 0.8693 | 0.8543 | 0.9894 |
67
+ | 0.0033 | 9.0 | 21231 | 0.0502 | 0.8397 | 0.8709 | 0.8550 | 0.9894 |
68
+ | 0.003 | 10.0 | 23590 | 0.0507 | 0.8401 | 0.8712 | 0.8554 | 0.9894 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.52.4
74
+ - Pytorch 2.6.0+cu124
75
+ - Datasets 2.14.4
76
+ - Tokenizers 0.21.2
config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForTokenClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "hidden_dim": 3072,
10
+ "id2label": {
11
+ "0": "O",
12
+ "1": "B-DRUG",
13
+ "2": "I-DRUG",
14
+ "3": "B-DOSAGE",
15
+ "4": "I-DOSAGE",
16
+ "5": "B-FORM",
17
+ "6": "I-FORM",
18
+ "7": "B-FREQUENCY",
19
+ "8": "I-FREQUENCY",
20
+ "9": "B-DURATION",
21
+ "10": "I-DURATION",
22
+ "11": "B-STRENGTH",
23
+ "12": "I-STRENGTH",
24
+ "13": "B-REASON",
25
+ "14": "I-REASON",
26
+ "15": "B-ROUTE",
27
+ "16": "I-ROUTE",
28
+ "17": "B-ACTIVEING",
29
+ "18": "I-ACTIVEING"
30
+ },
31
+ "initializer_range": 0.02,
32
+ "label2id": {
33
+ "B-ACTIVEING": 17,
34
+ "B-DOSAGE": 3,
35
+ "B-DRUG": 1,
36
+ "B-DURATION": 9,
37
+ "B-FORM": 5,
38
+ "B-FREQUENCY": 7,
39
+ "B-REASON": 13,
40
+ "B-ROUTE": 15,
41
+ "B-STRENGTH": 11,
42
+ "I-ACTIVEING": 18,
43
+ "I-DOSAGE": 4,
44
+ "I-DRUG": 2,
45
+ "I-DURATION": 10,
46
+ "I-FORM": 6,
47
+ "I-FREQUENCY": 8,
48
+ "I-REASON": 14,
49
+ "I-ROUTE": 16,
50
+ "I-STRENGTH": 12,
51
+ "O": 0
52
+ },
53
+ "max_position_embeddings": 512,
54
+ "model_type": "distilbert",
55
+ "n_heads": 12,
56
+ "n_layers": 6,
57
+ "output_past": true,
58
+ "pad_token_id": 0,
59
+ "qa_dropout": 0.1,
60
+ "seq_classif_dropout": 0.2,
61
+ "sinusoidal_pos_embds": true,
62
+ "tie_weights_": true,
63
+ "torch_dtype": "float32",
64
+ "transformers_version": "4.52.4",
65
+ "vocab_size": 31102
66
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71bce057d30c618c7e6c137bb0c1e7f5d74a8320068f942075d3903acac0357a
3
+ size 267304068
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "101": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "102": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "103": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "DistilBertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cf1e64d4f84fda186969b2fc56bcb27c63418457bafd8d5240d596a8fa76c50
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff