xshubhamx commited on
Commit
9d3c361
1 Parent(s): 44c244f

Upload folder using huggingface_hub

Browse files
training_checkpoints/checkpoint-3858/README.md ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: nlpaueb/legal-bert-base-uncased
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+
201
+
202
+ ### Framework versions
203
+
204
+ - PEFT 0.10.0
training_checkpoints/checkpoint-3858/adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "nlpaueb/legal-bert-base-uncased",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 64,
14
+ "lora_dropout": 0.1,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "dense",
24
+ "key",
25
+ "query",
26
+ "value"
27
+ ],
28
+ "task_type": "SEQ_CLS",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
training_checkpoints/checkpoint-3858/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:519c8d7bd645834bcd5c4acbe1d077a41b94c8e5482c0e2fd85b58d66ee7ae32
3
+ size 104549068
training_checkpoints/checkpoint-3858/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<pad>": 30522
3
+ }
training_checkpoints/checkpoint-3858/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3b13b51919c7542707409122400d152ee350107a3b183467e759361586d9304
3
+ size 21646778
training_checkpoints/checkpoint-3858/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50a2e0970ad67c9479835e60d56d0766a5f86e2a5a01b4cf2792716412e87beb
3
+ size 14244
training_checkpoints/checkpoint-3858/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f38f1b249aaf8c8e423342c75f3cc7103755fc8114c3035e23e2a3c8f20ac148
3
+ size 1064
training_checkpoints/checkpoint-3858/special_tokens_map.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": {
5
+ "content": "<pad>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "sep_token": "[SEP]",
12
+ "unk_token": "[UNK]"
13
+ }
training_checkpoints/checkpoint-3858/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
training_checkpoints/checkpoint-3858/tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "30522": {
44
+ "content": "<pad>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "clean_up_tokenization_spaces": true,
53
+ "cls_token": "[CLS]",
54
+ "do_basic_tokenize": true,
55
+ "do_lower_case": true,
56
+ "mask_token": "[MASK]",
57
+ "model_max_length": 512,
58
+ "never_split": null,
59
+ "pad_token": "<pad>",
60
+ "sep_token": "[SEP]",
61
+ "strip_accents": null,
62
+ "tokenize_chinese_chars": true,
63
+ "tokenizer_class": "BertTokenizer",
64
+ "unk_token": "[UNK]"
65
+ }
training_checkpoints/checkpoint-3858/trainer_state.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7581556537237687,
3
+ "best_model_checkpoint": "legal-bert-lora-no-grad/checkpoint-3858",
4
+ "epoch": 6.0,
5
+ "eval_steps": 500,
6
+ "global_step": 3858,
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.78,
13
+ "learning_rate": 4.870399170554692e-05,
14
+ "loss": 1.5473,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 1.0,
19
+ "eval_accuracy": 0.7172734314484895,
20
+ "eval_f1_macro": 0.3920432121625908,
21
+ "eval_f1_micro": 0.7172734314484894,
22
+ "eval_f1_weighted": 0.6868869808248764,
23
+ "eval_loss": 0.8484711050987244,
24
+ "eval_macro_fpr": 0.027836504093424867,
25
+ "eval_macro_sensitivity": 0.44215864388540455,
26
+ "eval_macro_specificity": 0.9788744549045134,
27
+ "eval_precision": 0.6896842532804647,
28
+ "eval_precision_macro": 0.3892290687521846,
29
+ "eval_recall": 0.7172734314484895,
30
+ "eval_recall_macro": 0.44215864388540455,
31
+ "eval_runtime": 32.4222,
32
+ "eval_samples_per_second": 39.818,
33
+ "eval_steps_per_second": 4.997,
34
+ "eval_weighted_fpr": 0.027383899767424412,
35
+ "eval_weighted_sensitivity": 0.7172734314484895,
36
+ "eval_weighted_specificity": 0.9658433921192108,
37
+ "step": 643
38
+ },
39
+ {
40
+ "epoch": 1.56,
41
+ "learning_rate": 4.740798341109383e-05,
42
+ "loss": 0.7816,
43
+ "step": 1000
44
+ },
45
+ {
46
+ "epoch": 2.0,
47
+ "eval_accuracy": 0.7544539116963594,
48
+ "eval_f1_macro": 0.47513531679703136,
49
+ "eval_f1_micro": 0.7544539116963594,
50
+ "eval_f1_weighted": 0.7304002619527014,
51
+ "eval_loss": 0.7113391757011414,
52
+ "eval_macro_fpr": 0.023051270843305598,
53
+ "eval_macro_sensitivity": 0.5054156753128263,
54
+ "eval_macro_specificity": 0.9817050378554314,
55
+ "eval_precision": 0.7491876907285084,
56
+ "eval_precision_macro": 0.5281699878111706,
57
+ "eval_recall": 0.7544539116963594,
58
+ "eval_recall_macro": 0.5054156753128263,
59
+ "eval_runtime": 33.6622,
60
+ "eval_samples_per_second": 38.352,
61
+ "eval_steps_per_second": 4.813,
62
+ "eval_weighted_fpr": 0.02271912850283093,
63
+ "eval_weighted_sensitivity": 0.7544539116963594,
64
+ "eval_weighted_specificity": 0.9711216561351127,
65
+ "step": 1286
66
+ },
67
+ {
68
+ "epoch": 2.33,
69
+ "learning_rate": 4.6111975116640746e-05,
70
+ "loss": 0.6956,
71
+ "step": 1500
72
+ },
73
+ {
74
+ "epoch": 3.0,
75
+ "eval_accuracy": 0.7986057319907048,
76
+ "eval_f1_macro": 0.5439483491438576,
77
+ "eval_f1_micro": 0.7986057319907048,
78
+ "eval_f1_weighted": 0.7833451448204543,
79
+ "eval_loss": 0.6460158824920654,
80
+ "eval_macro_fpr": 0.01844352926124183,
81
+ "eval_macro_sensitivity": 0.5700868724489073,
82
+ "eval_macro_specificity": 0.9848453217277398,
83
+ "eval_precision": 0.7793241511142787,
84
+ "eval_precision_macro": 0.5435553848320287,
85
+ "eval_recall": 0.7986057319907048,
86
+ "eval_recall_macro": 0.5700868724489073,
87
+ "eval_runtime": 33.205,
88
+ "eval_samples_per_second": 38.88,
89
+ "eval_steps_per_second": 4.879,
90
+ "eval_weighted_fpr": 0.01769429699196951,
91
+ "eval_weighted_sensitivity": 0.7986057319907048,
92
+ "eval_weighted_specificity": 0.974074093925392,
93
+ "step": 1929
94
+ },
95
+ {
96
+ "epoch": 3.11,
97
+ "learning_rate": 4.481596682218767e-05,
98
+ "loss": 0.6117,
99
+ "step": 2000
100
+ },
101
+ {
102
+ "epoch": 3.89,
103
+ "learning_rate": 4.3519958527734576e-05,
104
+ "loss": 0.4942,
105
+ "step": 2500
106
+ },
107
+ {
108
+ "epoch": 4.0,
109
+ "eval_accuracy": 0.8109992254066615,
110
+ "eval_f1_macro": 0.641318903734146,
111
+ "eval_f1_micro": 0.8109992254066615,
112
+ "eval_f1_weighted": 0.8036671817127167,
113
+ "eval_loss": 0.6429558992385864,
114
+ "eval_macro_fpr": 0.016902452669854486,
115
+ "eval_macro_sensitivity": 0.6670193163886222,
116
+ "eval_macro_specificity": 0.9858199536379567,
117
+ "eval_precision": 0.8014184747492699,
118
+ "eval_precision_macro": 0.6315294283267076,
119
+ "eval_recall": 0.8109992254066615,
120
+ "eval_recall_macro": 0.6670193163886222,
121
+ "eval_runtime": 34.2851,
122
+ "eval_samples_per_second": 37.655,
123
+ "eval_steps_per_second": 4.725,
124
+ "eval_weighted_fpr": 0.016373641121997046,
125
+ "eval_weighted_sensitivity": 0.8109992254066615,
126
+ "eval_weighted_specificity": 0.9763000791626885,
127
+ "step": 2572
128
+ },
129
+ {
130
+ "epoch": 4.67,
131
+ "learning_rate": 4.22239502332815e-05,
132
+ "loss": 0.4088,
133
+ "step": 3000
134
+ },
135
+ {
136
+ "epoch": 5.0,
137
+ "eval_accuracy": 0.8319132455460883,
138
+ "eval_f1_macro": 0.7458887908906745,
139
+ "eval_f1_micro": 0.8319132455460883,
140
+ "eval_f1_weighted": 0.8254435175521364,
141
+ "eval_loss": 0.7148057222366333,
142
+ "eval_macro_fpr": 0.015014171873602745,
143
+ "eval_macro_sensitivity": 0.7444010739541649,
144
+ "eval_macro_specificity": 0.9871775908314393,
145
+ "eval_precision": 0.8301095647411415,
146
+ "eval_precision_macro": 0.795128331887366,
147
+ "eval_recall": 0.8319132455460883,
148
+ "eval_recall_macro": 0.7444010739541649,
149
+ "eval_runtime": 32.6496,
150
+ "eval_samples_per_second": 39.541,
151
+ "eval_steps_per_second": 4.962,
152
+ "eval_weighted_fpr": 0.014226709499770536,
153
+ "eval_weighted_sensitivity": 0.8319132455460883,
154
+ "eval_weighted_specificity": 0.9757506169255016,
155
+ "step": 3215
156
+ },
157
+ {
158
+ "epoch": 5.44,
159
+ "learning_rate": 4.092794193882841e-05,
160
+ "loss": 0.3722,
161
+ "step": 3500
162
+ },
163
+ {
164
+ "epoch": 6.0,
165
+ "eval_accuracy": 0.8319132455460883,
166
+ "eval_f1_macro": 0.7581556537237687,
167
+ "eval_f1_micro": 0.8319132455460883,
168
+ "eval_f1_weighted": 0.8284954274383471,
169
+ "eval_loss": 0.7203006744384766,
170
+ "eval_macro_fpr": 0.014862611036154928,
171
+ "eval_macro_sensitivity": 0.7604143289637364,
172
+ "eval_macro_specificity": 0.9873237068761225,
173
+ "eval_precision": 0.8282196199964869,
174
+ "eval_precision_macro": 0.7594204389852343,
175
+ "eval_recall": 0.8319132455460883,
176
+ "eval_recall_macro": 0.7604143289637364,
177
+ "eval_runtime": 32.5293,
178
+ "eval_samples_per_second": 39.687,
179
+ "eval_steps_per_second": 4.98,
180
+ "eval_weighted_fpr": 0.014226709499770536,
181
+ "eval_weighted_sensitivity": 0.8319132455460883,
182
+ "eval_weighted_specificity": 0.9779423575957491,
183
+ "step": 3858
184
+ }
185
+ ],
186
+ "logging_steps": 500,
187
+ "max_steps": 19290,
188
+ "num_train_epochs": 30,
189
+ "save_steps": 500,
190
+ "total_flos": 8366917304180736.0,
191
+ "trial_name": null,
192
+ "trial_params": null
193
+ }
training_checkpoints/checkpoint-3858/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdaaee2ea8c5545699d181a8364cb087d92c47cb0d5f67dcc808085b20d2a66a
3
+ size 4600
training_checkpoints/checkpoint-3858/vocab.txt ADDED
The diff for this file is too large to render. See raw diff