waelChr commited on
Commit
ca406f4
·
verified ·
1 Parent(s): d3c7be1

End of training

Browse files
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: dbmdz/bert-base-german-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: tc
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # tc
17
+
18
+ This model is a fine-tuned version of [dbmdz/bert-base-german-cased](https://huggingface.co/dbmdz/bert-base-german-cased) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.5440
21
+ - Accuracy: 0.9174
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 2e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 3
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | 0.0586 | 1.0 | 1835 | 0.6466 | 0.9073 |
53
+ | 0.047 | 2.0 | 3670 | 0.6389 | 0.9122 |
54
+ | 0.0724 | 3.0 | 5505 | 0.5440 | 0.9174 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.38.1
60
+ - Pytorch 2.1.0+cu121
61
+ - Datasets 2.18.0
62
+ - Tokenizers 0.15.2
best_model/config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dbmdz/bert-base-german-cased",
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": "ft",
13
+ "1": "pkg",
14
+ "2": "ct",
15
+ "3": "mr",
16
+ "4": "ch",
17
+ "5": "cnc"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "ch": 4,
23
+ "cnc": 5,
24
+ "ct": 2,
25
+ "ft": 0,
26
+ "mr": 3,
27
+ "pkg": 1
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "output_past": true,
35
+ "pad_token_id": 0,
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "single_label_classification",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.38.1",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 31102
43
+ }
best_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:191a2f07ce067db18fa985bc8d054de16c3156bcc7e4c64b9f7cd020dd7d38d2
3
+ size 439752712
best_model/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2975041d2551f303cc96341eb0a139908c0e3a66a12c1d8b02ca6365d29caba3
3
+ size 879626490
best_model/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3cc3d53538bfcf40d8f2ef6392b586bf2409f1bd066e569b43dc415a6262f7d
3
+ size 14244
best_model/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea313d83c88d6f4e65450b460b6dc3429c31c54001492563fb511152a490bb53
3
+ size 1064
best_model/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
+ }
best_model/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
best_model/tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
best_model/trainer_state.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5440165400505066,
3
+ "best_model_checkpoint": "tc/checkpoint-5505",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 5505,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.27,
13
+ "grad_norm": 0.013308633118867874,
14
+ "learning_rate": 1.818346957311535e-05,
15
+ "loss": 0.0364,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.54,
20
+ "grad_norm": 6.7945733070373535,
21
+ "learning_rate": 1.63669391462307e-05,
22
+ "loss": 0.0487,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.82,
27
+ "grad_norm": 3.0930397510528564,
28
+ "learning_rate": 1.455040871934605e-05,
29
+ "loss": 0.0586,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 1.0,
34
+ "eval_accuracy": 0.9073443248398965,
35
+ "eval_loss": 0.6466261148452759,
36
+ "eval_runtime": 6.3857,
37
+ "eval_samples_per_second": 1149.289,
38
+ "eval_steps_per_second": 71.88,
39
+ "step": 1835
40
+ },
41
+ {
42
+ "epoch": 1.09,
43
+ "grad_norm": 2.8216397762298584,
44
+ "learning_rate": 1.27338782924614e-05,
45
+ "loss": 0.0427,
46
+ "step": 2000
47
+ },
48
+ {
49
+ "epoch": 1.36,
50
+ "grad_norm": 0.025512950494885445,
51
+ "learning_rate": 1.0917347865576748e-05,
52
+ "loss": 0.0403,
53
+ "step": 2500
54
+ },
55
+ {
56
+ "epoch": 1.63,
57
+ "grad_norm": 0.08174186199903488,
58
+ "learning_rate": 9.1008174386921e-06,
59
+ "loss": 0.0413,
60
+ "step": 3000
61
+ },
62
+ {
63
+ "epoch": 1.91,
64
+ "grad_norm": 0.005288199055939913,
65
+ "learning_rate": 7.284287011807448e-06,
66
+ "loss": 0.047,
67
+ "step": 3500
68
+ },
69
+ {
70
+ "epoch": 2.0,
71
+ "eval_accuracy": 0.912249625289549,
72
+ "eval_loss": 0.638913631439209,
73
+ "eval_runtime": 5.7905,
74
+ "eval_samples_per_second": 1267.423,
75
+ "eval_steps_per_second": 79.268,
76
+ "step": 3670
77
+ },
78
+ {
79
+ "epoch": 2.18,
80
+ "grad_norm": 9.735889434814453,
81
+ "learning_rate": 5.467756584922798e-06,
82
+ "loss": 0.0728,
83
+ "step": 4000
84
+ },
85
+ {
86
+ "epoch": 2.45,
87
+ "grad_norm": 0.02875600941479206,
88
+ "learning_rate": 3.6512261580381475e-06,
89
+ "loss": 0.0909,
90
+ "step": 4500
91
+ },
92
+ {
93
+ "epoch": 2.72,
94
+ "grad_norm": 53.43143844604492,
95
+ "learning_rate": 1.8346957311534968e-06,
96
+ "loss": 0.0809,
97
+ "step": 5000
98
+ },
99
+ {
100
+ "epoch": 3.0,
101
+ "grad_norm": 27.897287368774414,
102
+ "learning_rate": 1.8165304268846506e-08,
103
+ "loss": 0.0724,
104
+ "step": 5500
105
+ },
106
+ {
107
+ "epoch": 3.0,
108
+ "eval_accuracy": 0.9174274424308488,
109
+ "eval_loss": 0.5440165400505066,
110
+ "eval_runtime": 6.5035,
111
+ "eval_samples_per_second": 1128.468,
112
+ "eval_steps_per_second": 70.577,
113
+ "step": 5505
114
+ }
115
+ ],
116
+ "logging_steps": 500,
117
+ "max_steps": 5505,
118
+ "num_input_tokens_seen": 0,
119
+ "num_train_epochs": 3,
120
+ "save_steps": 500,
121
+ "total_flos": 642673888681104.0,
122
+ "train_batch_size": 16,
123
+ "trial_name": null,
124
+ "trial_params": null
125
+ }
best_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb77bee910da7adbffe4e4bbfce76492938e9637a88123aeab82fe9bfed437a0
3
+ size 4856
best_model/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dbmdz/bert-base-german-cased",
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": "ft",
13
+ "1": "pkg",
14
+ "2": "ct",
15
+ "3": "mr",
16
+ "4": "ch",
17
+ "5": "cnc"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "ch": 4,
23
+ "cnc": 5,
24
+ "ct": 2,
25
+ "ft": 0,
26
+ "mr": 3,
27
+ "pkg": 1
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "output_past": true,
35
+ "pad_token_id": 0,
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "single_label_classification",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.38.1",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 31102
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:191a2f07ce067db18fa985bc8d054de16c3156bcc7e4c64b9f7cd020dd7d38d2
3
+ size 439752712
runs/Mar06_03-37-40_08f52ca9a3f5/events.out.tfevents.1709696261.08f52ca9a3f5.893.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26156bdb72a9d251d87ef98deaef9132d4851c48d54512a85ecce689b4fc8e8e
3
+ size 8462
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
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:fb77bee910da7adbffe4e4bbfce76492938e9637a88123aeab82fe9bfed437a0
3
+ size 4856
vocab.txt ADDED
The diff for this file is too large to render. See raw diff