UniversalAlgorithmic commited on
Commit
332095d
·
verified ·
1 Parent(s): 63400ae

Upload 14 files

Browse files
sst2/README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ language:
4
+ - en
5
+ license: apache-2.0
6
+ base_model: google-bert/bert-base-cased
7
+ tags:
8
+ - generated_from_trainer
9
+ datasets:
10
+ - glue
11
+ metrics:
12
+ - accuracy
13
+ model-index:
14
+ - name: sst2
15
+ results:
16
+ - task:
17
+ name: Text Classification
18
+ type: text-classification
19
+ dataset:
20
+ name: GLUE SST2
21
+ type: glue
22
+ args: sst2
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.9254587155963303
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # sst2
33
+
34
+ This model is a fine-tuned version of [google-bert/bert-base-cased](https://huggingface.co/google-bert/bert-base-cased) on the GLUE SST2 dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.3458
37
+ - Accuracy: 0.9255
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 3e-05
57
+ - train_batch_size: 64
58
+ - eval_batch_size: 8
59
+ - seed: 42
60
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 5.0
63
+
64
+ ### Training results
65
+
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.49.0
71
+ - Pytorch 2.6.0+cu118
72
+ - Datasets 3.3.1
73
+ - Tokenizers 0.21.0
sst2/all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.9254587155963303,
4
+ "eval_loss": 0.34582674503326416,
5
+ "eval_runtime": 1.7414,
6
+ "eval_samples": 872,
7
+ "eval_samples_per_second": 500.735,
8
+ "eval_steps_per_second": 62.592,
9
+ "total_flos": 2.260855007690496e+16,
10
+ "train_loss": 0.1158968044255647,
11
+ "train_runtime": 1593.6448,
12
+ "train_samples": 67349,
13
+ "train_samples_per_second": 211.305,
14
+ "train_steps_per_second": 3.304
15
+ }
sst2/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-cased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "finetuning_task": "sst2",
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "label2id": {
16
+ "negative": 0,
17
+ "positive": 1
18
+ },
19
+ "layer_norm_eps": 1e-12,
20
+ "max_position_embeddings": 512,
21
+ "model_type": "bert",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "pad_token_id": 0,
25
+ "position_embedding_type": "absolute",
26
+ "problem_type": "single_label_classification",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.49.0",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 28996
32
+ }
sst2/eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.9254587155963303,
4
+ "eval_loss": 0.34582674503326416,
5
+ "eval_runtime": 1.7414,
6
+ "eval_samples": 872,
7
+ "eval_samples_per_second": 500.735,
8
+ "eval_steps_per_second": 62.592
9
+ }
sst2/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a808bd7aa9d7b7ef90e3c04108cddd42d0d691750e740933e06e1c5a7c1c194b
3
+ size 440358464
sst2/runs/May14_16-40-12_cs-Precision-7960-Tower/events.out.tfevents.1747255216.cs-Precision-7960-Tower.131188.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d40e582510b4c0e9e501bd6f639228cf515d5ef11690bd1b809bc9fc5849c61
3
+ size 7593
sst2/runs/May14_16-40-12_cs-Precision-7960-Tower/events.out.tfevents.1747256812.cs-Precision-7960-Tower.131188.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acec6d764e5f53d3372d3cb2d80414faf4708e335ab1b06a5f5ed2c146480875
3
+ size 411
sst2/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
+ }
sst2/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
sst2/tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
sst2/train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 2.260855007690496e+16,
4
+ "train_loss": 0.1158968044255647,
5
+ "train_runtime": 1593.6448,
6
+ "train_samples": 67349,
7
+ "train_samples_per_second": 211.305,
8
+ "train_steps_per_second": 3.304
9
+ }
sst2/trainer_state.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 5265,
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.4748338081671415,
13
+ "grad_norm": 6.814696788787842,
14
+ "learning_rate": 2.715099715099715e-05,
15
+ "loss": 0.3253,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.949667616334283,
20
+ "grad_norm": 4.430999279022217,
21
+ "learning_rate": 2.4301994301994302e-05,
22
+ "loss": 0.2149,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.4245014245014245,
27
+ "grad_norm": 5.158424377441406,
28
+ "learning_rate": 2.1452991452991456e-05,
29
+ "loss": 0.1399,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 1.899335232668566,
34
+ "grad_norm": 2.9704854488372803,
35
+ "learning_rate": 1.8603988603988604e-05,
36
+ "loss": 0.1341,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 2.3741690408357075,
41
+ "grad_norm": 5.91994047164917,
42
+ "learning_rate": 1.5754985754985755e-05,
43
+ "loss": 0.0936,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 2.849002849002849,
48
+ "grad_norm": 0.2740668058395386,
49
+ "learning_rate": 1.2905982905982905e-05,
50
+ "loss": 0.088,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 3.3238366571699904,
55
+ "grad_norm": 0.8711889386177063,
56
+ "learning_rate": 1.0056980056980058e-05,
57
+ "loss": 0.0658,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 3.798670465337132,
62
+ "grad_norm": 0.9366008639335632,
63
+ "learning_rate": 7.207977207977209e-06,
64
+ "loss": 0.0585,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 4.273504273504273,
69
+ "grad_norm": 0.3185219168663025,
70
+ "learning_rate": 4.358974358974359e-06,
71
+ "loss": 0.0436,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 4.748338081671415,
76
+ "grad_norm": 4.371499061584473,
77
+ "learning_rate": 1.50997150997151e-06,
78
+ "loss": 0.0366,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 5.0,
83
+ "step": 5265,
84
+ "total_flos": 2.260855007690496e+16,
85
+ "train_loss": 0.1158968044255647,
86
+ "train_runtime": 1593.6448,
87
+ "train_samples_per_second": 211.305,
88
+ "train_steps_per_second": 3.304
89
+ }
90
+ ],
91
+ "logging_steps": 500,
92
+ "max_steps": 5265,
93
+ "num_input_tokens_seen": 0,
94
+ "num_train_epochs": 5,
95
+ "save_steps": 500,
96
+ "stateful_callbacks": {
97
+ "TrainerControl": {
98
+ "args": {
99
+ "should_epoch_stop": false,
100
+ "should_evaluate": false,
101
+ "should_log": false,
102
+ "should_save": true,
103
+ "should_training_stop": true
104
+ },
105
+ "attributes": {}
106
+ }
107
+ },
108
+ "total_flos": 2.260855007690496e+16,
109
+ "train_batch_size": 64,
110
+ "trial_name": null,
111
+ "trial_params": null
112
+ }
sst2/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fb16db69f1390bdb968b116f5630f2717ee91945fc410ba21ae283f764273e3
3
+ size 5304
sst2/vocab.txt ADDED
The diff for this file is too large to render. See raw diff