YALCINKAYA commited on
Commit
7c2f145
·
verified ·
1 Parent(s): 5b462bd

4 bit fine-tuning commit

Browse files
README.md CHANGED
@@ -1,15 +1,202 @@
1
  ---
2
- license: apache-2.0
3
- language: en
4
- tags:
5
- - reformyx
6
- - opsgenius
7
- - text-generation
8
- - transformer
9
- model_type: gpt_neo
10
- base_model: gpt_neo
11
- pipeline_tag: text-generation
12
- inference: true
13
- interface: true
14
- library_name: transformers
15
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:457ab12bd69e42c41117610e2d9d47fce26b305ceb2c925044405e57d8ae437b
3
+ size 5907448
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c458db843acfeb1ac40949c97df6a769d003b8a92acc2408315dc387dd59b1a5
3
+ size 11839290
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90e6d4b02b067384b29ee1b1c6d1d91cb706b6b51aaad53bef8c7a952ded419e
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6088f970b1f0429ad85e576795204ef9269ce142d6ce9c2595b5649efde833b6
3
+ size 1064
special_tokens_map.json CHANGED
@@ -1,24 +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": "<|endoftext|>",
17
- "unk_token": {
18
- "content": "<|endoftext|>",
19
- "lstrip": false,
20
- "normalized": true,
21
- "rstrip": false,
22
- "single_word": false
23
- }
24
  }
 
1
  {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
 
 
 
 
 
 
 
 
 
 
 
 
4
  "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
 
 
 
 
 
 
6
  }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,5 +1,4 @@
1
  {
2
- "add_bos_token": false,
3
  "add_prefix_space": false,
4
  "added_tokens_decoder": {
5
  "50256": {
@@ -12,9 +11,8 @@
12
  }
13
  },
14
  "bos_token": "<|endoftext|>",
15
- "clean_up_tokenization_spaces": true,
16
  "eos_token": "<|endoftext|>",
17
- "errors": "replace",
18
  "model_max_length": 1024,
19
  "pad_token": "<|endoftext|>",
20
  "tokenizer_class": "GPT2Tokenizer",
 
1
  {
 
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
  "50256": {
 
11
  }
12
  },
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",
trainer_state.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 121.21212121212122,
5
+ "eval_steps": 500,
6
+ "global_step": 250,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 4.848484848484849,
13
+ "grad_norm": 0.5543263554573059,
14
+ "learning_rate": 0.0001992114701314478,
15
+ "loss": 2.7902,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 9.696969696969697,
20
+ "grad_norm": 0.6367977857589722,
21
+ "learning_rate": 0.0001968583161128631,
22
+ "loss": 2.3062,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 14.545454545454545,
27
+ "grad_norm": 0.479856014251709,
28
+ "learning_rate": 0.00019297764858882514,
29
+ "loss": 1.7416,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 19.393939393939394,
34
+ "grad_norm": 0.29826533794403076,
35
+ "learning_rate": 0.00018763066800438636,
36
+ "loss": 1.4342,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 24.242424242424242,
41
+ "grad_norm": 0.27084779739379883,
42
+ "learning_rate": 0.00018090169943749476,
43
+ "loss": 1.3399,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 29.09090909090909,
48
+ "grad_norm": 0.2398836314678192,
49
+ "learning_rate": 0.00017289686274214118,
50
+ "loss": 1.2648,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 33.93939393939394,
55
+ "grad_norm": 0.22510196268558502,
56
+ "learning_rate": 0.000163742398974869,
57
+ "loss": 1.2083,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 38.78787878787879,
62
+ "grad_norm": 0.2365349531173706,
63
+ "learning_rate": 0.00015358267949789966,
64
+ "loss": 1.1641,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 43.63636363636363,
69
+ "grad_norm": 0.270672082901001,
70
+ "learning_rate": 0.00014257792915650728,
71
+ "loss": 1.1283,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 48.484848484848484,
76
+ "grad_norm": 0.2681578993797302,
77
+ "learning_rate": 0.00013090169943749476,
78
+ "loss": 1.0801,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 53.333333333333336,
83
+ "grad_norm": 0.31493374705314636,
84
+ "learning_rate": 0.00011873813145857249,
85
+ "loss": 1.0366,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 58.18181818181818,
90
+ "grad_norm": 0.3526628315448761,
91
+ "learning_rate": 0.00010627905195293135,
92
+ "loss": 1.0097,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 63.03030303030303,
97
+ "grad_norm": 0.31481245160102844,
98
+ "learning_rate": 9.372094804706867e-05,
99
+ "loss": 0.9806,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 67.87878787878788,
104
+ "grad_norm": 0.3324221074581146,
105
+ "learning_rate": 8.126186854142752e-05,
106
+ "loss": 0.9474,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 72.72727272727273,
111
+ "grad_norm": 0.32580453157424927,
112
+ "learning_rate": 6.909830056250527e-05,
113
+ "loss": 0.9228,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 77.57575757575758,
118
+ "grad_norm": 0.3470986485481262,
119
+ "learning_rate": 5.7422070843492734e-05,
120
+ "loss": 0.9007,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 82.42424242424242,
125
+ "grad_norm": 0.4177663326263428,
126
+ "learning_rate": 4.6417320502100316e-05,
127
+ "loss": 0.8839,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 87.27272727272727,
132
+ "grad_norm": 0.4714958965778351,
133
+ "learning_rate": 3.6257601025131026e-05,
134
+ "loss": 0.8706,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 92.12121212121212,
139
+ "grad_norm": 0.4196126163005829,
140
+ "learning_rate": 2.7103137257858868e-05,
141
+ "loss": 0.8541,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 96.96969696969697,
146
+ "grad_norm": 0.35907700657844543,
147
+ "learning_rate": 1.9098300562505266e-05,
148
+ "loss": 0.8503,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 101.81818181818181,
153
+ "grad_norm": 0.40164825320243835,
154
+ "learning_rate": 1.2369331995613665e-05,
155
+ "loss": 0.8449,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 106.66666666666667,
160
+ "grad_norm": 0.37763774394989014,
161
+ "learning_rate": 7.022351411174866e-06,
162
+ "loss": 0.8384,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 111.51515151515152,
167
+ "grad_norm": 0.3757176101207733,
168
+ "learning_rate": 3.1416838871368924e-06,
169
+ "loss": 0.8405,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 116.36363636363636,
174
+ "grad_norm": 0.4176121950149536,
175
+ "learning_rate": 7.885298685522235e-07,
176
+ "loss": 0.8299,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 121.21212121212122,
181
+ "grad_norm": 0.47404736280441284,
182
+ "learning_rate": 0.0,
183
+ "loss": 0.8342,
184
+ "step": 250
185
+ }
186
+ ],
187
+ "logging_steps": 10,
188
+ "max_steps": 250,
189
+ "num_input_tokens_seen": 0,
190
+ "num_train_epochs": 125,
191
+ "save_steps": 500,
192
+ "stateful_callbacks": {
193
+ "TrainerControl": {
194
+ "args": {
195
+ "should_epoch_stop": false,
196
+ "should_evaluate": false,
197
+ "should_log": false,
198
+ "should_save": true,
199
+ "should_training_stop": true
200
+ },
201
+ "attributes": {}
202
+ }
203
+ },
204
+ "total_flos": 6950976392371200.0,
205
+ "train_batch_size": 4,
206
+ "trial_name": null,
207
+ "trial_params": null
208
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1942153feb93f0ee8ab87e8169428a3226296ce6622cde39d1bc9d257b8f38a6
3
+ size 5496
vocab.json CHANGED
The diff for this file is too large to render. See raw diff