devanshrj commited on
Commit
44bc811
1 Parent(s): 14e6108

End of training

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: roberta-base_gpt-4o-2024-05-13_gpt-4o-mini-2024-07-18_20240913_044355
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
+ # roberta-base_gpt-4o-2024-05-13_gpt-4o-mini-2024-07-18_20240913_044355
20
+
21
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.4503
24
+ - Accuracy: 0.8026
25
+ - F1: 0.8832
26
+ - Precision: 0.8292
27
+ - Recall: 0.9448
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: 2e-05
47
+ - train_batch_size: 32
48
+ - eval_batch_size: 8
49
+ - seed: 420
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 5
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
58
+ | 0.4781 | 1.0 | 871 | 0.4503 | 0.8026 | 0.8832 | 0.8292 | 0.9448 |
59
+ | 0.4526 | 2.0 | 1742 | 0.4536 | 0.8048 | 0.8822 | 0.8434 | 0.9248 |
60
+ | 0.424 | 3.0 | 2613 | 0.4529 | 0.8052 | 0.8837 | 0.8362 | 0.9370 |
61
+ | 0.3789 | 4.0 | 3484 | 0.4970 | 0.8029 | 0.8826 | 0.8336 | 0.9379 |
62
+ | 0.3275 | 5.0 | 4355 | 0.5587 | 0.7945 | 0.8777 | 0.8286 | 0.9330 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.40.2
68
+ - Pytorch 2.4.1+cu121
69
+ - Datasets 2.21.0
70
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8025848142164782,
4
+ "eval_f1": 0.883240970762469,
5
+ "eval_loss": 0.4503476321697235,
6
+ "eval_precision": 0.8292070326515967,
7
+ "eval_recall": 0.9448078495502862,
8
+ "eval_runtime": 28.88,
9
+ "eval_samples_per_second": 107.168,
10
+ "eval_steps_per_second": 13.4,
11
+ "test_samples": 3095,
12
+ "total_flos": 3.66540011222016e+16,
13
+ "train_loss": 0.4122221043408259,
14
+ "train_runtime": 3728.8568,
15
+ "train_samples": 27862,
16
+ "train_samples_per_second": 37.36,
17
+ "train_steps_per_second": 1.168
18
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "roberta-base",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "problem_type": "single_label_classification",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.40.2",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 50265
28
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baae04ea33eba37f6bbb4d354a8e9889c98eda6472879802651d6e7300065293
3
+ size 498612824
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
test_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8025848142164782,
4
+ "eval_f1": 0.883240970762469,
5
+ "eval_loss": 0.4503476321697235,
6
+ "eval_precision": 0.8292070326515967,
7
+ "eval_recall": 0.9448078495502862,
8
+ "eval_runtime": 28.88,
9
+ "eval_samples_per_second": 107.168,
10
+ "eval_steps_per_second": 13.4,
11
+ "test_samples": 3095
12
+ }
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
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 3.66540011222016e+16,
4
+ "train_loss": 0.4122221043408259,
5
+ "train_runtime": 3728.8568,
6
+ "train_samples": 27862,
7
+ "train_samples_per_second": 37.36,
8
+ "train_steps_per_second": 1.168
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4503476321697235,
3
+ "best_model_checkpoint": "checkpoints/bert/roberta-base_gpt-4o-2024-05-13_gpt-4o-mini-2024-07-18_20240913_044355/checkpoint-871",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4355,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "grad_norm": 2.2520592212677,
14
+ "learning_rate": 1.6000000000000003e-05,
15
+ "loss": 0.4781,
16
+ "step": 871
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.8025848142164782,
21
+ "eval_f1": 0.883240970762469,
22
+ "eval_loss": 0.4503476321697235,
23
+ "eval_precision": 0.8292070326515967,
24
+ "eval_recall": 0.9448078495502862,
25
+ "eval_runtime": 28.9227,
26
+ "eval_samples_per_second": 107.009,
27
+ "eval_steps_per_second": 13.38,
28
+ "step": 871
29
+ },
30
+ {
31
+ "epoch": 2.0,
32
+ "grad_norm": 3.9907314777374268,
33
+ "learning_rate": 1.2e-05,
34
+ "loss": 0.4526,
35
+ "step": 1742
36
+ },
37
+ {
38
+ "epoch": 2.0,
39
+ "eval_accuracy": 0.8048465266558966,
40
+ "eval_f1": 0.8822152886115444,
41
+ "eval_loss": 0.453591912984848,
42
+ "eval_precision": 0.843400447427293,
43
+ "eval_recall": 0.9247751430907605,
44
+ "eval_runtime": 28.9179,
45
+ "eval_samples_per_second": 107.027,
46
+ "eval_steps_per_second": 13.383,
47
+ "step": 1742
48
+ },
49
+ {
50
+ "epoch": 3.0,
51
+ "grad_norm": 3.8395891189575195,
52
+ "learning_rate": 8.000000000000001e-06,
53
+ "loss": 0.424,
54
+ "step": 2613
55
+ },
56
+ {
57
+ "epoch": 3.0,
58
+ "eval_accuracy": 0.8051696284329564,
59
+ "eval_f1": 0.8837478311162522,
60
+ "eval_loss": 0.4529026448726654,
61
+ "eval_precision": 0.836191171105436,
62
+ "eval_recall": 0.9370400654129191,
63
+ "eval_runtime": 28.9142,
64
+ "eval_samples_per_second": 107.041,
65
+ "eval_steps_per_second": 13.384,
66
+ "step": 2613
67
+ },
68
+ {
69
+ "epoch": 4.0,
70
+ "grad_norm": 11.389909744262695,
71
+ "learning_rate": 4.000000000000001e-06,
72
+ "loss": 0.3789,
73
+ "step": 3484
74
+ },
75
+ {
76
+ "epoch": 4.0,
77
+ "eval_accuracy": 0.802907915993538,
78
+ "eval_f1": 0.8826471719892266,
79
+ "eval_loss": 0.49696657061576843,
80
+ "eval_precision": 0.8335755813953488,
81
+ "eval_recall": 0.937857726901063,
82
+ "eval_runtime": 28.9149,
83
+ "eval_samples_per_second": 107.038,
84
+ "eval_steps_per_second": 13.384,
85
+ "step": 3484
86
+ },
87
+ {
88
+ "epoch": 5.0,
89
+ "grad_norm": 11.702038764953613,
90
+ "learning_rate": 0.0,
91
+ "loss": 0.3275,
92
+ "step": 4355
93
+ },
94
+ {
95
+ "epoch": 5.0,
96
+ "eval_accuracy": 0.7945072697899839,
97
+ "eval_f1": 0.8776923076923077,
98
+ "eval_loss": 0.558699369430542,
99
+ "eval_precision": 0.8286129266521424,
100
+ "eval_recall": 0.9329517579721995,
101
+ "eval_runtime": 28.913,
102
+ "eval_samples_per_second": 107.045,
103
+ "eval_steps_per_second": 13.385,
104
+ "step": 4355
105
+ },
106
+ {
107
+ "epoch": 5.0,
108
+ "step": 4355,
109
+ "total_flos": 3.66540011222016e+16,
110
+ "train_loss": 0.4122221043408259,
111
+ "train_runtime": 3728.8568,
112
+ "train_samples_per_second": 37.36,
113
+ "train_steps_per_second": 1.168
114
+ }
115
+ ],
116
+ "logging_steps": 500,
117
+ "max_steps": 4355,
118
+ "num_input_tokens_seen": 0,
119
+ "num_train_epochs": 5,
120
+ "save_steps": 500,
121
+ "total_flos": 3.66540011222016e+16,
122
+ "train_batch_size": 32,
123
+ "trial_name": null,
124
+ "trial_params": null
125
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32a901c5ee0f415b18580c80834a8ac7b9aa6a2b92da61d1bee1cf6cc618dffa
3
+ size 4984
vocab.json ADDED
The diff for this file is too large to render. See raw diff