seorin commited on
Commit
4175157
ยท
1 Parent(s): 48bfc25

Upload 14 files

Browse files
README.md CHANGED
@@ -1,31 +1,218 @@
1
- llama-2-7b-chat-hf ๋ฅผ ์ฃผ๋ฌธ ๋ฌธ์žฅ ์ดํ•ด์— ๋ฏธ์„ธ ํŠœ๋‹
2
- -> ์˜ํ™” ๋ฆฌ๋ทฐ์— ๊ด€ํ•œ ํ‰๊ฐ€(๋ฐ์ดํ„ฐ์…‹ : nsmc ์‚ฌ์šฉ)๋ฅผ ๊ธ์ • ๋ถ€์ •์œผ๋กœ ๋ถ„๋ฅ˜(์‹ค์ œ, ์˜ˆ์ธก ๋น„๊ต)
 
 
3
 
 
4
 
5
- ## ํ…Œ์ŠคํŠธ ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ๋ถ„๋ฅ˜ ๊ฒฐ๊ณผ ๋ฆฌํฌํŠธ
6
 
7
- @ **๋ชจ๋ธ ํ‰๊ฐ€ ๊ฒฐ๊ณผ**
8
 
9
- ์ •ํ™•๋„ : 0.866
10
 
11
- ์ •๋ฐ€๋„ : 0.874
12
 
13
- ์žฌํ˜„์œจ : 0.8602
14
 
15
- F1 ์ ์ˆ˜ : 0.8670
16
 
17
- Result Matrix
18
 
19
- | | TP | TN |
20
- |----------|----------|----------|
21
- | PP | 437 | 63 |
22
- | PN | 71 | 429 |
23
 
 
 
 
 
 
 
 
24
 
 
25
 
26
- @ **๊ฒฐ๊ณผ ๋ถ„์„**
27
 
28
- ์ •ํ™•๋„๋Š” 0.866์œผ๋กœ ๋‚˜ํƒ€๋‚ฌ๋‹ค.
 
 
29
 
30
- ๊ทธ ์ค‘์—์„œ ์‹ค์ œ ์ •๋‹ต์€ ๊ธ์ •์ด์ง€๋งŒ ๋ถ€์ •์œผ๋กœ ์˜ˆ์ธกํ•˜๋Š” ์ˆ˜(71)๊ฐ€ ์‹ค์ œ ๋ถ€์ •์ธ๋ฐ ์˜ˆ์ธก ๊ธ์ •(63)์œผ๋กœ ํŒ๋‹จํ•˜๋Š” ๊ฒฝ์šฐ๋ณด๋‹ค ๋” ๋งŽ์•˜๋‹ค.
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: KT-AI/midm-bitext-S-7B-inst-v1
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
+ ## Training procedure
203
+
204
+ The following `bitsandbytes` quantization config was used during training:
205
+ - quant_method: bitsandbytes
206
+ - load_in_8bit: False
207
+ - load_in_4bit: True
208
+ - llm_int8_threshold: 6.0
209
+ - llm_int8_skip_modules: None
210
+ - llm_int8_enable_fp32_cpu_offload: False
211
+ - llm_int8_has_fp16_weight: False
212
+ - bnb_4bit_quant_type: nf4
213
+ - bnb_4bit_use_double_quant: False
214
+ - bnb_4bit_compute_dtype: bfloat16
215
+
216
+ ### Framework versions
217
+
218
+ - PEFT 0.7.0
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "KT-AI/midm-bitext-S-7B-inst-v1",
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": 16,
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": 8,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "c_attn",
23
+ "c_fc",
24
+ "c_proj"
25
+ ],
26
+ "task_type": "CAUSAL_LM"
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23ed2d28f8d1d7f05d149de38ee200ea5ff6473f09f5cc4c505c9aa8bc6a5eb6
3
+ size 67010784
midm_bitext_tokenizer(1).model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98789fa1bf89a1f9692889fb4a0029d3d096a9109cebf4f6bce1a255f2701378
3
+ size 1457356
midm_bitext_tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98789fa1bf89a1f9692889fb4a0029d3d096a9109cebf4f6bce1a255f2701378
3
+ size 1457356
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:069b019c40fa0eb57d1e1b7e0e03800707edea71459e2655dbe1bf771a855fed
3
+ size 134108218
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3e9ec9ccad4892d25021420af47d77330ec596ec966e97dda02c9c3b09112cc
3
+ size 14180
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:672d45425d851988a560e144673bf70a751540607fb50f93f52f61cf9dfa5766
3
+ size 1064
special_tokens_map(1).json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": "</s>",
10
+ "pad_token": "<pad>",
11
+ "unk_token": "<unk>"
12
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": "</s>",
10
+ "pad_token": "<pad>",
11
+ "unk_token": "<unk>"
12
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<pad>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<unk>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "<s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "</s>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ }
35
+ },
36
+ "additional_special_tokens": [],
37
+ "auto_map": {
38
+ "AutoTokenizer": [
39
+ "KT-AI/midm-bitext-S-7B-inst-v1--midm_bitext_tokenization.Midm_bitext_Tokenizer",
40
+ null
41
+ ]
42
+ },
43
+ "bos_token": "<s>",
44
+ "clean_up_tokenization_spaces": true,
45
+ "eos_token": "</s>",
46
+ "extra_ids": 0,
47
+ "model_max_length": 1000000000000000019884624838656,
48
+ "pad_token": "<pad>",
49
+ "sp_model_kwargs": {},
50
+ "tokenizer_class": "Midm_bitext_Tokenizer",
51
+ "unk_token": "<unk>"
52
+ }
trainer_state.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.32,
5
+ "eval_steps": 500,
6
+ "global_step": 800,
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.04,
13
+ "learning_rate": 9.765191054744305e-05,
14
+ "loss": 1.4073,
15
+ "step": 100
16
+ },
17
+ {
18
+ "epoch": 0.08,
19
+ "learning_rate": 8.783564079088477e-05,
20
+ "loss": 0.9097,
21
+ "step": 200
22
+ },
23
+ {
24
+ "epoch": 0.12,
25
+ "learning_rate": 7.190238384283412e-05,
26
+ "loss": 0.8875,
27
+ "step": 300
28
+ },
29
+ {
30
+ "epoch": 0.16,
31
+ "learning_rate": 5.242811110572242e-05,
32
+ "loss": 0.9049,
33
+ "step": 400
34
+ },
35
+ {
36
+ "epoch": 0.2,
37
+ "learning_rate": 3.2561279283505883e-05,
38
+ "loss": 0.8747,
39
+ "step": 500
40
+ },
41
+ {
42
+ "epoch": 0.24,
43
+ "learning_rate": 1.5513811136094787e-05,
44
+ "loss": 0.8431,
45
+ "step": 600
46
+ },
47
+ {
48
+ "epoch": 0.28,
49
+ "learning_rate": 4.041815510209396e-06,
50
+ "loss": 0.8692,
51
+ "step": 700
52
+ },
53
+ {
54
+ "epoch": 0.32,
55
+ "learning_rate": 4.0974693947259944e-10,
56
+ "loss": 0.8736,
57
+ "step": 800
58
+ }
59
+ ],
60
+ "logging_steps": 100,
61
+ "max_steps": 800,
62
+ "num_train_epochs": 1,
63
+ "save_steps": 500,
64
+ "total_flos": 1.293820624896e+16,
65
+ "trial_name": null,
66
+ "trial_params": null
67
+ }
training_args(1).bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:428cae21c3b48a213f872f7762104405e11f3e803ae6564180e82f762a6de893
3
+ size 4664
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:428cae21c3b48a213f872f7762104405e11f3e803ae6564180e82f762a6de893
3
+ size 4664