advit commited on
Commit
8d8d3e3
·
verified ·
1 Parent(s): f2775dc

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: models/tofu_ft_llama2-7b
3
+ library_name: peft
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.14.0
adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "locuslab/tofu_ft_llama2-7b",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 32,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.05,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": null,
21
+ "peft_type": "LORA",
22
+ "r": 8,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "k_proj",
27
+ "gate_proj",
28
+ "o_proj",
29
+ "v_proj",
30
+ "q_proj",
31
+ "up_proj",
32
+ "down_proj"
33
+ ],
34
+ "task_type": "CAUSAL_LM",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0560a70098244d508dba895e0e9a143751d05c5fef07b913a2dcfd543e4985eb
3
+ size 40036488
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<pad>": 32000
3
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ }
38
+ },
39
+ "bos_token": "<s>",
40
+ "clean_up_tokenization_spaces": false,
41
+ "eos_token": "</s>",
42
+ "legacy": false,
43
+ "model_max_length": 1000000000000000019884624838656,
44
+ "pad_token": "</s>",
45
+ "sp_model_kwargs": {},
46
+ "tokenizer_class": "LlamaTokenizer",
47
+ "unk_token": "<unk>",
48
+ "use_default_system_prompt": false
49
+ }
trainer_state.json ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 37.0,
5
+ "eval_steps": 0,
6
+ "global_step": 37,
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
+ "learning_rate": 1e-05,
14
+ "loss": 0.002,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 2.0,
19
+ "grad_norm": 0.5070388375349495,
20
+ "learning_rate": 9.722222222222223e-06,
21
+ "loss": 0.0119,
22
+ "step": 2
23
+ },
24
+ {
25
+ "epoch": 3.0,
26
+ "grad_norm": 0.5070388375349495,
27
+ "learning_rate": 9.444444444444445e-06,
28
+ "loss": 0.0032,
29
+ "step": 3
30
+ },
31
+ {
32
+ "epoch": 4.0,
33
+ "grad_norm": 0.31938507733027843,
34
+ "learning_rate": 9.166666666666666e-06,
35
+ "loss": -0.0015,
36
+ "step": 4
37
+ },
38
+ {
39
+ "epoch": 5.0,
40
+ "grad_norm": 0.31938507733027843,
41
+ "learning_rate": 8.888888888888888e-06,
42
+ "loss": 0.0073,
43
+ "step": 5
44
+ },
45
+ {
46
+ "epoch": 6.0,
47
+ "grad_norm": 0.43541534478865934,
48
+ "learning_rate": 8.611111111111112e-06,
49
+ "loss": -0.0001,
50
+ "step": 6
51
+ },
52
+ {
53
+ "epoch": 7.0,
54
+ "grad_norm": 0.43541534478865934,
55
+ "learning_rate": 8.333333333333334e-06,
56
+ "loss": 0.0014,
57
+ "step": 7
58
+ },
59
+ {
60
+ "epoch": 8.0,
61
+ "grad_norm": 0.5428982959575133,
62
+ "learning_rate": 8.055555555555557e-06,
63
+ "loss": -0.0026,
64
+ "step": 8
65
+ },
66
+ {
67
+ "epoch": 9.0,
68
+ "grad_norm": 0.5428982959575133,
69
+ "learning_rate": 7.77777777777778e-06,
70
+ "loss": 0.0012,
71
+ "step": 9
72
+ },
73
+ {
74
+ "epoch": 10.0,
75
+ "grad_norm": 0.9728643220805211,
76
+ "learning_rate": 7.500000000000001e-06,
77
+ "loss": 0.0027,
78
+ "step": 10
79
+ },
80
+ {
81
+ "epoch": 11.0,
82
+ "grad_norm": 0.9728643220805211,
83
+ "learning_rate": 7.222222222222223e-06,
84
+ "loss": -0.0017,
85
+ "step": 11
86
+ },
87
+ {
88
+ "epoch": 12.0,
89
+ "grad_norm": 0.8713152262560704,
90
+ "learning_rate": 6.944444444444445e-06,
91
+ "loss": -0.0037,
92
+ "step": 12
93
+ },
94
+ {
95
+ "epoch": 13.0,
96
+ "grad_norm": 0.8713152262560704,
97
+ "learning_rate": 6.666666666666667e-06,
98
+ "loss": -0.0057,
99
+ "step": 13
100
+ },
101
+ {
102
+ "epoch": 14.0,
103
+ "grad_norm": 1.2483582246181377,
104
+ "learning_rate": 6.3888888888888885e-06,
105
+ "loss": -0.0042,
106
+ "step": 14
107
+ },
108
+ {
109
+ "epoch": 15.0,
110
+ "grad_norm": 1.2483582246181377,
111
+ "learning_rate": 6.111111111111112e-06,
112
+ "loss": -0.0059,
113
+ "step": 15
114
+ },
115
+ {
116
+ "epoch": 16.0,
117
+ "grad_norm": 1.338516376367072,
118
+ "learning_rate": 5.833333333333334e-06,
119
+ "loss": -0.0054,
120
+ "step": 16
121
+ },
122
+ {
123
+ "epoch": 17.0,
124
+ "grad_norm": 1.338516376367072,
125
+ "learning_rate": 5.555555555555557e-06,
126
+ "loss": -0.0068,
127
+ "step": 17
128
+ },
129
+ {
130
+ "epoch": 18.0,
131
+ "grad_norm": 1.8582031188698118,
132
+ "learning_rate": 5.2777777777777785e-06,
133
+ "loss": -0.0046,
134
+ "step": 18
135
+ },
136
+ {
137
+ "epoch": 19.0,
138
+ "grad_norm": 1.8582031188698118,
139
+ "learning_rate": 5e-06,
140
+ "loss": -0.0113,
141
+ "step": 19
142
+ },
143
+ {
144
+ "epoch": 20.0,
145
+ "grad_norm": 2.091199450117605,
146
+ "learning_rate": 4.722222222222222e-06,
147
+ "loss": -0.0107,
148
+ "step": 20
149
+ },
150
+ {
151
+ "epoch": 21.0,
152
+ "grad_norm": 2.091199450117605,
153
+ "learning_rate": 4.444444444444444e-06,
154
+ "loss": -0.0096,
155
+ "step": 21
156
+ },
157
+ {
158
+ "epoch": 22.0,
159
+ "grad_norm": 2.314746448196812,
160
+ "learning_rate": 4.166666666666667e-06,
161
+ "loss": -0.012,
162
+ "step": 22
163
+ },
164
+ {
165
+ "epoch": 23.0,
166
+ "grad_norm": 2.314746448196812,
167
+ "learning_rate": 3.88888888888889e-06,
168
+ "loss": -0.0153,
169
+ "step": 23
170
+ },
171
+ {
172
+ "epoch": 24.0,
173
+ "grad_norm": 2.2454811354700968,
174
+ "learning_rate": 3.6111111111111115e-06,
175
+ "loss": -0.0111,
176
+ "step": 24
177
+ },
178
+ {
179
+ "epoch": 25.0,
180
+ "grad_norm": 2.2454811354700968,
181
+ "learning_rate": 3.3333333333333333e-06,
182
+ "loss": -0.0088,
183
+ "step": 25
184
+ },
185
+ {
186
+ "epoch": 26.0,
187
+ "grad_norm": 2.811270150717608,
188
+ "learning_rate": 3.055555555555556e-06,
189
+ "loss": -0.0149,
190
+ "step": 26
191
+ },
192
+ {
193
+ "epoch": 27.0,
194
+ "grad_norm": 2.811270150717608,
195
+ "learning_rate": 2.7777777777777783e-06,
196
+ "loss": -0.019,
197
+ "step": 27
198
+ },
199
+ {
200
+ "epoch": 28.0,
201
+ "grad_norm": 2.678124329751125,
202
+ "learning_rate": 2.5e-06,
203
+ "loss": -0.0171,
204
+ "step": 28
205
+ },
206
+ {
207
+ "epoch": 29.0,
208
+ "grad_norm": 2.678124329751125,
209
+ "learning_rate": 2.222222222222222e-06,
210
+ "loss": -0.0129,
211
+ "step": 29
212
+ },
213
+ {
214
+ "epoch": 30.0,
215
+ "grad_norm": 2.596705407383602,
216
+ "learning_rate": 1.944444444444445e-06,
217
+ "loss": -0.0182,
218
+ "step": 30
219
+ },
220
+ {
221
+ "epoch": 31.0,
222
+ "grad_norm": 2.596705407383602,
223
+ "learning_rate": 1.6666666666666667e-06,
224
+ "loss": -0.0202,
225
+ "step": 31
226
+ },
227
+ {
228
+ "epoch": 32.0,
229
+ "grad_norm": 3.201965282085345,
230
+ "learning_rate": 1.3888888888888892e-06,
231
+ "loss": -0.023,
232
+ "step": 32
233
+ },
234
+ {
235
+ "epoch": 33.0,
236
+ "grad_norm": 3.201965282085345,
237
+ "learning_rate": 1.111111111111111e-06,
238
+ "loss": -0.0188,
239
+ "step": 33
240
+ },
241
+ {
242
+ "epoch": 34.0,
243
+ "grad_norm": 2.7138214701675016,
244
+ "learning_rate": 8.333333333333333e-07,
245
+ "loss": -0.0216,
246
+ "step": 34
247
+ },
248
+ {
249
+ "epoch": 35.0,
250
+ "grad_norm": 2.7138214701675016,
251
+ "learning_rate": 5.555555555555555e-07,
252
+ "loss": -0.025,
253
+ "step": 35
254
+ },
255
+ {
256
+ "epoch": 36.0,
257
+ "grad_norm": 3.3327313390783866,
258
+ "learning_rate": 2.7777777777777776e-07,
259
+ "loss": -0.0233,
260
+ "step": 36
261
+ },
262
+ {
263
+ "epoch": 37.0,
264
+ "grad_norm": 3.3327313390783866,
265
+ "learning_rate": 0.0,
266
+ "loss": -0.0247,
267
+ "step": 37
268
+ }
269
+ ],
270
+ "logging_steps": 1,
271
+ "max_steps": 37,
272
+ "num_input_tokens_seen": 0,
273
+ "num_train_epochs": 37,
274
+ "save_steps": 3,
275
+ "stateful_callbacks": {
276
+ "TrainerControl": {
277
+ "args": {
278
+ "should_epoch_stop": false,
279
+ "should_evaluate": false,
280
+ "should_log": false,
281
+ "should_save": true,
282
+ "should_training_stop": true
283
+ },
284
+ "attributes": {}
285
+ }
286
+ },
287
+ "total_flos": 0.0,
288
+ "train_batch_size": 4,
289
+ "trial_name": null,
290
+ "trial_params": null
291
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4006b154120bd245232df602133888bbc044f335b053d300afa0fe124f3e69d
3
+ size 6968