aeolian83 commited on
Commit
23f93ad
1 Parent(s): 3aac946

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -146
README.md CHANGED
@@ -18,6 +18,8 @@ transformers와 trl을 이용하여 QLoRA로 훈련 진행
18
 
19
  Dataset은 https://huggingface.co/datasets/squarelike/OpenOrca-gugugo-ko
20
 
 
 
21
 
22
  ## Model Details
23
 
@@ -27,76 +29,39 @@ Dataset은 https://huggingface.co/datasets/squarelike/OpenOrca-gugugo-ko
27
  ## Uses
28
 
29
  <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
 
 
 
30
  ```
31
- """### instruction:
 
32
  ### intput:
33
  ### output:
34
-
35
  ```
36
 
37
 
38
- ### Direct Use
39
-
40
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
41
-
42
- [More Information Needed]
43
-
44
- ### Downstream Use [optional]
45
-
46
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
47
-
48
- [More Information Needed]
49
-
50
- ### Out-of-Scope Use
51
-
52
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
53
-
54
- [More Information Needed]
55
-
56
- ## Bias, Risks, and Limitations
57
-
58
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
59
-
60
- [More Information Needed]
61
-
62
- ### Recommendations
63
-
64
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
65
-
66
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
67
-
68
- ## How to Get Started with the Model
69
-
70
- Use the code below to get started with the model.
71
-
72
- [More Information Needed]
73
-
74
  ## Training Details
75
 
76
- ### Training Data
77
-
78
- <!-- 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. -->
79
-
80
- [More Information Needed]
81
-
82
- ### Training Procedure
83
-
84
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
85
-
86
- #### Preprocessing [optional]
87
-
88
- [More Information Needed]
89
-
90
-
91
  #### Training Hyperparameters
92
 
93
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
 
 
94
 
95
- #### Speeds, Sizes, Times [optional]
96
 
97
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
 
 
 
 
 
 
 
 
 
98
 
99
- [More Information Needed]
100
 
101
  ## Evaluation
102
 
@@ -104,94 +69,35 @@ Use the code below to get started with the model.
104
 
105
  ### Testing Data, Factors & Metrics
106
 
107
- #### Testing Data
108
-
109
- <!-- This should link to a Dataset Card if possible. -->
110
-
111
- [More Information Needed]
112
-
113
- #### Factors
114
-
115
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
116
-
117
- [More Information Needed]
118
-
119
- #### Metrics
120
-
121
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
122
-
123
- [More Information Needed]
124
-
125
- ### Results
126
-
127
- [More Information Needed]
128
-
129
- #### Summary
130
-
131
-
132
-
133
- ## Model Examination [optional]
134
-
135
- <!-- Relevant interpretability work for the model goes here -->
136
-
137
- [More Information Needed]
138
-
139
- ## Environmental Impact
140
-
141
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
142
-
143
- 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).
144
-
145
- - **Hardware Type:** [More Information Needed]
146
- - **Hours used:** [More Information Needed]
147
- - **Cloud Provider:** [More Information Needed]
148
- - **Compute Region:** [More Information Needed]
149
- - **Carbon Emitted:** [More Information Needed]
150
-
151
- ## Technical Specifications [optional]
152
-
153
- ### Model Architecture and Objective
154
-
155
- [More Information Needed]
156
-
157
- ### Compute Infrastructure
158
-
159
- [More Information Needed]
160
-
161
- #### Hardware
162
-
163
- [More Information Needed]
164
-
165
- #### Software
166
-
167
- [More Information Needed]
168
-
169
- ## Citation [optional]
170
-
171
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
172
-
173
- **BibTeX:**
174
-
175
- [More Information Needed]
176
-
177
- **APA:**
178
-
179
- [More Information Needed]
180
-
181
- ## Glossary [optional]
182
-
183
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
184
-
185
- [More Information Needed]
186
-
187
- ## More Information [optional]
188
-
189
- [More Information Needed]
190
-
191
- ## Model Card Authors [optional]
192
-
193
- [More Information Needed]
194
 
195
- ## Model Card Contact
196
 
197
- [More Information Needed]
 
18
 
19
  Dataset은 https://huggingface.co/datasets/squarelike/OpenOrca-gugugo-ko
20
 
21
+ QLoRA 훈련 테스트를 위한 훈련 결과물
22
+
23
 
24
  ## Model Details
25
 
 
29
  ## Uses
30
 
31
  <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
32
+
33
+ ### Prompt template
34
+
35
  ```
36
+ """
37
+ ### instruction:
38
  ### intput:
39
  ### output:
40
+ """
41
  ```
42
 
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  ## Training Details
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  #### Training Hyperparameters
47
 
48
+ - **Training regime:** [bf16 mixed precision] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
49
+
50
+ - <PAD>토큰 추가 후 right 패딩사이드 지정하여 진행
51
 
 
52
 
53
+ - LoRA config
54
+ ```
55
+ peft_config = LoraConfig(
56
+ lora_alpha=16,
57
+ lora_dropout=0.1,
58
+ r=64,
59
+ bias="none",
60
+ task_type="CAUSAL_LM"
61
+ )
62
+ ```
63
 
64
+
65
 
66
  ## Evaluation
67
 
 
69
 
70
  ### Testing Data, Factors & Metrics
71
 
72
+ link: https://github.com/Beomi/ko-lm-evaluation-harness
73
+
74
+ results/all/aeolian83/llama_ko_sft_gugugo_experi_01
75
+ | | 0 | 5 |
76
+ |:---------------------------------|---------:|---------:|
77
+ | kobest_boolq (macro_f1) | 0.588382 | 0.384051 |
78
+ | kobest_copa (macro_f1) | 0.749558 | 0.778787 |
79
+ | kobest_hellaswag (macro_f1) | 0.439247 | 0.439444 |
80
+ | kobest_sentineg (macro_f1) | 0.448283 | 0.934415 |
81
+ | kohatespeech (macro_f1) | 0.244828 | 0.371245 |
82
+ | kohatespeech_apeach (macro_f1) | 0.337434 | 0.394607 |
83
+ | kohatespeech_gen_bias (macro_f1) | 0.135272 | 0.461714 |
84
+ | korunsmile (f1) | 0.254562 | 0.315907 |
85
+ | nsmc (acc) | 0.61248 | 0.84256 |
86
+ | pawsx_ko (acc) | 0.5615 | 0.5365 |
87
+
88
+
89
+ results/all/beomi/llama-2-ko-7b
90
+ | | 0 | 5 | 10 | 50 |
91
+ |:---------------------------------|---------:|---------:|---------:|---------:|
92
+ | kobest_boolq (macro_f1) | 0.612147 | 0.682832 | 0.713392 | 0.71622 |
93
+ | kobest_copa (macro_f1) | 0.759784 | 0.799843 | 0.807907 | 0.829976 |
94
+ | kobest_hellaswag (macro_f1) | 0.447951 | 0.460632 | 0.464623 | 0.458628 |
95
+ | kobest_sentineg (macro_f1) | 0.3517 | 0.969773 | 0.977329 | 0.97481 |
96
+ | kohatespeech (macro_f1) | 0.314636 | 0.383336 | 0.357491 | 0.366585 |
97
+ | kohatespeech_apeach (macro_f1) | 0.346127 | 0.567627 | 0.583391 | 0.629269 |
98
+ | kohatespeech_gen_bias (macro_f1) | 0.204651 | 0.509189 | 0.471078 | 0.451119 |
99
+ | korunsmile (f1) | 0.290663 | 0.306208 | 0.304279 | 0.343946 |
100
+ | nsmc (acc) | 0.57942 | 0.84242 | 0.87368 | 0.8939 |
101
+ | pawsx_ko (acc) | 0.538 | 0.52 | 0.5275 | 0.5195 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
 
103