YALCINKAYA commited on
Commit
6a23a66
·
verified ·
1 Parent(s): ae54457

initial fine-tuning commit

Browse files
README.md CHANGED
@@ -1,3 +1,202 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: gpt2-large
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.13.2
adapter_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "gpt2-large",
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": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "c_attn"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_dora": false,
27
+ "use_rslora": false
28
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:882baeee98bc25f5ee9fdfb0b749f73500c9502102de3545b0a04f7aea5b28ef
3
+ size 5907448
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03fd230d76240352b23e44da36b0770213e148218a2a144b4d97b281351ff600
3
+ size 11839418
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6eb620073ea52a8dde43fd0a3aa27ca495b26472ecb993a4ad9f806e5b85641b
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81204bf11235d2f9ed6394a324783f4e06d7a99c4c01104628a6a1a3b17696dd
3
+ size 1064
special_tokens_map.json CHANGED
@@ -1,30 +1,6 @@
1
  {
2
- "bos_token": {
3
- "content": "<|endoftext|>",
4
- "lstrip": false,
5
- "normalized": true,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "eos_token": {
10
- "content": "<|endoftext|>",
11
- "lstrip": false,
12
- "normalized": true,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": {
17
- "content": "<|endoftext|>",
18
- "lstrip": false,
19
- "normalized": true,
20
- "rstrip": false,
21
- "single_word": false
22
- },
23
- "unk_token": {
24
- "content": "<|endoftext|>",
25
- "lstrip": false,
26
- "normalized": true,
27
- "rstrip": false,
28
- "single_word": false
29
- }
30
  }
 
1
  {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  }
tokenizer_config.json CHANGED
@@ -13,15 +13,8 @@
13
  "bos_token": "<|endoftext|>",
14
  "clean_up_tokenization_spaces": false,
15
  "eos_token": "<|endoftext|>",
16
- "max_length": 1024,
17
  "model_max_length": 1024,
18
- "pad_to_multiple_of": null,
19
  "pad_token": "<|endoftext|>",
20
- "pad_token_type_id": 0,
21
- "padding_side": "right",
22
- "stride": 0,
23
  "tokenizer_class": "GPT2Tokenizer",
24
- "truncation_side": "right",
25
- "truncation_strategy": "longest_first",
26
  "unk_token": "<|endoftext|>"
27
  }
 
13
  "bos_token": "<|endoftext|>",
14
  "clean_up_tokenization_spaces": false,
15
  "eos_token": "<|endoftext|>",
 
16
  "model_max_length": 1024,
 
17
  "pad_token": "<|endoftext|>",
 
 
 
18
  "tokenizer_class": "GPT2Tokenizer",
 
 
19
  "unk_token": "<|endoftext|>"
20
  }
trainer_state.json ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 90.0,
5
+ "eval_steps": 500,
6
+ "global_step": 360,
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.5,
13
+ "grad_norm": 0.5093985795974731,
14
+ "learning_rate": 0.0009980973490458728,
15
+ "loss": 2.5467,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 5.0,
20
+ "grad_norm": 0.27049773931503296,
21
+ "learning_rate": 0.000992403876506104,
22
+ "loss": 1.618,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 7.5,
27
+ "grad_norm": 0.22319507598876953,
28
+ "learning_rate": 0.0009829629131445341,
29
+ "loss": 1.3933,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 10.0,
34
+ "grad_norm": 0.2564426362514496,
35
+ "learning_rate": 0.0009698463103929542,
36
+ "loss": 1.2537,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 12.5,
41
+ "grad_norm": 0.29759547114372253,
42
+ "learning_rate": 0.0009531538935183251,
43
+ "loss": 1.1368,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 15.0,
48
+ "grad_norm": 0.39310407638549805,
49
+ "learning_rate": 0.0009330127018922195,
50
+ "loss": 1.0137,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 17.5,
55
+ "grad_norm": 0.4282013475894928,
56
+ "learning_rate": 0.0009095760221444959,
57
+ "loss": 0.9095,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 20.0,
62
+ "grad_norm": 0.5433480143547058,
63
+ "learning_rate": 0.000883022221559489,
64
+ "loss": 0.8259,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 22.5,
69
+ "grad_norm": 0.5130556225776672,
70
+ "learning_rate": 0.0008535533905932737,
71
+ "loss": 0.7432,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 25.0,
76
+ "grad_norm": 0.5033867359161377,
77
+ "learning_rate": 0.0008213938048432696,
78
+ "loss": 0.6756,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 27.5,
83
+ "grad_norm": 0.5322891473770142,
84
+ "learning_rate": 0.0007867882181755231,
85
+ "loss": 0.6123,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 30.0,
90
+ "grad_norm": 0.5658751726150513,
91
+ "learning_rate": 0.00075,
92
+ "loss": 0.567,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 32.5,
97
+ "grad_norm": 0.5688820481300354,
98
+ "learning_rate": 0.0007113091308703497,
99
+ "loss": 0.5171,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 35.0,
104
+ "grad_norm": 0.48720425367355347,
105
+ "learning_rate": 0.0006710100716628344,
106
+ "loss": 0.4825,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 37.5,
111
+ "grad_norm": 0.5325213074684143,
112
+ "learning_rate": 0.0006294095225512603,
113
+ "loss": 0.4498,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 40.0,
118
+ "grad_norm": 0.527807891368866,
119
+ "learning_rate": 0.0005868240888334653,
120
+ "loss": 0.4184,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 42.5,
125
+ "grad_norm": 0.4882418215274811,
126
+ "learning_rate": 0.0005435778713738292,
127
+ "loss": 0.3946,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 45.0,
132
+ "grad_norm": 0.49641069769859314,
133
+ "learning_rate": 0.0005,
134
+ "loss": 0.3706,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 47.5,
139
+ "grad_norm": 0.5216576457023621,
140
+ "learning_rate": 0.00045642212862617086,
141
+ "loss": 0.3529,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 50.0,
146
+ "grad_norm": 0.5289739966392517,
147
+ "learning_rate": 0.00041317591116653486,
148
+ "loss": 0.3334,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 52.5,
153
+ "grad_norm": 0.49065396189689636,
154
+ "learning_rate": 0.0003705904774487396,
155
+ "loss": 0.3166,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 55.0,
160
+ "grad_norm": 0.4922383725643158,
161
+ "learning_rate": 0.0003289899283371657,
162
+ "loss": 0.3086,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 57.5,
167
+ "grad_norm": 0.42886731028556824,
168
+ "learning_rate": 0.0002886908691296504,
169
+ "loss": 0.2894,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 60.0,
174
+ "grad_norm": 0.42780551314353943,
175
+ "learning_rate": 0.0002500000000000001,
176
+ "loss": 0.286,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 62.5,
181
+ "grad_norm": 0.4010085463523865,
182
+ "learning_rate": 0.00021321178182447708,
183
+ "loss": 0.2775,
184
+ "step": 250
185
+ },
186
+ {
187
+ "epoch": 65.0,
188
+ "grad_norm": 0.4402850866317749,
189
+ "learning_rate": 0.0001786061951567303,
190
+ "loss": 0.2714,
191
+ "step": 260
192
+ },
193
+ {
194
+ "epoch": 67.5,
195
+ "grad_norm": 0.4067270755767822,
196
+ "learning_rate": 0.00014644660940672628,
197
+ "loss": 0.2664,
198
+ "step": 270
199
+ },
200
+ {
201
+ "epoch": 70.0,
202
+ "grad_norm": 0.43572983145713806,
203
+ "learning_rate": 0.00011697777844051105,
204
+ "loss": 0.2582,
205
+ "step": 280
206
+ },
207
+ {
208
+ "epoch": 72.5,
209
+ "grad_norm": 0.3881024420261383,
210
+ "learning_rate": 9.042397785550405e-05,
211
+ "loss": 0.2549,
212
+ "step": 290
213
+ },
214
+ {
215
+ "epoch": 75.0,
216
+ "grad_norm": 0.3768531382083893,
217
+ "learning_rate": 6.698729810778065e-05,
218
+ "loss": 0.251,
219
+ "step": 300
220
+ },
221
+ {
222
+ "epoch": 77.5,
223
+ "grad_norm": 0.3921433389186859,
224
+ "learning_rate": 4.684610648167503e-05,
225
+ "loss": 0.2509,
226
+ "step": 310
227
+ },
228
+ {
229
+ "epoch": 80.0,
230
+ "grad_norm": 0.38551065325737,
231
+ "learning_rate": 3.0153689607045842e-05,
232
+ "loss": 0.2466,
233
+ "step": 320
234
+ },
235
+ {
236
+ "epoch": 82.5,
237
+ "grad_norm": 0.3801429867744446,
238
+ "learning_rate": 1.70370868554659e-05,
239
+ "loss": 0.2462,
240
+ "step": 330
241
+ },
242
+ {
243
+ "epoch": 85.0,
244
+ "grad_norm": 0.39348262548446655,
245
+ "learning_rate": 7.59612349389599e-06,
246
+ "loss": 0.2468,
247
+ "step": 340
248
+ },
249
+ {
250
+ "epoch": 87.5,
251
+ "grad_norm": 0.3822017014026642,
252
+ "learning_rate": 1.9026509541272275e-06,
253
+ "loss": 0.2477,
254
+ "step": 350
255
+ },
256
+ {
257
+ "epoch": 90.0,
258
+ "grad_norm": 0.3794040381908417,
259
+ "learning_rate": 0.0,
260
+ "loss": 0.2449,
261
+ "step": 360
262
+ }
263
+ ],
264
+ "logging_steps": 10,
265
+ "max_steps": 360,
266
+ "num_input_tokens_seen": 0,
267
+ "num_train_epochs": 90,
268
+ "save_steps": 500,
269
+ "stateful_callbacks": {
270
+ "TrainerControl": {
271
+ "args": {
272
+ "should_epoch_stop": false,
273
+ "should_evaluate": false,
274
+ "should_log": false,
275
+ "should_save": true,
276
+ "should_training_stop": true
277
+ },
278
+ "attributes": {}
279
+ }
280
+ },
281
+ "total_flos": 1.43272328822784e+16,
282
+ "train_batch_size": 4,
283
+ "trial_name": null,
284
+ "trial_params": null
285
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bdb11b99ff7611912ffa646acdf5ba37d6edf73ab4e6e7db0116e87d191a77d
3
+ size 5496