luxopes commited on
Commit
93820af
·
verified ·
1 Parent(s): aeeaabd

Upload 13 files

Browse files
README.md CHANGED
@@ -1,12 +1,207 @@
1
  ---
2
- title: Gpt A
3
- emoji: 📚
4
- colorFrom: indigo
5
- colorTo: red
6
- sdk: docker
7
- pinned: false
8
- license: apache-2.0
9
- short_description: Server fo gpt-a
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model: gpt2
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:gpt2
7
+ - lora
8
+ - transformers
 
9
  ---
10
 
11
+ # Model Card for Model ID
12
+
13
+ <!-- Provide a quick summary of what the model is/does. -->
14
+
15
+
16
+
17
+ ## Model Details
18
+
19
+ ### Model Description
20
+
21
+ <!-- Provide a longer summary of what this model is. -->
22
+
23
+
24
+
25
+ - **Developed by:** [More Information Needed]
26
+ - **Funded by [optional]:** [More Information Needed]
27
+ - **Shared by [optional]:** [More Information Needed]
28
+ - **Model type:** [More Information Needed]
29
+ - **Language(s) (NLP):** [More Information Needed]
30
+ - **License:** [More Information Needed]
31
+ - **Finetuned from model [optional]:** [More Information Needed]
32
+
33
+ ### Model Sources [optional]
34
+
35
+ <!-- Provide the basic links for the model. -->
36
+
37
+ - **Repository:** [More Information Needed]
38
+ - **Paper [optional]:** [More Information Needed]
39
+ - **Demo [optional]:** [More Information Needed]
40
+
41
+ ## Uses
42
+
43
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
44
+
45
+ ### Direct Use
46
+
47
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
48
+
49
+ [More Information Needed]
50
+
51
+ ### Downstream Use [optional]
52
+
53
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
54
+
55
+ [More Information Needed]
56
+
57
+ ### Out-of-Scope Use
58
+
59
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
60
+
61
+ [More Information Needed]
62
+
63
+ ## Bias, Risks, and Limitations
64
+
65
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
66
+
67
+ [More Information Needed]
68
+
69
+ ### Recommendations
70
+
71
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
72
+
73
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
74
+
75
+ ## How to Get Started with the Model
76
+
77
+ Use the code below to get started with the model.
78
+
79
+ [More Information Needed]
80
+
81
+ ## Training Details
82
+
83
+ ### Training Data
84
+
85
+ <!-- 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. -->
86
+
87
+ [More Information Needed]
88
+
89
+ ### Training Procedure
90
+
91
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
92
+
93
+ #### Preprocessing [optional]
94
+
95
+ [More Information Needed]
96
+
97
+
98
+ #### Training Hyperparameters
99
+
100
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
101
+
102
+ #### Speeds, Sizes, Times [optional]
103
+
104
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
105
+
106
+ [More Information Needed]
107
+
108
+ ## Evaluation
109
+
110
+ <!-- This section describes the evaluation protocols and provides the results. -->
111
+
112
+ ### Testing Data, Factors & Metrics
113
+
114
+ #### Testing Data
115
+
116
+ <!-- This should link to a Dataset Card if possible. -->
117
+
118
+ [More Information Needed]
119
+
120
+ #### Factors
121
+
122
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
123
+
124
+ [More Information Needed]
125
+
126
+ #### Metrics
127
+
128
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
129
+
130
+ [More Information Needed]
131
+
132
+ ### Results
133
+
134
+ [More Information Needed]
135
+
136
+ #### Summary
137
+
138
+
139
+
140
+ ## Model Examination [optional]
141
+
142
+ <!-- Relevant interpretability work for the model goes here -->
143
+
144
+ [More Information Needed]
145
+
146
+ ## Environmental Impact
147
+
148
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
149
+
150
+ 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).
151
+
152
+ - **Hardware Type:** [More Information Needed]
153
+ - **Hours used:** [More Information Needed]
154
+ - **Cloud Provider:** [More Information Needed]
155
+ - **Compute Region:** [More Information Needed]
156
+ - **Carbon Emitted:** [More Information Needed]
157
+
158
+ ## Technical Specifications [optional]
159
+
160
+ ### Model Architecture and Objective
161
+
162
+ [More Information Needed]
163
+
164
+ ### Compute Infrastructure
165
+
166
+ [More Information Needed]
167
+
168
+ #### Hardware
169
+
170
+ [More Information Needed]
171
+
172
+ #### Software
173
+
174
+ [More Information Needed]
175
+
176
+ ## Citation [optional]
177
+
178
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
179
+
180
+ **BibTeX:**
181
+
182
+ [More Information Needed]
183
+
184
+ **APA:**
185
+
186
+ [More Information Needed]
187
+
188
+ ## Glossary [optional]
189
+
190
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
191
+
192
+ [More Information Needed]
193
+
194
+ ## More Information [optional]
195
+
196
+ [More Information Needed]
197
+
198
+ ## Model Card Authors [optional]
199
+
200
+ [More Information Needed]
201
+
202
+ ## Model Card Contact
203
+
204
+ [More Information Needed]
205
+ ### Framework versions
206
+
207
+ - PEFT 0.16.0
adapter_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "gpt2",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 64,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.05,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 64,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "c_proj",
29
+ "c_attn"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "trainable_token_indices": null,
33
+ "use_dora": false,
34
+ "use_qalora": false,
35
+ "use_rslora": false
36
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be133c41491bef00fcf8db87200a9b6078f4d4ef207872f72c42d603df35cc45
3
+ size 25961528
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07095f1e07d45cd3ffc22d39f2988673d525cbd36c34990e2df45ca95b26ebb3
3
+ size 51965370
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff25442a55ad44cb80ecbbe877ace157fbd20e10b1bb3f3f7cbd4b88890989d5
3
+ size 14244
scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2a4b6e0ef05ca249f2d6b7f9f3ad1dff81e55842a962df795bb9740c17c8e92
3
+ size 988
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e21950897096db93f8a56db97fdbde14bf6329992d8f7b44a9e5dadd3889923
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": false,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "extra_special_tokens": {},
19
+ "model_max_length": 1024,
20
+ "pad_token": "<|endoftext|>",
21
+ "tokenizer_class": "GPT2Tokenizer",
22
+ "unk_token": "<|endoftext|>"
23
+ }
trainer_state.json ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 1500,
3
+ "best_metric": 2.614635467529297,
4
+ "best_model_checkpoint": "./qlora_gpt2/checkpoint-1500",
5
+ "epoch": 0.854457419538593,
6
+ "eval_steps": 500,
7
+ "global_step": 1500,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.05696382796923953,
14
+ "grad_norm": 0.22663557529449463,
15
+ "learning_rate": 3.960000000000001e-05,
16
+ "loss": 3.4511,
17
+ "step": 100
18
+ },
19
+ {
20
+ "epoch": 0.11392765593847906,
21
+ "grad_norm": 0.2373093217611313,
22
+ "learning_rate": 7.960000000000001e-05,
23
+ "loss": 3.068,
24
+ "step": 200
25
+ },
26
+ {
27
+ "epoch": 0.1708914839077186,
28
+ "grad_norm": 0.25586986541748047,
29
+ "learning_rate": 0.00011960000000000001,
30
+ "loss": 2.9652,
31
+ "step": 300
32
+ },
33
+ {
34
+ "epoch": 0.22785531187695812,
35
+ "grad_norm": 0.24306726455688477,
36
+ "learning_rate": 0.0001596,
37
+ "loss": 2.9145,
38
+ "step": 400
39
+ },
40
+ {
41
+ "epoch": 0.28481913984619767,
42
+ "grad_norm": 0.2453053742647171,
43
+ "learning_rate": 0.0001996,
44
+ "loss": 2.8514,
45
+ "step": 500
46
+ },
47
+ {
48
+ "epoch": 0.28481913984619767,
49
+ "eval_loss": 2.73831844329834,
50
+ "eval_runtime": 780.3351,
51
+ "eval_samples_per_second": 15.997,
52
+ "eval_steps_per_second": 1.001,
53
+ "step": 500
54
+ },
55
+ {
56
+ "epoch": 0.3417829678154372,
57
+ "grad_norm": 0.2287718951702118,
58
+ "learning_rate": 0.00019584731543624163,
59
+ "loss": 2.8526,
60
+ "step": 600
61
+ },
62
+ {
63
+ "epoch": 0.39874679578467676,
64
+ "grad_norm": 0.23401789367198944,
65
+ "learning_rate": 0.0001916526845637584,
66
+ "loss": 2.8242,
67
+ "step": 700
68
+ },
69
+ {
70
+ "epoch": 0.45571062375391624,
71
+ "grad_norm": 0.2420588731765747,
72
+ "learning_rate": 0.0001874580536912752,
73
+ "loss": 2.8295,
74
+ "step": 800
75
+ },
76
+ {
77
+ "epoch": 0.5126744517231558,
78
+ "grad_norm": 0.24802158772945404,
79
+ "learning_rate": 0.00018326342281879197,
80
+ "loss": 2.7982,
81
+ "step": 900
82
+ },
83
+ {
84
+ "epoch": 0.5696382796923953,
85
+ "grad_norm": 0.24083346128463745,
86
+ "learning_rate": 0.00017906879194630872,
87
+ "loss": 2.7647,
88
+ "step": 1000
89
+ },
90
+ {
91
+ "epoch": 0.5696382796923953,
92
+ "eval_loss": 2.657050371170044,
93
+ "eval_runtime": 780.7988,
94
+ "eval_samples_per_second": 15.987,
95
+ "eval_steps_per_second": 1.0,
96
+ "step": 1000
97
+ },
98
+ {
99
+ "epoch": 0.6266021076616348,
100
+ "grad_norm": 0.23890583217144012,
101
+ "learning_rate": 0.0001748741610738255,
102
+ "loss": 2.7541,
103
+ "step": 1100
104
+ },
105
+ {
106
+ "epoch": 0.6835659356308744,
107
+ "grad_norm": 0.2339860498905182,
108
+ "learning_rate": 0.00017067953020134227,
109
+ "loss": 2.7423,
110
+ "step": 1200
111
+ },
112
+ {
113
+ "epoch": 0.7405297636001139,
114
+ "grad_norm": 0.224105566740036,
115
+ "learning_rate": 0.00016648489932885908,
116
+ "loss": 2.7567,
117
+ "step": 1300
118
+ },
119
+ {
120
+ "epoch": 0.7974935915693535,
121
+ "grad_norm": 0.21676279604434967,
122
+ "learning_rate": 0.00016229026845637586,
123
+ "loss": 2.7369,
124
+ "step": 1400
125
+ },
126
+ {
127
+ "epoch": 0.854457419538593,
128
+ "grad_norm": 0.22006016969680786,
129
+ "learning_rate": 0.00015809563758389263,
130
+ "loss": 2.7527,
131
+ "step": 1500
132
+ },
133
+ {
134
+ "epoch": 0.854457419538593,
135
+ "eval_loss": 2.614635467529297,
136
+ "eval_runtime": 780.923,
137
+ "eval_samples_per_second": 15.985,
138
+ "eval_steps_per_second": 1.0,
139
+ "step": 1500
140
+ }
141
+ ],
142
+ "logging_steps": 100,
143
+ "max_steps": 5268,
144
+ "num_input_tokens_seen": 0,
145
+ "num_train_epochs": 3,
146
+ "save_steps": 500,
147
+ "stateful_callbacks": {
148
+ "TrainerControl": {
149
+ "args": {
150
+ "should_epoch_stop": false,
151
+ "should_evaluate": false,
152
+ "should_log": false,
153
+ "should_save": true,
154
+ "should_training_stop": false
155
+ },
156
+ "attributes": {}
157
+ }
158
+ },
159
+ "total_flos": 5.3994886004736e+16,
160
+ "train_batch_size": 16,
161
+ "trial_name": null,
162
+ "trial_params": null
163
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db13e040ab06caa60163d9364544e9339ee6f9b80b0beb3bf01d950bd2887a8f
3
+ size 5240
vocab.json ADDED
The diff for this file is too large to render. See raw diff