nguyen1207 commited on
Commit
fe20bea
1 Parent(s): 75a1cfc

add model adapter

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoint-21170/tokenizer.json filter=lfs diff=lfs merge=lfs -text
checkpoint-21170/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: ''
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
+ ### Framework versions
201
+
202
+ - PEFT 0.9.0
checkpoint-21170/adapter_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 32,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 8,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "key",
23
+ "query"
24
+ ],
25
+ "task_type": "FEATURE_EXTRACTION",
26
+ "use_dora": false,
27
+ "use_rslora": false
28
+ }
checkpoint-21170/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c18a76ea7b61cb572e03d16f9615e4643635192c441cd099e19ed07523f46079
3
+ size 3159000
checkpoint-21170/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6e51988ce5f6a31231fed936bcf6ced7af735b0c6b2a9b6311197a5c75d500e
3
+ size 6372346
checkpoint-21170/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:289d9a23fe1dbe78cf989d441719a4887b91b21696c7ed15ac778b1087efc2ea
3
+ size 14244
checkpoint-21170/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8873ad57fea546b50339a8abe08cd25381da881e029031769b96e70911ae633
3
+ size 1064
checkpoint-21170/special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
checkpoint-21170/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a4661b2cb6b8a1007906509fe18cbfbc03062a086102bf7b80cfedb80f16c37
3
+ size 17082854
checkpoint-21170/tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
checkpoint-21170/trainer_state.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.3467291593551636,
3
+ "best_model_checkpoint": "./models/e5_weighted_3\\checkpoint-21170",
4
+ "epoch": 10.0,
5
+ "eval_steps": 4234,
6
+ "global_step": 21170,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 2.0,
13
+ "grad_norm": 0.6739985346794128,
14
+ "learning_rate": 1.8e-05,
15
+ "loss": 0.4895,
16
+ "step": 4234
17
+ },
18
+ {
19
+ "epoch": 2.0,
20
+ "eval_accuracy": 0.6055607917059378,
21
+ "eval_f1_0: ": 0.0,
22
+ "eval_f1_1: ": 0.7543293219841503,
23
+ "eval_loss": 0.4801671504974365,
24
+ "eval_precision_0: ": 0.0,
25
+ "eval_precision_1: ": 0.6055607917059378,
26
+ "eval_recall_0: ": 0.0,
27
+ "eval_recall_1: ": 1.0,
28
+ "eval_runtime": 695.7116,
29
+ "eval_samples_per_second": 3.05,
30
+ "eval_steps_per_second": 3.05,
31
+ "step": 4234
32
+ },
33
+ {
34
+ "epoch": 4.0,
35
+ "grad_norm": 1.520650863647461,
36
+ "learning_rate": 1.6000000000000003e-05,
37
+ "loss": 0.474,
38
+ "step": 8468
39
+ },
40
+ {
41
+ "epoch": 4.0,
42
+ "eval_accuracy": 0.6710650329877474,
43
+ "eval_f1_0: ": 0.3102766798418972,
44
+ "eval_f1_1: ": 0.7840346534653465,
45
+ "eval_loss": 0.4519682228565216,
46
+ "eval_precision_0: ": 0.8971428571428571,
47
+ "eval_precision_1: ": 0.6507447354904982,
48
+ "eval_recall_0: ": 0.1875746714456392,
49
+ "eval_recall_1: ": 0.9859922178988327,
50
+ "eval_runtime": 685.0371,
51
+ "eval_samples_per_second": 3.098,
52
+ "eval_steps_per_second": 3.098,
53
+ "step": 8468
54
+ },
55
+ {
56
+ "epoch": 6.0,
57
+ "grad_norm": 0.5096299648284912,
58
+ "learning_rate": 1.4e-05,
59
+ "loss": 0.4505,
60
+ "step": 12702
61
+ },
62
+ {
63
+ "epoch": 6.0,
64
+ "eval_accuracy": 0.7445805843543827,
65
+ "eval_f1_0: ": 0.5505804311774462,
66
+ "eval_f1_1: ": 0.8215931533903884,
67
+ "eval_loss": 0.42401960492134094,
68
+ "eval_precision_0: ": 0.8997289972899729,
69
+ "eval_precision_1: ": 0.7119224187107815,
70
+ "eval_recall_0: ": 0.3966547192353644,
71
+ "eval_recall_1: ": 0.9712062256809338,
72
+ "eval_runtime": 684.6385,
73
+ "eval_samples_per_second": 3.099,
74
+ "eval_steps_per_second": 3.099,
75
+ "step": 12702
76
+ },
77
+ {
78
+ "epoch": 8.0,
79
+ "grad_norm": 0.8480051755905151,
80
+ "learning_rate": 1.2e-05,
81
+ "loss": 0.418,
82
+ "step": 16936
83
+ },
84
+ {
85
+ "epoch": 8.0,
86
+ "eval_accuracy": 0.8044297832233742,
87
+ "eval_f1_0: ": 0.7182620502376104,
88
+ "eval_f1_1: ": 0.85023457235655,
89
+ "eval_loss": 0.37760457396507263,
90
+ "eval_precision_0: ": 0.8317610062893082,
91
+ "eval_precision_1: ": 0.7927321668909825,
92
+ "eval_recall_0: ": 0.6320191158900836,
93
+ "eval_recall_1: ": 0.9167315175097276,
94
+ "eval_runtime": 680.6302,
95
+ "eval_samples_per_second": 3.118,
96
+ "eval_steps_per_second": 3.118,
97
+ "step": 16936
98
+ },
99
+ {
100
+ "epoch": 10.0,
101
+ "grad_norm": 0.9994410872459412,
102
+ "learning_rate": 1e-05,
103
+ "loss": 0.3911,
104
+ "step": 21170
105
+ },
106
+ {
107
+ "epoch": 10.0,
108
+ "eval_accuracy": 0.8185673892554194,
109
+ "eval_f1_0: ": 0.752411575562701,
110
+ "eval_f1_1: ": 0.8568240981777613,
111
+ "eval_loss": 0.3467291593551636,
112
+ "eval_precision_0: ": 0.8147632311977716,
113
+ "eval_precision_1: ": 0.8205128205128205,
114
+ "eval_recall_0: ": 0.6989247311827957,
115
+ "eval_recall_1: ": 0.8964980544747082,
116
+ "eval_runtime": 673.4114,
117
+ "eval_samples_per_second": 3.151,
118
+ "eval_steps_per_second": 3.151,
119
+ "step": 21170
120
+ }
121
+ ],
122
+ "logging_steps": 4234,
123
+ "max_steps": 42340,
124
+ "num_input_tokens_seen": 0,
125
+ "num_train_epochs": 20,
126
+ "save_steps": 4234,
127
+ "total_flos": 2.448451500060672e+16,
128
+ "train_batch_size": 1,
129
+ "trial_name": null,
130
+ "trial_params": null
131
+ }
checkpoint-21170/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef0fa3c600e1f2013e59655213a567ae15af751b91e56b48133bdd9bd5872e8d
3
+ size 4920