DTang161 commited on
Commit
dce98c6
1 Parent(s): 22555f2

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-2-7b-hf
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.11.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-hf",
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.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
+ "o_proj",
24
+ "q_proj",
25
+ "v_proj",
26
+ "k_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:b54c36edd75b5eed19ef90ba1da1d948e52cde10864f128db7f0e3aab9d5e048
3
+ size 67143296
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38a318eb9097273fda0669001c884b891333a291fdadee62e3d99e3509f27df4
3
+ size 134433530
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cec0290eb3591f743a8efb0237b4544acb652c1e0fc9bbcd0efd596bea49e4f1
3
+ size 14448
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ef2e18f955a4490b1e3039b9b768a78d6e64a794560960476c45e294717e248
3
+ size 14448
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baff294849b6e9e0022d27a64c0c4007963efe83a8e5140790d315a7791b07d1
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
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_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
trainer_state.json ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.66991126537323,
3
+ "best_model_checkpoint": "llama2_short/checkpoint-400",
4
+ "epoch": 3.8095238095238093,
5
+ "eval_steps": 25,
6
+ "global_step": 400,
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.23809523809523808,
13
+ "grad_norm": 0.09585642069578171,
14
+ "learning_rate": 9.986018985905901e-05,
15
+ "loss": 0.8756,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.23809523809523808,
20
+ "eval_loss": 0.8215582370758057,
21
+ "eval_runtime": 31.8561,
22
+ "eval_samples_per_second": 3.484,
23
+ "eval_steps_per_second": 0.439,
24
+ "step": 25
25
+ },
26
+ {
27
+ "epoch": 0.47619047619047616,
28
+ "grad_norm": 0.09733700007200241,
29
+ "learning_rate": 9.944154131125642e-05,
30
+ "loss": 0.789,
31
+ "step": 50
32
+ },
33
+ {
34
+ "epoch": 0.47619047619047616,
35
+ "eval_loss": 0.7655627131462097,
36
+ "eval_runtime": 31.8837,
37
+ "eval_samples_per_second": 3.481,
38
+ "eval_steps_per_second": 0.439,
39
+ "step": 50
40
+ },
41
+ {
42
+ "epoch": 0.7142857142857143,
43
+ "grad_norm": 0.11074452102184296,
44
+ "learning_rate": 9.874639560909117e-05,
45
+ "loss": 0.759,
46
+ "step": 75
47
+ },
48
+ {
49
+ "epoch": 0.7142857142857143,
50
+ "eval_loss": 0.7467875480651855,
51
+ "eval_runtime": 31.8741,
52
+ "eval_samples_per_second": 3.482,
53
+ "eval_steps_per_second": 0.439,
54
+ "step": 75
55
+ },
56
+ {
57
+ "epoch": 0.9523809523809523,
58
+ "grad_norm": 0.10002691298723221,
59
+ "learning_rate": 9.777864028930705e-05,
60
+ "loss": 0.7402,
61
+ "step": 100
62
+ },
63
+ {
64
+ "epoch": 0.9523809523809523,
65
+ "eval_loss": 0.7353290915489197,
66
+ "eval_runtime": 31.8697,
67
+ "eval_samples_per_second": 3.483,
68
+ "eval_steps_per_second": 0.439,
69
+ "step": 100
70
+ },
71
+ {
72
+ "epoch": 1.1904761904761905,
73
+ "grad_norm": 0.12271334230899811,
74
+ "learning_rate": 9.654368743221022e-05,
75
+ "loss": 0.7267,
76
+ "step": 125
77
+ },
78
+ {
79
+ "epoch": 1.1904761904761905,
80
+ "eval_loss": 0.7255786657333374,
81
+ "eval_runtime": 31.8838,
82
+ "eval_samples_per_second": 3.481,
83
+ "eval_steps_per_second": 0.439,
84
+ "step": 125
85
+ },
86
+ {
87
+ "epoch": 1.4285714285714286,
88
+ "grad_norm": 0.15203851461410522,
89
+ "learning_rate": 9.504844339512095e-05,
90
+ "loss": 0.7228,
91
+ "step": 150
92
+ },
93
+ {
94
+ "epoch": 1.4285714285714286,
95
+ "eval_loss": 0.7192813754081726,
96
+ "eval_runtime": 31.8619,
97
+ "eval_samples_per_second": 3.484,
98
+ "eval_steps_per_second": 0.439,
99
+ "step": 150
100
+ },
101
+ {
102
+ "epoch": 1.6666666666666665,
103
+ "grad_norm": 0.1312723308801651,
104
+ "learning_rate": 9.330127018922194e-05,
105
+ "loss": 0.7173,
106
+ "step": 175
107
+ },
108
+ {
109
+ "epoch": 1.6666666666666665,
110
+ "eval_loss": 0.7122732400894165,
111
+ "eval_runtime": 31.8673,
112
+ "eval_samples_per_second": 3.483,
113
+ "eval_steps_per_second": 0.439,
114
+ "step": 175
115
+ },
116
+ {
117
+ "epoch": 1.9047619047619047,
118
+ "grad_norm": 0.1437642127275467,
119
+ "learning_rate": 9.131193871579975e-05,
120
+ "loss": 0.7194,
121
+ "step": 200
122
+ },
123
+ {
124
+ "epoch": 1.9047619047619047,
125
+ "eval_loss": 0.7064856886863708,
126
+ "eval_runtime": 31.8744,
127
+ "eval_samples_per_second": 3.482,
128
+ "eval_steps_per_second": 0.439,
129
+ "step": 200
130
+ },
131
+ {
132
+ "epoch": 2.142857142857143,
133
+ "grad_norm": 0.16143007576465607,
134
+ "learning_rate": 8.90915741234015e-05,
135
+ "loss": 0.6987,
136
+ "step": 225
137
+ },
138
+ {
139
+ "epoch": 2.142857142857143,
140
+ "eval_loss": 0.7001689076423645,
141
+ "eval_runtime": 31.8599,
142
+ "eval_samples_per_second": 3.484,
143
+ "eval_steps_per_second": 0.439,
144
+ "step": 225
145
+ },
146
+ {
147
+ "epoch": 2.380952380952381,
148
+ "grad_norm": 0.1549287736415863,
149
+ "learning_rate": 8.665259359149132e-05,
150
+ "loss": 0.6941,
151
+ "step": 250
152
+ },
153
+ {
154
+ "epoch": 2.380952380952381,
155
+ "eval_loss": 0.6950200200080872,
156
+ "eval_runtime": 31.9601,
157
+ "eval_samples_per_second": 3.473,
158
+ "eval_steps_per_second": 0.438,
159
+ "step": 250
160
+ },
161
+ {
162
+ "epoch": 2.619047619047619,
163
+ "grad_norm": 0.15042544901371002,
164
+ "learning_rate": 8.400863688854597e-05,
165
+ "loss": 0.6987,
166
+ "step": 275
167
+ },
168
+ {
169
+ "epoch": 2.619047619047619,
170
+ "eval_loss": 0.6901896595954895,
171
+ "eval_runtime": 31.9342,
172
+ "eval_samples_per_second": 3.476,
173
+ "eval_steps_per_second": 0.438,
174
+ "step": 275
175
+ },
176
+ {
177
+ "epoch": 2.857142857142857,
178
+ "grad_norm": 0.17507144808769226,
179
+ "learning_rate": 8.117449009293668e-05,
180
+ "loss": 0.6953,
181
+ "step": 300
182
+ },
183
+ {
184
+ "epoch": 2.857142857142857,
185
+ "eval_loss": 0.6860001087188721,
186
+ "eval_runtime": 31.8997,
187
+ "eval_samples_per_second": 3.48,
188
+ "eval_steps_per_second": 0.439,
189
+ "step": 300
190
+ },
191
+ {
192
+ "epoch": 3.0952380952380953,
193
+ "grad_norm": 0.16489411890506744,
194
+ "learning_rate": 7.81660029031811e-05,
195
+ "loss": 0.6832,
196
+ "step": 325
197
+ },
198
+ {
199
+ "epoch": 3.0952380952380953,
200
+ "eval_loss": 0.681731104850769,
201
+ "eval_runtime": 31.8876,
202
+ "eval_samples_per_second": 3.481,
203
+ "eval_steps_per_second": 0.439,
204
+ "step": 325
205
+ },
206
+ {
207
+ "epoch": 3.3333333333333335,
208
+ "grad_norm": 0.17146223783493042,
209
+ "learning_rate": 7.500000000000001e-05,
210
+ "loss": 0.6784,
211
+ "step": 350
212
+ },
213
+ {
214
+ "epoch": 3.3333333333333335,
215
+ "eval_loss": 0.6773594617843628,
216
+ "eval_runtime": 31.8931,
217
+ "eval_samples_per_second": 3.48,
218
+ "eval_steps_per_second": 0.439,
219
+ "step": 350
220
+ },
221
+ {
222
+ "epoch": 3.571428571428571,
223
+ "grad_norm": 0.1854155957698822,
224
+ "learning_rate": 7.169418695587791e-05,
225
+ "loss": 0.6756,
226
+ "step": 375
227
+ },
228
+ {
229
+ "epoch": 3.571428571428571,
230
+ "eval_loss": 0.6735982298851013,
231
+ "eval_runtime": 31.966,
232
+ "eval_samples_per_second": 3.472,
233
+ "eval_steps_per_second": 0.438,
234
+ "step": 375
235
+ },
236
+ {
237
+ "epoch": 3.8095238095238093,
238
+ "grad_norm": 0.19128429889678955,
239
+ "learning_rate": 6.826705121831976e-05,
240
+ "loss": 0.6771,
241
+ "step": 400
242
+ },
243
+ {
244
+ "epoch": 3.8095238095238093,
245
+ "eval_loss": 0.66991126537323,
246
+ "eval_runtime": 31.8972,
247
+ "eval_samples_per_second": 3.48,
248
+ "eval_steps_per_second": 0.439,
249
+ "step": 400
250
+ }
251
+ ],
252
+ "logging_steps": 25,
253
+ "max_steps": 1050,
254
+ "num_input_tokens_seen": 0,
255
+ "num_train_epochs": 10,
256
+ "save_steps": 25,
257
+ "stateful_callbacks": {
258
+ "EarlyStoppingCallback": {
259
+ "args": {
260
+ "early_stopping_patience": 10,
261
+ "early_stopping_threshold": 0.0
262
+ },
263
+ "attributes": {
264
+ "early_stopping_patience_counter": 0
265
+ }
266
+ },
267
+ "TrainerControl": {
268
+ "args": {
269
+ "should_epoch_stop": false,
270
+ "should_evaluate": false,
271
+ "should_log": false,
272
+ "should_save": true,
273
+ "should_training_stop": false
274
+ },
275
+ "attributes": {}
276
+ }
277
+ },
278
+ "total_flos": 2.6047102326512026e+17,
279
+ "train_batch_size": 4,
280
+ "trial_name": null,
281
+ "trial_params": null
282
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:074758dd0f1f20124c1ac3ee7a6936af1872f0891321dbe41b10b4f0d3aed993
3
+ size 5432