arnabdhar commited on
Commit
9fa0712
·
1 Parent(s): b3d4281

End of training

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ base_model: prajjwal1/bert-tiny
6
+ tags:
7
+ - pytorch
8
+ - movie-review-sentiment
9
+ - BertForSequenceClassification
10
+ - generated_from_trainer
11
+ metrics:
12
+ - accuracy
13
+ - matthews_correlation
14
+ model-index:
15
+ - name: tiny-imdb
16
+ results: []
17
+ ---
18
+
19
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
20
+ should probably proofread and complete it, then remove this comment. -->
21
+
22
+ # tiny-imdb
23
+
24
+ This model is a fine-tuned version of [prajjwal1/bert-tiny](https://huggingface.co/prajjwal1/bert-tiny) on the imdb dataset.
25
+ It achieves the following results on the evaluation set:
26
+ - Loss: 0.2775
27
+ - Accuracy: 0.8944
28
+ - Matthews Correlation: 0.7888
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: 5e-05
48
+ - train_batch_size: 32
49
+ - eval_batch_size: 320
50
+ - seed: 42
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - num_epochs: 9
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Matthews Correlation |
59
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:--------------------:|
60
+ | 0.4927 | 1.0 | 1250 | 0.3557 | 0.8484 | 0.7016 |
61
+ | 0.298 | 2.0 | 2500 | 0.2874 | 0.8866 | 0.7732 |
62
+ | 0.2555 | 3.0 | 3750 | 0.2799 | 0.8912 | 0.7828 |
63
+ | 0.2132 | 4.0 | 5000 | 0.2775 | 0.8944 | 0.7888 |
64
+ | 0.1779 | 5.0 | 6250 | 0.3065 | 0.891 | 0.7835 |
65
+ | 0.1508 | 6.0 | 7500 | 0.3331 | 0.889 | 0.7811 |
66
+ | 0.1304 | 7.0 | 8750 | 0.3451 | 0.8926 | 0.7870 |
67
+ | 0.119 | 8.0 | 10000 | 0.3670 | 0.8915 | 0.7852 |
68
+ | 0.1118 | 9.0 | 11250 | 0.3655 | 0.891 | 0.7840 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.35.2
74
+ - Pytorch 2.1.0+cu118
75
+ - Datasets 2.15.0
76
+ - Tokenizers 0.15.0
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.0,
3
+ "eval_accuracy": 0.8944,
4
+ "eval_loss": 0.27750933170318604,
5
+ "eval_matthews_correlation": 0.788794543433118,
6
+ "eval_runtime": 12.4798,
7
+ "eval_samples_per_second": 801.293,
8
+ "eval_steps_per_second": 2.564
9
+ }
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "prajjwal1/bert-tiny",
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": 128,
11
+ "id2label": {
12
+ "0": "NEGATIVE",
13
+ "1": "POSITIVE"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 512,
17
+ "label2id": {
18
+ "NEGATIVE": 0,
19
+ "POSITIVE": 1
20
+ },
21
+ "layer_norm_eps": 1e-12,
22
+ "max_position_embeddings": 512,
23
+ "model_type": "bert",
24
+ "num_attention_heads": 2,
25
+ "num_hidden_layers": 2,
26
+ "pad_token_id": 0,
27
+ "position_embedding_type": "absolute",
28
+ "problem_type": "single_label_classification",
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.35.2",
31
+ "type_vocab_size": 2,
32
+ "use_cache": true,
33
+ "vocab_size": 30522
34
+ }
evaluate_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.0,
3
+ "eval_accuracy": 0.8944,
4
+ "eval_loss": 0.27750933170318604,
5
+ "eval_matthews_correlation": 0.788794543433118,
6
+ "eval_runtime": 12.4798,
7
+ "eval_samples_per_second": 801.293,
8
+ "eval_steps_per_second": 2.564
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ebdd52ef2688118e703778598f7788506e59be84873b417b882031137c8cf58
3
+ size 17549312
runs/Dec01_16-48-52_9e942ccf79ea/events.out.tfevents.1701449335.9e942ccf79ea.16102.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c25e53628462c26bf7070826cba1ca01a5a5faac77e47cd85cdabdbf2d5ae986
3
+ size 11524
runs/Dec01_16-48-52_9e942ccf79ea/events.out.tfevents.1701450078.9e942ccf79ea.16102.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3ff1f36f82689c414070d8f637ab2b5ac5d1cf85d0b5eb0e0e8ce7811def30e
3
+ size 475
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7793fdefee408dca59b005f09001be00fd57849eb55d4dc0a10ea0c574cddb2
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff