JeremiahZ commited on
Commit
9db11ec
1 Parent(s): d6ea759

Model save

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - imdb
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: imdb_distilbert-base-uncased
10
+ results:
11
+ - task:
12
+ name: Text Classification
13
+ type: text-classification
14
+ dataset:
15
+ name: imdb
16
+ type: imdb
17
+ config: plain_text
18
+ split: test
19
+ args: plain_text
20
+ metrics:
21
+ - name: Accuracy
22
+ type: accuracy
23
+ value: 0.8766
24
+ ---
25
+
26
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
27
+ should probably proofread and complete it, then remove this comment. -->
28
+
29
+ # imdb_distilbert-base-uncased
30
+
31
+ This model was trained from scratch on the imdb dataset.
32
+ It achieves the following results on the evaluation set:
33
+ - Loss: 0.3141
34
+ - Accuracy: 0.8766
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 2e-05
54
+ - train_batch_size: 64
55
+ - eval_batch_size: 64
56
+ - seed: 42
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: linear
59
+ - lr_scheduler_warmup_ratio: 0.1
60
+ - num_epochs: 3.0
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
65
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
66
+ | 0.6487 | 0.2 | 78 | 0.4402 | 0.8117 |
67
+ | 0.402 | 0.4 | 156 | 0.3563 | 0.8416 |
68
+ | 0.3528 | 0.6 | 234 | 0.3522 | 0.8434 |
69
+ | 0.3362 | 0.8 | 312 | 0.3099 | 0.8652 |
70
+ | 0.3184 | 1.0 | 390 | 0.3028 | 0.8700 |
71
+ | 0.265 | 1.2 | 468 | 0.3052 | 0.8738 |
72
+ | 0.2593 | 1.4 | 546 | 0.2983 | 0.8735 |
73
+ | 0.2537 | 1.6 | 624 | 0.2977 | 0.8754 |
74
+ | 0.2558 | 1.8 | 702 | 0.2911 | 0.8774 |
75
+ | 0.2476 | 1.99 | 780 | 0.2907 | 0.8751 |
76
+ | 0.1941 | 2.19 | 858 | 0.3151 | 0.8774 |
77
+ | 0.1873 | 2.39 | 936 | 0.3104 | 0.8764 |
78
+ | 0.1869 | 2.59 | 1014 | 0.3181 | 0.8771 |
79
+ | 0.1807 | 2.79 | 1092 | 0.3148 | 0.8764 |
80
+ | 0.1967 | 2.99 | 1170 | 0.3141 | 0.8766 |
81
+
82
+
83
+ ### Framework versions
84
+
85
+ - Transformers 4.35.0.dev0
86
+ - Pytorch 2.1.0+cu118
87
+ - Datasets 2.14.6
88
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/scratch1/zhejianz/hgf/models/distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "finetuning_task": "imdb",
11
+ "hidden_dim": 3072,
12
+ "id2label": {
13
+ "0": "neg",
14
+ "1": "pos"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "label2id": {
18
+ "neg": 0,
19
+ "pos": 1
20
+ },
21
+ "max_position_embeddings": 512,
22
+ "model_type": "distilbert",
23
+ "n_heads": 12,
24
+ "n_layers": 6,
25
+ "pad_token_id": 0,
26
+ "problem_type": "single_label_classification",
27
+ "qa_dropout": 0.1,
28
+ "seq_classif_dropout": 0.2,
29
+ "sinusoidal_pos_embds": false,
30
+ "tie_weights_": true,
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.35.0.dev0",
33
+ "vocab_size": 30522
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3145ed4182139c93ade86c89e51416ad2e2dae9cdad9712d8869d108d9c1eb09
3
+ size 267832560
runs/Nov03_19-55-46_d11-03.hpc.usc.edu/events.out.tfevents.1699066677.d11-03.hpc.usc.edu.198644.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce26b6fc5144b3a6c23e5d8d00c45f02ad16a51ac85b02c09e64d3ec59f7ace1
3
+ size 11944
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": 1000000000000000019884624838656,
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:742d75f6c495eebc5bb4c7f02515ffa1019b4e0b310576fae1ec6d38de76261e
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff