Butsushi commited on
Commit
05658c3
·
verified ·
1 Parent(s): 923c9c5

imdb_text_classification

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilbert-base-uncased
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: results
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # results
16
+
17
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.3574
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 8
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 3
45
+
46
+ ### Training results
47
+
48
+ | Training Loss | Epoch | Step | Validation Loss |
49
+ |:-------------:|:-----:|:----:|:---------------:|
50
+ | 0.2839 | 1.0 | 3125 | 0.2983 |
51
+ | 0.1714 | 2.0 | 6250 | 0.3002 |
52
+ | 0.0776 | 3.0 | 9375 | 0.3574 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.44.2
58
+ - Pytorch 2.4.1+cu121
59
+ - Datasets 3.0.1
60
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "initializer_range": 0.02,
12
+ "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
+ "pad_token_id": 0,
17
+ "problem_type": "single_label_classification",
18
+ "qa_dropout": 0.1,
19
+ "seq_classif_dropout": 0.2,
20
+ "sinusoidal_pos_embds": false,
21
+ "tie_weights_": true,
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.44.2",
24
+ "vocab_size": 30522
25
+ }
eval_results.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"eval_loss": 0.35744309425354004, "eval_runtime": 110.9426, "eval_samples_per_second": 225.342, "eval_steps_per_second": 28.168, "epoch": 3.0}
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98e2ba2304a9c0e23b6d54aafae9cd5b556225b579729bb2196dc0a50534e357
3
+ size 267832560
runs/Oct21_23-45-08_cf4540768754/events.out.tfevents.1729554334.cf4540768754.1358.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:784961f45b48aedd3e334c4dd0974bb51364719494b5f3ff2a381d2f2161f2ce
3
+ size 9741
runs/Oct21_23-45-08_cf4540768754/events.out.tfevents.1729556102.cf4540768754.1358.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5729f5fd02ed3a3fcf3ffa708c3002a6876dc82499bf0927a29662fd101251dc
3
+ size 359
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
+ }
trainer_state.json ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 9375,
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.16,
13
+ "grad_norm": 25.028797149658203,
14
+ "learning_rate": 4.7333333333333336e-05,
15
+ "loss": 0.4107,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.32,
20
+ "grad_norm": 6.398056507110596,
21
+ "learning_rate": 4.466666666666667e-05,
22
+ "loss": 0.3382,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.48,
27
+ "grad_norm": 17.56199073791504,
28
+ "learning_rate": 4.2e-05,
29
+ "loss": 0.3389,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 0.64,
34
+ "grad_norm": 32.491722106933594,
35
+ "learning_rate": 3.933333333333333e-05,
36
+ "loss": 0.3043,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 0.8,
41
+ "grad_norm": 12.640718460083008,
42
+ "learning_rate": 3.6666666666666666e-05,
43
+ "loss": 0.3006,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 0.96,
48
+ "grad_norm": 9.034324645996094,
49
+ "learning_rate": 3.4000000000000007e-05,
50
+ "loss": 0.2839,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 1.0,
55
+ "eval_loss": 0.29832616448402405,
56
+ "eval_runtime": 109.9495,
57
+ "eval_samples_per_second": 227.377,
58
+ "eval_steps_per_second": 28.422,
59
+ "step": 3125
60
+ },
61
+ {
62
+ "epoch": 1.12,
63
+ "grad_norm": 32.539512634277344,
64
+ "learning_rate": 3.1333333333333334e-05,
65
+ "loss": 0.2058,
66
+ "step": 3500
67
+ },
68
+ {
69
+ "epoch": 1.28,
70
+ "grad_norm": 2.0097203254699707,
71
+ "learning_rate": 2.8666666666666668e-05,
72
+ "loss": 0.182,
73
+ "step": 4000
74
+ },
75
+ {
76
+ "epoch": 1.44,
77
+ "grad_norm": 0.1602770835161209,
78
+ "learning_rate": 2.6000000000000002e-05,
79
+ "loss": 0.1614,
80
+ "step": 4500
81
+ },
82
+ {
83
+ "epoch": 1.6,
84
+ "grad_norm": 0.056532543152570724,
85
+ "learning_rate": 2.3333333333333336e-05,
86
+ "loss": 0.1726,
87
+ "step": 5000
88
+ },
89
+ {
90
+ "epoch": 1.76,
91
+ "grad_norm": 21.226852416992188,
92
+ "learning_rate": 2.0666666666666666e-05,
93
+ "loss": 0.1867,
94
+ "step": 5500
95
+ },
96
+ {
97
+ "epoch": 1.92,
98
+ "grad_norm": 14.321476936340332,
99
+ "learning_rate": 1.8e-05,
100
+ "loss": 0.1714,
101
+ "step": 6000
102
+ },
103
+ {
104
+ "epoch": 2.0,
105
+ "eval_loss": 0.3002217710018158,
106
+ "eval_runtime": 110.1479,
107
+ "eval_samples_per_second": 226.968,
108
+ "eval_steps_per_second": 28.371,
109
+ "step": 6250
110
+ },
111
+ {
112
+ "epoch": 2.08,
113
+ "grad_norm": 0.014615637250244617,
114
+ "learning_rate": 1.5333333333333334e-05,
115
+ "loss": 0.1151,
116
+ "step": 6500
117
+ },
118
+ {
119
+ "epoch": 2.24,
120
+ "grad_norm": 0.2536245286464691,
121
+ "learning_rate": 1.2666666666666668e-05,
122
+ "loss": 0.074,
123
+ "step": 7000
124
+ },
125
+ {
126
+ "epoch": 2.4,
127
+ "grad_norm": 0.25840720534324646,
128
+ "learning_rate": 1e-05,
129
+ "loss": 0.0538,
130
+ "step": 7500
131
+ },
132
+ {
133
+ "epoch": 2.56,
134
+ "grad_norm": 0.008101879619061947,
135
+ "learning_rate": 7.333333333333334e-06,
136
+ "loss": 0.0659,
137
+ "step": 8000
138
+ },
139
+ {
140
+ "epoch": 2.7199999999999998,
141
+ "grad_norm": 0.056057158857584,
142
+ "learning_rate": 4.666666666666667e-06,
143
+ "loss": 0.0691,
144
+ "step": 8500
145
+ },
146
+ {
147
+ "epoch": 2.88,
148
+ "grad_norm": 0.04367438703775406,
149
+ "learning_rate": 2.0000000000000003e-06,
150
+ "loss": 0.0776,
151
+ "step": 9000
152
+ },
153
+ {
154
+ "epoch": 3.0,
155
+ "eval_loss": 0.35744309425354004,
156
+ "eval_runtime": 110.1571,
157
+ "eval_samples_per_second": 226.949,
158
+ "eval_steps_per_second": 28.369,
159
+ "step": 9375
160
+ },
161
+ {
162
+ "epoch": 3.0,
163
+ "step": 9375,
164
+ "total_flos": 9935054899200000.0,
165
+ "train_loss": 0.18996990498860677,
166
+ "train_runtime": 1346.0972,
167
+ "train_samples_per_second": 55.717,
168
+ "train_steps_per_second": 6.965
169
+ }
170
+ ],
171
+ "logging_steps": 500,
172
+ "max_steps": 9375,
173
+ "num_input_tokens_seen": 0,
174
+ "num_train_epochs": 3,
175
+ "save_steps": 500,
176
+ "stateful_callbacks": {
177
+ "TrainerControl": {
178
+ "args": {
179
+ "should_epoch_stop": false,
180
+ "should_evaluate": false,
181
+ "should_log": false,
182
+ "should_save": true,
183
+ "should_training_stop": true
184
+ },
185
+ "attributes": {}
186
+ }
187
+ },
188
+ "total_flos": 9935054899200000.0,
189
+ "train_batch_size": 8,
190
+ "trial_name": null,
191
+ "trial_params": null
192
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddbc9933bc9d68594c7d7df0830d5b3b8d87d71036ff60a78ef05041b18cdb90
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff