AmitTewari commited on
Commit
3fadda4
·
verified ·
1 Parent(s): af199e4

AmitTewari/LegalPro-BERT

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google-bert/bert-base-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: test_trainer
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
+ # test_trainer
20
+
21
+ This model is a fine-tuned version of [google-bert/bert-base-cased](https://huggingface.co/google-bert/bert-base-cased) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.5712
24
+ - Precision: 0.8669
25
+ - Recall: 0.8669
26
+ - F1: 0.8669
27
+ - Accuracy: 0.8669
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: 5e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 3
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
+ | 0.7396 | 1.0 | 7500 | 0.6680 | 0.8223 | 0.8223 | 0.8223 | 0.8223 |
59
+ | 0.4939 | 2.0 | 15000 | 0.5864 | 0.8515 | 0.8515 | 0.8515 | 0.8515 |
60
+ | 0.3209 | 3.0 | 22500 | 0.5712 | 0.8669 | 0.8669 | 0.8669 | 0.8669 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.40.2
66
+ - Pytorch 2.2.1+cu121
67
+ - Datasets 2.19.1
68
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9",
23
+ "10": "LABEL_10",
24
+ "11": "LABEL_11",
25
+ "12": "LABEL_12",
26
+ "13": "LABEL_13",
27
+ "14": "LABEL_14",
28
+ "15": "LABEL_15",
29
+ "16": "LABEL_16",
30
+ "17": "LABEL_17",
31
+ "18": "LABEL_18",
32
+ "19": "LABEL_19",
33
+ "20": "LABEL_20",
34
+ "21": "LABEL_21",
35
+ "22": "LABEL_22",
36
+ "23": "LABEL_23",
37
+ "24": "LABEL_24",
38
+ "25": "LABEL_25",
39
+ "26": "LABEL_26",
40
+ "27": "LABEL_27",
41
+ "28": "LABEL_28",
42
+ "29": "LABEL_29",
43
+ "30": "LABEL_30",
44
+ "31": "LABEL_31",
45
+ "32": "LABEL_32",
46
+ "33": "LABEL_33",
47
+ "34": "LABEL_34",
48
+ "35": "LABEL_35",
49
+ "36": "LABEL_36",
50
+ "37": "LABEL_37",
51
+ "38": "LABEL_38",
52
+ "39": "LABEL_39",
53
+ "40": "LABEL_40",
54
+ "41": "LABEL_41",
55
+ "42": "LABEL_42",
56
+ "43": "LABEL_43",
57
+ "44": "LABEL_44",
58
+ "45": "LABEL_45",
59
+ "46": "LABEL_46",
60
+ "47": "LABEL_47",
61
+ "48": "LABEL_48",
62
+ "49": "LABEL_49",
63
+ "50": "LABEL_50",
64
+ "51": "LABEL_51",
65
+ "52": "LABEL_52",
66
+ "53": "LABEL_53",
67
+ "54": "LABEL_54",
68
+ "55": "LABEL_55",
69
+ "56": "LABEL_56",
70
+ "57": "LABEL_57",
71
+ "58": "LABEL_58",
72
+ "59": "LABEL_59",
73
+ "60": "LABEL_60",
74
+ "61": "LABEL_61",
75
+ "62": "LABEL_62",
76
+ "63": "LABEL_63",
77
+ "64": "LABEL_64",
78
+ "65": "LABEL_65",
79
+ "66": "LABEL_66",
80
+ "67": "LABEL_67",
81
+ "68": "LABEL_68",
82
+ "69": "LABEL_69",
83
+ "70": "LABEL_70",
84
+ "71": "LABEL_71",
85
+ "72": "LABEL_72",
86
+ "73": "LABEL_73",
87
+ "74": "LABEL_74",
88
+ "75": "LABEL_75",
89
+ "76": "LABEL_76",
90
+ "77": "LABEL_77",
91
+ "78": "LABEL_78",
92
+ "79": "LABEL_79",
93
+ "80": "LABEL_80",
94
+ "81": "LABEL_81",
95
+ "82": "LABEL_82",
96
+ "83": "LABEL_83",
97
+ "84": "LABEL_84",
98
+ "85": "LABEL_85",
99
+ "86": "LABEL_86",
100
+ "87": "LABEL_87",
101
+ "88": "LABEL_88",
102
+ "89": "LABEL_89",
103
+ "90": "LABEL_90",
104
+ "91": "LABEL_91",
105
+ "92": "LABEL_92",
106
+ "93": "LABEL_93",
107
+ "94": "LABEL_94",
108
+ "95": "LABEL_95",
109
+ "96": "LABEL_96",
110
+ "97": "LABEL_97",
111
+ "98": "LABEL_98",
112
+ "99": "LABEL_99"
113
+ },
114
+ "initializer_range": 0.02,
115
+ "intermediate_size": 3072,
116
+ "label2id": {
117
+ "LABEL_0": 0,
118
+ "LABEL_1": 1,
119
+ "LABEL_10": 10,
120
+ "LABEL_11": 11,
121
+ "LABEL_12": 12,
122
+ "LABEL_13": 13,
123
+ "LABEL_14": 14,
124
+ "LABEL_15": 15,
125
+ "LABEL_16": 16,
126
+ "LABEL_17": 17,
127
+ "LABEL_18": 18,
128
+ "LABEL_19": 19,
129
+ "LABEL_2": 2,
130
+ "LABEL_20": 20,
131
+ "LABEL_21": 21,
132
+ "LABEL_22": 22,
133
+ "LABEL_23": 23,
134
+ "LABEL_24": 24,
135
+ "LABEL_25": 25,
136
+ "LABEL_26": 26,
137
+ "LABEL_27": 27,
138
+ "LABEL_28": 28,
139
+ "LABEL_29": 29,
140
+ "LABEL_3": 3,
141
+ "LABEL_30": 30,
142
+ "LABEL_31": 31,
143
+ "LABEL_32": 32,
144
+ "LABEL_33": 33,
145
+ "LABEL_34": 34,
146
+ "LABEL_35": 35,
147
+ "LABEL_36": 36,
148
+ "LABEL_37": 37,
149
+ "LABEL_38": 38,
150
+ "LABEL_39": 39,
151
+ "LABEL_4": 4,
152
+ "LABEL_40": 40,
153
+ "LABEL_41": 41,
154
+ "LABEL_42": 42,
155
+ "LABEL_43": 43,
156
+ "LABEL_44": 44,
157
+ "LABEL_45": 45,
158
+ "LABEL_46": 46,
159
+ "LABEL_47": 47,
160
+ "LABEL_48": 48,
161
+ "LABEL_49": 49,
162
+ "LABEL_5": 5,
163
+ "LABEL_50": 50,
164
+ "LABEL_51": 51,
165
+ "LABEL_52": 52,
166
+ "LABEL_53": 53,
167
+ "LABEL_54": 54,
168
+ "LABEL_55": 55,
169
+ "LABEL_56": 56,
170
+ "LABEL_57": 57,
171
+ "LABEL_58": 58,
172
+ "LABEL_59": 59,
173
+ "LABEL_6": 6,
174
+ "LABEL_60": 60,
175
+ "LABEL_61": 61,
176
+ "LABEL_62": 62,
177
+ "LABEL_63": 63,
178
+ "LABEL_64": 64,
179
+ "LABEL_65": 65,
180
+ "LABEL_66": 66,
181
+ "LABEL_67": 67,
182
+ "LABEL_68": 68,
183
+ "LABEL_69": 69,
184
+ "LABEL_7": 7,
185
+ "LABEL_70": 70,
186
+ "LABEL_71": 71,
187
+ "LABEL_72": 72,
188
+ "LABEL_73": 73,
189
+ "LABEL_74": 74,
190
+ "LABEL_75": 75,
191
+ "LABEL_76": 76,
192
+ "LABEL_77": 77,
193
+ "LABEL_78": 78,
194
+ "LABEL_79": 79,
195
+ "LABEL_8": 8,
196
+ "LABEL_80": 80,
197
+ "LABEL_81": 81,
198
+ "LABEL_82": 82,
199
+ "LABEL_83": 83,
200
+ "LABEL_84": 84,
201
+ "LABEL_85": 85,
202
+ "LABEL_86": 86,
203
+ "LABEL_87": 87,
204
+ "LABEL_88": 88,
205
+ "LABEL_89": 89,
206
+ "LABEL_9": 9,
207
+ "LABEL_90": 90,
208
+ "LABEL_91": 91,
209
+ "LABEL_92": 92,
210
+ "LABEL_93": 93,
211
+ "LABEL_94": 94,
212
+ "LABEL_95": 95,
213
+ "LABEL_96": 96,
214
+ "LABEL_97": 97,
215
+ "LABEL_98": 98,
216
+ "LABEL_99": 99
217
+ },
218
+ "layer_norm_eps": 1e-12,
219
+ "max_position_embeddings": 512,
220
+ "model_type": "bert",
221
+ "num_attention_heads": 12,
222
+ "num_hidden_layers": 12,
223
+ "pad_token_id": 0,
224
+ "position_embedding_type": "absolute",
225
+ "problem_type": "single_label_classification",
226
+ "torch_dtype": "float32",
227
+ "transformers_version": "4.40.2",
228
+ "type_vocab_size": 2,
229
+ "use_cache": true,
230
+ "vocab_size": 28996
231
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afb8c49174ec87efe8c4e990366d6a07a13e25ee08df9bea0329e380920de95e
3
+ size 433572216
runs/May16_04-52-01_58394d5d4d26/events.out.tfevents.1715835138.58394d5d4d26.4795.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03b0e1ad1a30b711b4da4f829885e8b63a3cb77b481d1b00f676b9a34ed9af78
3
+ size 11261
runs/May16_05-16-56_58394d5d4d26/events.out.tfevents.1715836622.58394d5d4d26.4795.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44e25f5fabb7f076dab718869c341684601ed5563df4689a9c48ad525126c8a1
3
+ size 9161
runs/May16_05-23-29_58394d5d4d26/events.out.tfevents.1715837015.58394d5d4d26.19926.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5097453331900ee92e3d725dc7546ad796d611e3d152268282fcb56ee79d4cb8
3
+ size 20191
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": false,
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": "BertTokenizer",
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:575d8a020618d92414c86b0d32a04fb896007810f8b1cf61ce12e02fae0f3ebe
3
+ size 4984
vocab.txt ADDED
The diff for this file is too large to render. See raw diff