MohamedIFQ commited on
Commit
01a2bb9
1 Parent(s): c9cb892

Upload 8 files

Browse files
README.md CHANGED
@@ -1,3 +1,202 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
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.11.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
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": 16,
14
+ "lora_dropout": 0.05,
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
+ "q_proj",
24
+ "k_proj",
25
+ "v_proj",
26
+ "o_proj"
27
+ ],
28
+ "task_type": "CAUSAL_LM",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c94e83e076b8a6f4269e2d7b26997395d6b7e0d6d6f09a3e3a3d998735f2d407
3
+ size 54560368
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25be908dc26603853678be4a63519573d025383de8d1bbce66aaaaac73369507
3
+ size 109267450
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cccd439b958f0e0eda0e71e7c5c69cdecbdabf48748b0d65221edff89ac4b077
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c06099394305ec735a0fc29fd48719c03931a14996759aa393e723301cbb2f3f
3
+ size 1064
trainer_state.json ADDED
@@ -0,0 +1,309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.21111078560352325,
3
+ "best_model_checkpoint": "plantuml-code-generation/checkpoint-200",
4
+ "epoch": 9.30232558139535,
5
+ "eval_steps": 50,
6
+ "global_step": 300,
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.31007751937984496,
13
+ "grad_norm": 59.56515884399414,
14
+ "learning_rate": 3.2000000000000005e-05,
15
+ "loss": 7.4833,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.6201550387596899,
20
+ "grad_norm": 0.5965571999549866,
21
+ "learning_rate": 7.2e-05,
22
+ "loss": 1.2974,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.9302325581395349,
27
+ "grad_norm": 0.3513571321964264,
28
+ "learning_rate": 0.00011200000000000001,
29
+ "loss": 0.6516,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 1.2403100775193798,
34
+ "grad_norm": 0.5511578917503357,
35
+ "learning_rate": 0.000152,
36
+ "loss": 0.5225,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 1.550387596899225,
41
+ "grad_norm": 0.6557414531707764,
42
+ "learning_rate": 0.000192,
43
+ "loss": 0.4245,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 1.550387596899225,
48
+ "eval_bleu_score": 66.6551,
49
+ "eval_levenshtein_similarity": 0.6932,
50
+ "eval_loss": 0.3688744604587555,
51
+ "eval_runtime": 32.7473,
52
+ "eval_samples_per_second": 7.879,
53
+ "eval_steps_per_second": 1.008,
54
+ "eval_structural_distance": 0.5696,
55
+ "step": 50
56
+ },
57
+ {
58
+ "epoch": 1.8604651162790697,
59
+ "grad_norm": 0.278952032327652,
60
+ "learning_rate": 0.00019360000000000002,
61
+ "loss": 0.3261,
62
+ "step": 60
63
+ },
64
+ {
65
+ "epoch": 2.1705426356589146,
66
+ "grad_norm": 0.31165850162506104,
67
+ "learning_rate": 0.0001856,
68
+ "loss": 0.2961,
69
+ "step": 70
70
+ },
71
+ {
72
+ "epoch": 2.4806201550387597,
73
+ "grad_norm": 0.268346905708313,
74
+ "learning_rate": 0.0001776,
75
+ "loss": 0.2914,
76
+ "step": 80
77
+ },
78
+ {
79
+ "epoch": 2.7906976744186047,
80
+ "grad_norm": 0.32657572627067566,
81
+ "learning_rate": 0.0001696,
82
+ "loss": 0.2602,
83
+ "step": 90
84
+ },
85
+ {
86
+ "epoch": 3.10077519379845,
87
+ "grad_norm": 0.3043263554573059,
88
+ "learning_rate": 0.00016160000000000002,
89
+ "loss": 0.2299,
90
+ "step": 100
91
+ },
92
+ {
93
+ "epoch": 3.10077519379845,
94
+ "eval_bleu_score": 73.7774,
95
+ "eval_levenshtein_similarity": 0.7695,
96
+ "eval_loss": 0.25513702630996704,
97
+ "eval_runtime": 33.0142,
98
+ "eval_samples_per_second": 7.815,
99
+ "eval_steps_per_second": 1.0,
100
+ "eval_structural_distance": 0.4371,
101
+ "step": 100
102
+ },
103
+ {
104
+ "epoch": 3.4108527131782944,
105
+ "grad_norm": 0.2804100215435028,
106
+ "learning_rate": 0.00015360000000000002,
107
+ "loss": 0.218,
108
+ "step": 110
109
+ },
110
+ {
111
+ "epoch": 3.7209302325581395,
112
+ "grad_norm": 0.3100726008415222,
113
+ "learning_rate": 0.00014560000000000002,
114
+ "loss": 0.2107,
115
+ "step": 120
116
+ },
117
+ {
118
+ "epoch": 4.0310077519379846,
119
+ "grad_norm": 0.3075805902481079,
120
+ "learning_rate": 0.00013759999999999998,
121
+ "loss": 0.2051,
122
+ "step": 130
123
+ },
124
+ {
125
+ "epoch": 4.341085271317829,
126
+ "grad_norm": 0.2779467701911926,
127
+ "learning_rate": 0.0001296,
128
+ "loss": 0.1664,
129
+ "step": 140
130
+ },
131
+ {
132
+ "epoch": 4.651162790697675,
133
+ "grad_norm": 0.3230448365211487,
134
+ "learning_rate": 0.0001216,
135
+ "loss": 0.1643,
136
+ "step": 150
137
+ },
138
+ {
139
+ "epoch": 4.651162790697675,
140
+ "eval_bleu_score": 76.5742,
141
+ "eval_levenshtein_similarity": 0.7976,
142
+ "eval_loss": 0.21526312828063965,
143
+ "eval_runtime": 33.1871,
144
+ "eval_samples_per_second": 7.774,
145
+ "eval_steps_per_second": 0.994,
146
+ "eval_structural_distance": 0.3959,
147
+ "step": 150
148
+ },
149
+ {
150
+ "epoch": 4.961240310077519,
151
+ "grad_norm": 0.40676575899124146,
152
+ "learning_rate": 0.0001136,
153
+ "loss": 0.1852,
154
+ "step": 160
155
+ },
156
+ {
157
+ "epoch": 5.271317829457364,
158
+ "grad_norm": 0.45079299807548523,
159
+ "learning_rate": 0.0001056,
160
+ "loss": 0.1434,
161
+ "step": 170
162
+ },
163
+ {
164
+ "epoch": 5.5813953488372094,
165
+ "grad_norm": 0.37738654017448425,
166
+ "learning_rate": 9.76e-05,
167
+ "loss": 0.1404,
168
+ "step": 180
169
+ },
170
+ {
171
+ "epoch": 5.891472868217054,
172
+ "grad_norm": 0.333663672208786,
173
+ "learning_rate": 8.960000000000001e-05,
174
+ "loss": 0.1435,
175
+ "step": 190
176
+ },
177
+ {
178
+ "epoch": 6.2015503875969,
179
+ "grad_norm": 0.5026473999023438,
180
+ "learning_rate": 8.16e-05,
181
+ "loss": 0.1302,
182
+ "step": 200
183
+ },
184
+ {
185
+ "epoch": 6.2015503875969,
186
+ "eval_bleu_score": 78.0329,
187
+ "eval_levenshtein_similarity": 0.81,
188
+ "eval_loss": 0.21111078560352325,
189
+ "eval_runtime": 33.2323,
190
+ "eval_samples_per_second": 7.764,
191
+ "eval_steps_per_second": 0.993,
192
+ "eval_structural_distance": 0.3777,
193
+ "step": 200
194
+ },
195
+ {
196
+ "epoch": 6.511627906976744,
197
+ "grad_norm": 0.40623053908348083,
198
+ "learning_rate": 7.36e-05,
199
+ "loss": 0.1165,
200
+ "step": 210
201
+ },
202
+ {
203
+ "epoch": 6.821705426356589,
204
+ "grad_norm": 0.48197492957115173,
205
+ "learning_rate": 6.560000000000001e-05,
206
+ "loss": 0.1335,
207
+ "step": 220
208
+ },
209
+ {
210
+ "epoch": 7.131782945736434,
211
+ "grad_norm": 0.34860748052597046,
212
+ "learning_rate": 5.76e-05,
213
+ "loss": 0.1117,
214
+ "step": 230
215
+ },
216
+ {
217
+ "epoch": 7.441860465116279,
218
+ "grad_norm": 0.42669615149497986,
219
+ "learning_rate": 4.96e-05,
220
+ "loss": 0.0981,
221
+ "step": 240
222
+ },
223
+ {
224
+ "epoch": 7.751937984496124,
225
+ "grad_norm": 0.3821258544921875,
226
+ "learning_rate": 4.16e-05,
227
+ "loss": 0.0957,
228
+ "step": 250
229
+ },
230
+ {
231
+ "epoch": 7.751937984496124,
232
+ "eval_bleu_score": 79.3173,
233
+ "eval_levenshtein_similarity": 0.8195,
234
+ "eval_loss": 0.2125212550163269,
235
+ "eval_runtime": 33.1788,
236
+ "eval_samples_per_second": 7.776,
237
+ "eval_steps_per_second": 0.995,
238
+ "eval_structural_distance": 0.3606,
239
+ "step": 250
240
+ },
241
+ {
242
+ "epoch": 8.062015503875969,
243
+ "grad_norm": 0.32864922285079956,
244
+ "learning_rate": 3.3600000000000004e-05,
245
+ "loss": 0.108,
246
+ "step": 260
247
+ },
248
+ {
249
+ "epoch": 8.372093023255815,
250
+ "grad_norm": 0.5244048237800598,
251
+ "learning_rate": 2.5600000000000002e-05,
252
+ "loss": 0.101,
253
+ "step": 270
254
+ },
255
+ {
256
+ "epoch": 8.682170542635658,
257
+ "grad_norm": 0.3731113374233246,
258
+ "learning_rate": 1.76e-05,
259
+ "loss": 0.0852,
260
+ "step": 280
261
+ },
262
+ {
263
+ "epoch": 8.992248062015504,
264
+ "grad_norm": 0.3745462894439697,
265
+ "learning_rate": 9.600000000000001e-06,
266
+ "loss": 0.0847,
267
+ "step": 290
268
+ },
269
+ {
270
+ "epoch": 9.30232558139535,
271
+ "grad_norm": 0.4434490501880646,
272
+ "learning_rate": 1.6000000000000001e-06,
273
+ "loss": 0.0799,
274
+ "step": 300
275
+ },
276
+ {
277
+ "epoch": 9.30232558139535,
278
+ "eval_bleu_score": 79.4831,
279
+ "eval_levenshtein_similarity": 0.8236,
280
+ "eval_loss": 0.2191912978887558,
281
+ "eval_runtime": 33.1887,
282
+ "eval_samples_per_second": 7.774,
283
+ "eval_steps_per_second": 0.994,
284
+ "eval_structural_distance": 0.3648,
285
+ "step": 300
286
+ }
287
+ ],
288
+ "logging_steps": 10,
289
+ "max_steps": 300,
290
+ "num_input_tokens_seen": 0,
291
+ "num_train_epochs": 10,
292
+ "save_steps": 50,
293
+ "stateful_callbacks": {
294
+ "TrainerControl": {
295
+ "args": {
296
+ "should_epoch_stop": false,
297
+ "should_evaluate": false,
298
+ "should_log": false,
299
+ "should_save": true,
300
+ "should_training_stop": true
301
+ },
302
+ "attributes": {}
303
+ }
304
+ },
305
+ "total_flos": 2.095129907209175e+17,
306
+ "train_batch_size": 8,
307
+ "trial_name": null,
308
+ "trial_params": null
309
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9e9857c240ba37c8362f061ca3ea68de9d592d00408ce2a229addbaf650f297
3
+ size 5176