AmirlyPhd commited on
Commit
811f43e
1 Parent(s): d22e064

AmirlyPhd/final_V1-distilbert-text-classification-model

Browse files
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: distilbert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: final_V1-distilbert-text-classification-model
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # final_V1-distilbert-text-classification-model
20
+
21
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1232
24
+ - Accuracy: 0.9743
25
+ - F1: 0.8372
26
+ - Precision: 0.8341
27
+ - Recall: 0.8408
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: 5e-05
47
+ - train_batch_size: 16
48
+ - eval_batch_size: 32
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_steps: 100
53
+ - num_epochs: 3
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
59
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
60
+ | 1.7299 | 0.11 | 50 | 1.8504 | 0.2773 | 0.0874 | 0.1995 | 0.1296 |
61
+ | 0.7996 | 0.22 | 100 | 0.7195 | 0.8242 | 0.5075 | 0.5040 | 0.5175 |
62
+ | 0.3009 | 0.33 | 150 | 0.4573 | 0.8991 | 0.6736 | 0.6652 | 0.6833 |
63
+ | 0.2559 | 0.44 | 200 | 0.5667 | 0.8701 | 0.6478 | 0.6293 | 0.6709 |
64
+ | 0.1636 | 0.55 | 250 | 0.4599 | 0.9040 | 0.6752 | 0.6662 | 0.6864 |
65
+ | 0.1813 | 0.66 | 300 | 0.3651 | 0.9103 | 0.6823 | 0.8187 | 0.6881 |
66
+ | 0.1695 | 0.76 | 350 | 0.3603 | 0.9114 | 0.6969 | 0.8090 | 0.7002 |
67
+ | 0.128 | 0.87 | 400 | 0.3779 | 0.9191 | 0.7197 | 0.7975 | 0.7165 |
68
+ | 0.0976 | 0.98 | 450 | 0.3244 | 0.9095 | 0.7308 | 0.7394 | 0.7275 |
69
+ | 0.0867 | 1.09 | 500 | 0.1825 | 0.9617 | 0.8283 | 0.8278 | 0.8294 |
70
+ | 0.059 | 1.2 | 550 | 0.1847 | 0.9614 | 0.8258 | 0.8234 | 0.8291 |
71
+ | 0.0719 | 1.31 | 600 | 0.1783 | 0.9590 | 0.8273 | 0.8263 | 0.8287 |
72
+ | 0.0504 | 1.42 | 650 | 0.1311 | 0.9702 | 0.8325 | 0.8337 | 0.8315 |
73
+ | 0.0525 | 1.53 | 700 | 0.1531 | 0.9694 | 0.8325 | 0.8355 | 0.8295 |
74
+ | 0.0193 | 1.64 | 750 | 0.1675 | 0.9666 | 0.8311 | 0.8291 | 0.8334 |
75
+ | 0.081 | 1.75 | 800 | 0.1531 | 0.9705 | 0.8329 | 0.8306 | 0.8354 |
76
+ | 0.0453 | 1.86 | 850 | 0.2261 | 0.9295 | 0.7451 | 0.8081 | 0.7321 |
77
+ | 0.0401 | 1.97 | 900 | 0.2015 | 0.9601 | 0.8283 | 0.8263 | 0.8315 |
78
+ | 0.0686 | 2.07 | 950 | 0.1674 | 0.9642 | 0.8291 | 0.8255 | 0.8337 |
79
+ | 0.0353 | 2.18 | 1000 | 0.1639 | 0.9664 | 0.8303 | 0.8264 | 0.8350 |
80
+ | 0.0345 | 2.29 | 1050 | 0.1830 | 0.9639 | 0.8295 | 0.8264 | 0.8335 |
81
+ | 0.0212 | 2.4 | 1100 | 0.1978 | 0.9634 | 0.8291 | 0.8258 | 0.8336 |
82
+ | 0.0028 | 2.51 | 1150 | 0.1864 | 0.9653 | 0.8305 | 0.8273 | 0.8344 |
83
+ | 0.0023 | 2.62 | 1200 | 0.1906 | 0.9661 | 0.8309 | 0.8277 | 0.8348 |
84
+ | 0.0076 | 2.73 | 1250 | 0.1826 | 0.9669 | 0.8307 | 0.8278 | 0.8341 |
85
+ | 0.0272 | 2.84 | 1300 | 0.1830 | 0.9666 | 0.8306 | 0.8283 | 0.8335 |
86
+ | 0.0065 | 2.95 | 1350 | 0.1908 | 0.9661 | 0.8303 | 0.8278 | 0.8333 |
87
+
88
+
89
+ ### Framework versions
90
+
91
+ - Transformers 4.39.3
92
+ - Pytorch 2.1.2
93
+ - Datasets 2.18.0
94
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "label2id": {
22
+ "LABEL_0": 0,
23
+ "LABEL_1": 1,
24
+ "LABEL_2": 2,
25
+ "LABEL_3": 3,
26
+ "LABEL_4": 4,
27
+ "LABEL_5": 5,
28
+ "LABEL_6": 6
29
+ },
30
+ "max_position_embeddings": 512,
31
+ "model_type": "distilbert",
32
+ "n_heads": 12,
33
+ "n_layers": 6,
34
+ "pad_token_id": 0,
35
+ "problem_type": "single_label_classification",
36
+ "qa_dropout": 0.1,
37
+ "seq_classif_dropout": 0.2,
38
+ "sinusoidal_pos_embds": false,
39
+ "tie_weights_": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.39.3",
42
+ "vocab_size": 30522
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11067cf9602fe4d98f8eab27e32cbf7a5a921d2ae224d5e7a5f2d8cb8277252c
3
+ size 267847948
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,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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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": true,
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": "DistilBertTokenizer",
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:d4159371078fc0cb67b01d0fbe93abcad1c7e1fd36a553ae65b2d1949713c562
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff