Upload 6 files
Browse files- README.md +204 -0
- adapter_config.json +33 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- trainer_state.json +201 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
base_model: microsoft/phi-2
|
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 |
+
|
201 |
+
|
202 |
+
### Framework versions
|
203 |
+
|
204 |
+
- PEFT 0.8.2
|
adapter_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "microsoft/phi-2",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 128,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 64,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"fc1",
|
23 |
+
"o_proj",
|
24 |
+
"k_proj",
|
25 |
+
"fc2",
|
26 |
+
"q_proj",
|
27 |
+
"v_proj",
|
28 |
+
"dense",
|
29 |
+
"lm_head"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_rslora": false
|
33 |
+
}
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c291c66626fc4fc5b4412d264eea8e4cfa2742e7f6ce787e44b041cf96423e4
|
3 |
+
size 14244
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7982f7dee31c1c2daf2099d171b25f3e55024f67d7a365b080d086328942b1d0
|
3 |
+
size 1064
|
trainer_state.json
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 6.0,
|
5 |
+
"eval_steps": 50,
|
6 |
+
"global_step": 450,
|
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.33,
|
13 |
+
"learning_rate": 5.2354709418837674e-05,
|
14 |
+
"loss": 1.6331,
|
15 |
+
"step": 25
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.67,
|
19 |
+
"learning_rate": 4.959919839679359e-05,
|
20 |
+
"loss": 0.8124,
|
21 |
+
"step": 50
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.67,
|
25 |
+
"eval_loss": 2.1140503883361816,
|
26 |
+
"eval_runtime": 11.8386,
|
27 |
+
"eval_samples_per_second": 0.76,
|
28 |
+
"eval_steps_per_second": 0.169,
|
29 |
+
"step": 50
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"epoch": 1.0,
|
33 |
+
"learning_rate": 4.68436873747495e-05,
|
34 |
+
"loss": 0.766,
|
35 |
+
"step": 75
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"epoch": 1.33,
|
39 |
+
"learning_rate": 4.408817635270541e-05,
|
40 |
+
"loss": 0.562,
|
41 |
+
"step": 100
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 1.33,
|
45 |
+
"eval_loss": 1.9290642738342285,
|
46 |
+
"eval_runtime": 11.9715,
|
47 |
+
"eval_samples_per_second": 0.752,
|
48 |
+
"eval_steps_per_second": 0.167,
|
49 |
+
"step": 100
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"epoch": 1.67,
|
53 |
+
"learning_rate": 4.133266533066132e-05,
|
54 |
+
"loss": 0.3301,
|
55 |
+
"step": 125
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"epoch": 2.0,
|
59 |
+
"learning_rate": 3.8577154308617235e-05,
|
60 |
+
"loss": 0.3811,
|
61 |
+
"step": 150
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 2.0,
|
65 |
+
"eval_loss": 2.065908908843994,
|
66 |
+
"eval_runtime": 11.9277,
|
67 |
+
"eval_samples_per_second": 0.755,
|
68 |
+
"eval_steps_per_second": 0.168,
|
69 |
+
"step": 150
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 2.33,
|
73 |
+
"learning_rate": 3.582164328657315e-05,
|
74 |
+
"loss": 0.3086,
|
75 |
+
"step": 175
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 2.67,
|
79 |
+
"learning_rate": 3.306613226452906e-05,
|
80 |
+
"loss": 0.2969,
|
81 |
+
"step": 200
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 2.67,
|
85 |
+
"eval_loss": 2.2028963565826416,
|
86 |
+
"eval_runtime": 11.9591,
|
87 |
+
"eval_samples_per_second": 0.753,
|
88 |
+
"eval_steps_per_second": 0.167,
|
89 |
+
"step": 200
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"epoch": 3.0,
|
93 |
+
"learning_rate": 3.0310621242484972e-05,
|
94 |
+
"loss": 0.2236,
|
95 |
+
"step": 225
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 3.33,
|
99 |
+
"learning_rate": 2.755511022044088e-05,
|
100 |
+
"loss": 0.2148,
|
101 |
+
"step": 250
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 3.33,
|
105 |
+
"eval_loss": 2.3397459983825684,
|
106 |
+
"eval_runtime": 11.8913,
|
107 |
+
"eval_samples_per_second": 0.757,
|
108 |
+
"eval_steps_per_second": 0.168,
|
109 |
+
"step": 250
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 3.67,
|
113 |
+
"learning_rate": 2.4799599198396796e-05,
|
114 |
+
"loss": 0.1813,
|
115 |
+
"step": 275
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"epoch": 4.0,
|
119 |
+
"learning_rate": 2.2044088176352705e-05,
|
120 |
+
"loss": 0.2172,
|
121 |
+
"step": 300
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 4.0,
|
125 |
+
"eval_loss": 2.2869534492492676,
|
126 |
+
"eval_runtime": 11.8718,
|
127 |
+
"eval_samples_per_second": 0.758,
|
128 |
+
"eval_steps_per_second": 0.168,
|
129 |
+
"step": 300
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 4.33,
|
133 |
+
"learning_rate": 1.9288577154308618e-05,
|
134 |
+
"loss": 0.1436,
|
135 |
+
"step": 325
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 4.67,
|
139 |
+
"learning_rate": 1.653306613226453e-05,
|
140 |
+
"loss": 0.1659,
|
141 |
+
"step": 350
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"epoch": 4.67,
|
145 |
+
"eval_loss": 2.3965632915496826,
|
146 |
+
"eval_runtime": 11.9151,
|
147 |
+
"eval_samples_per_second": 0.755,
|
148 |
+
"eval_steps_per_second": 0.168,
|
149 |
+
"step": 350
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 5.0,
|
153 |
+
"learning_rate": 1.377755511022044e-05,
|
154 |
+
"loss": 0.1664,
|
155 |
+
"step": 375
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"epoch": 5.33,
|
159 |
+
"learning_rate": 1.1022044088176353e-05,
|
160 |
+
"loss": 0.1165,
|
161 |
+
"step": 400
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"epoch": 5.33,
|
165 |
+
"eval_loss": 2.4968247413635254,
|
166 |
+
"eval_runtime": 11.858,
|
167 |
+
"eval_samples_per_second": 0.759,
|
168 |
+
"eval_steps_per_second": 0.169,
|
169 |
+
"step": 400
|
170 |
+
},
|
171 |
+
{
|
172 |
+
"epoch": 5.67,
|
173 |
+
"learning_rate": 8.266533066132265e-06,
|
174 |
+
"loss": 0.1572,
|
175 |
+
"step": 425
|
176 |
+
},
|
177 |
+
{
|
178 |
+
"epoch": 6.0,
|
179 |
+
"learning_rate": 5.511022044088176e-06,
|
180 |
+
"loss": 0.1174,
|
181 |
+
"step": 450
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"epoch": 6.0,
|
185 |
+
"eval_loss": 2.4439687728881836,
|
186 |
+
"eval_runtime": 11.9003,
|
187 |
+
"eval_samples_per_second": 0.756,
|
188 |
+
"eval_steps_per_second": 0.168,
|
189 |
+
"step": 450
|
190 |
+
}
|
191 |
+
],
|
192 |
+
"logging_steps": 25,
|
193 |
+
"max_steps": 500,
|
194 |
+
"num_input_tokens_seen": 0,
|
195 |
+
"num_train_epochs": 7,
|
196 |
+
"save_steps": 50,
|
197 |
+
"total_flos": 1.104886503936e+16,
|
198 |
+
"train_batch_size": 2,
|
199 |
+
"trial_name": null,
|
200 |
+
"trial_params": null
|
201 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36a45f8f32ff02355d148bca24e55324966575569e9640f7ec93ad3c7c505334
|
3 |
+
size 4856
|