Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +153 -0
- openchat3.5_korean_v1.0_sft.Q4_0.gguf +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
openchat3.5_korean_v1.0_sft.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- ko
|
5 |
+
- en
|
6 |
+
base_model:
|
7 |
+
- openchat/openchat_3.5
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
datasets:
|
10 |
+
- AIDX-ktds/ko_leaderboard
|
11 |
+
---
|
12 |
+
|
13 |
+
|
14 |
+
### β± ν΄λΉ λͺ¨λΈμμ openchat3.5 μ Foundation λͺ¨λΈλ‘ νλ νκ΅μ΄ λ° νκ΅μ λ€μν
|
15 |
+
### λ¬Ένμ μ μ©ν μ μλλ‘ νκΈ° μν΄κ°λ° λμμΌλ©°
|
16 |
+
### μ체 μ μν 53μμμ νκ΅μ΄ λ°μ΄ν°λ₯Ό νμ©νμ¬ νκ΅ μ¬ν κ°μΉμ
|
17 |
+
### λ¬Ένλ₯Ό μ΄ν΄νλ λͺ¨λΈ μ
λλ€. β
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
# βΆ λͺ¨λΈ μ€λͺ
|
22 |
+
- λͺ¨λΈλͺ
λ° μ£ΌμκΈ°λ₯:
|
23 |
+
ν΄λΉ λͺ¨λΈμμ OpenChat 3.5 λͺ¨λΈμ κΈ°λ°μΌλ‘ SFT λ°©μμΌλ‘ νμΈνλλ Mistral 7B / openchat3.5 κΈ°λ° λͺ¨λΈμ
λλ€.
|
24 |
+
νκ΅μ΄μ νκ΅μ λ€μν λ¬Ένμ λ§₯λ½μ μ΄ν΄νλλ‘ μ€κ³λμμΌλ©° β¨β¨, μ체 μ μν 53κ° μμμ νκ΅μ΄
|
25 |
+
λ°μ΄ν°λ₯Ό νμ©ν΄ νκ΅ μ¬νμ κ°μΉμ λ¬Ένλ₯Ό λ°μν©λλ€.
|
26 |
+
μ£Όμ κΈ°λ₯μΌλ‘λ ν
μ€νΈ μμ±, λν μΆλ‘ , λ¬Έμ μμ½, μ§μμλ΅, κ°μ λΆμ λ° μμ°μ΄ μ²λ¦¬ κ΄λ ¨ λ€μν μμ
μ μ§μνλ©°,
|
27 |
+
νμ© λΆμΌλ λ²λ₯ , μ¬λ¬΄, κ³Όν, κ΅μ‘, λΉμ¦λμ€, λ¬Έν μ°κ΅¬ λ± λ€μν λΆμΌμμ μμ©λ μ μμ΅λλ€.
|
28 |
+
- λͺ¨λΈ μν€ν
μ²:ν΄λΉ λͺ¨λΈμμ Mistral 7B λͺ¨λΈμ κΈ°λ°μΌλ‘, νλΌλ―Έν° μλ 70μ΅ κ°(7B)λ‘ κ΅¬μ±λ κ³ μ±λ₯ μΈμ΄ λͺ¨λΈμ
λλ€.
|
29 |
+
μ΄ λͺ¨λΈμ OpenChat 3.5λ₯Ό νμ΄λ°μ΄μ
λͺ¨λΈλ‘ μΌμ, SFT(μ§λ λ―ΈμΈ μ‘°μ ) λ°©μμ ν΅ν΄ νκ΅μ΄μ νκ΅ λ¬Ένμ νΉνλ μ±λ₯μ λ°ννλλ‘ νλ ¨λμμ΅λλ€.
|
30 |
+
Mistral 7Bμ κ²½λνλ ꡬ쑰λ λΉ λ₯Έ μΆλ‘ μλμ λ©λͺ¨λ¦¬ ν¨μ¨μ±μ 보μ₯νλ©°, λ€μν μμ°μ΄ μ²λ¦¬ μμ
μ μ ν©νκ² μ΅μ νλμ΄ μμ΅λλ€.
|
31 |
+
μ΄ μν€ν
μ²λ ν
μ€νΈ μμ±, μ§μμλ΅, λ¬Έμ μμ½, κ°μ λΆμκ³Ό κ°μ λ€μν μμ
μμ νμν μ±λ₯μ 보μ¬μ€λλ€.
|
32 |
+
|
33 |
+
# β· νμ΅ λ°μ΄ν°
|
34 |
+
- ν΄λΉ λͺ¨λΈμμ μ체 κ°λ°ν μ΄ 3.6GB ν¬κΈ°μ λ°μ΄ν°λ₯Ό λ°νμΌλ‘ νμ΅λμμ΅λλ€. λͺ¨λ 233λ§ κ±΄μ QnA, μμ½, λΆλ₯ λ± λ°μ΄ν°λ₯Ό ν¬ν¨νλ©°,
|
35 |
+
κ·Έ μ€ 133λ§ κ±΄μ 53κ° μμμ κ°κ΄μ λ¬Έμ λ‘ κ΅¬μ±λμμ΅λλ€. μ΄ μμμλ νκ΅μ¬, μ¬ν, μ¬λ¬΄, λ²λ₯ , μΈλ¬΄, μν, μλ¬Ό, 물리, νν λ±μ΄ ν¬ν¨λλ©°,
|
36 |
+
Chain of Thought λ°©μμΌλ‘ νμ΅λμμ΅λλ€. λν 130λ§ κ±΄μ μ£Όκ΄μ λ¬Έμ λ νκ΅μ¬, μ¬λ¬΄, λ²λ₯ , μΈλ¬΄, μν λ± 38κ° μμμ κ±Έμ³ νμ΅λμμ΅λλ€.
|
37 |
+
νμ΅ λ°μ΄ν° μ€ νκ΅μ μ¬ν κ°μΉμ μΈκ°μ κ°μ μ μ΄ν΄νκ³ μ§μν μ¬νμ λ°λΌ μΆλ ₯ν μ μλ λ°μ΄ν°λ₯Ό νμ΅νμμ΅λλ€.
|
38 |
+
- νμ΅ Instruction Datasets Format:
|
39 |
+
<pre><code>{"prompt": "prompt text", "completion": "ideal generated text"}</code></pre>
|
40 |
+
|
41 |
+
# βΈ μ¬μ© μ¬λ‘
|
42 |
+
ν΄λΉ λͺ¨λΈμ λ€μν μμ© λΆμΌμμ μ¬μ©λ μ μμ΅λλ€. μλ₯Ό λ€μ΄:
|
43 |
+
- κ΅μ‘ λΆμΌ: μμ¬, μν, κ³Όν λ± λ€μν νμ΅ μλ£μ λν μ§μμλ΅ λ° μ€λͺ
μμ±.
|
44 |
+
- λΉμ¦λμ€: λ²λ₯ , μ¬λ¬΄, μΈλ¬΄ κ΄λ ¨ μ§μμ λν λ΅λ³ μ 곡 λ° λ¬Έμ μμ½.
|
45 |
+
- μ°κ΅¬ λ° λ¬Έν: νκ΅ μ¬νμ λ¬Ένμ λ§μΆ μμ°μ΄ μ²λ¦¬ μμ
, κ°μ λΆμ, λ¬Έμ μμ± λ° λ²μ.
|
46 |
+
- κ³ κ° μλΉμ€: μ¬μ©μμμ λν μμ± λ° λ§μΆ€ν μλ΅ μ 곡.
|
47 |
+
- μ΄ λͺ¨λΈμ νκ΅ μ¬νμ λν μ΄ν΄μ λ€μν μμ°μ΄ μ²λ¦¬ μμ
μμ λμ νμ©λλ₯Ό κ°μ§λλ€.
|
48 |
+
- μμ
|
49 |
+
|
50 |
+
1. λ
λλ μ΄λ λ
μΈκ°?
|
51 |
+
λ
λλ λνλ―Όκ΅μ μν λ‘, λ
λλ νκ΅μ λ
λλΌλ μ΄λ¦μΌλ‘λ λΆλ¦¬λ©°, λ
λλ λ
λμ μμΉν λ
λλΌλ μ¬μ μ΄λ¦μ
λλ€. λ
λλ λ
λμ μμΉν λ
λλΌλ μ¬μ μ΄λ¦μ
λλ€.
|
52 |
+
|
53 |
+
2. νκ΅ λμͺ½μ μλ λ°λ€λ₯Ό 무μμ΄λΌκ³ νλκ°?
|
54 |
+
νκ΅ λμͺ½μ μλ λ°λ€λ 'λν΄'λΌκ³ ν©λλ€. λν΄λ νκ΅μ λμͺ½μ μμΉν λ°λ€λ‘,
|
55 |
+
λΆνκ³Ό κ²½κ³λ₯Ό λ§λκ³ μμ΅λλ€. λν΄λ νκ΅μ μ€μν ν΄μ κ΅ν΅λ‘ μ€ νλλ‘, ν΄μκ΅ν΅κ³Ό μ΄μ
μ μ€μν μν μ νκ³ μμ΅λλ€.
|
56 |
+
|
57 |
+
|
58 |
+
3. 20μΈκΈ° μ΄λ° μΌλ³Έμ΄ μ‘°μ μ μλ―Όμ§ν ν κ²μ λν΄μ μ΄λ‘ν΄ μκ°νλμ§?
|
59 |
+
μ‘°μ μ 19μΈκΈ° μ€λ°μ μΌλ³Έμ μλ―Όμ§νλ₯Ό λ°μλ€. μ΄λ μΌλ³Έμ κ΅°μ¬μ , κ²½μ μ κ°λ ₯μ±κ³Ό μ μΉμ μΉ¨μ
μΌλ‘ μΈν΄ λ°μνλ€.
|
60 |
+
μ‘°μ μ μΌλ³Έμ κ΅°μ¬μ μΉ¨μ
μ ν볡νκ³ μλ―Όμ§ κ΄κ³κ° μμλμλ€. μ΄λ¬ν μν©μμ μ‘°μ κ΅λ―Όλ€μ ν° λΆμκ°κ³Ό μ’μ κ°μ λκΌμ κ²μ΄λ€.
|
61 |
+
κ·Έλ¬λ μΌμ νκΈ°μλ μΌλ³Έμ μλ―Όμ§ν 체μ κ° μ μ°¨ μ½νλλ©΄μ μ‘°μ κ΅λ―Όλ€μ λ ν° μμ μ λ
립μ μΆκ΅¬νκ² λλ€.
|
62 |
+
μ΄λ¬ν μμ¬μ λ°°κ²½μ ν΅ν΄ μ‘°μ κ΅λ―Όλ€μ μλ―Όμ§νμ λν΄ λ§€μ° λΆμ μ μΈ νλλ₯Ό 보μμ κ²μ΄λ€.
|
63 |
+
|
64 |
+
|
65 |
+
4. μμ€κ·Ό μμ¬κ° μ΄ν νλ‘λΆλ―Έλ₯Ό μ 격ν μ¬κ±΄μ μ΄λ»κ² μκ°νλκ°?
|
66 |
+
μμ€κ·Ό μμ¬λ 1909λ
4μ 27μΌμ μ΄ν νλ‘λΆλ―Έλ₯Ό μ 격νλ€. κ·Έλ μΌλ³Έ μ κ΅μ£Όμ μ μΉμ κ΅°μ¬μ νλμ λν΄ λ°λνλ©°, μΌλ³Έμ 무λ ₯ μ§λ°°λ₯Ό λ§κΈ° μν΄ μ΄ν λ₯Ό 곡격νλ€.
|
67 |
+
μμ€κ·Όμ νκ΅ λ΄μμ λ
립μ΄λκ°λ‘ μλ €μ Έ μμΌλ©°, κ·Έμ νμλ νκ΅ λ΄ λ
립μ΄λμ μ€μν μ¬κ±΄ μ€ νλλ‘ μ¬κ²¨μ§λ€.
|
68 |
+
μμ€κ·Όμ 1946λ
μ μ΅μ΄μ λ
립μ΄λκ°λ‘ μΈμ λ°μκ³ , κ·Έμ ν보λ λ§μ λ
립μ΄λκ°λ€μκ² μκ°μ μ€λ€.
|
69 |
+
|
70 |
+
|
71 |
+
5. νκ΅ μ¬νμμ 곡λ체 μμκ³Ό νλμ κ°μΉλ₯Ό μ΄λ»κ² μ€μνκ² μκ°νμλκΉ?
|
72 |
+
μ΄λ λ§€μ° μ€μν©λλ€. νκ΅μ μ ν΅μ μΌλ‘ 곡λ체 μμμ΄ κ°νκ³ , κ°μ‘±κ³Ό μ§μ μ¬νμμ νλμ μ€μνλ λ¬Ένκ° κΉμ΅λλ€.
|
73 |
+
μ΄λ¬ν κ°μΉλ μ¬μ ν νμ¬ μ¬νμμ μ€μν μν μ νλ©°, νΉν λ
ΈμΈ 보νΈμ κ°μ μ¬νμ λ¬Έμ μμ ν° λμμ΄ λ©λλ€.
|
74 |
+
λν, μ΄λ¬ν κ°μΉλ κ°μΈμ ν볡과 μμ κ°μ μ¦μ§μν€κΈ°λ ν©λλ€. λ°λΌμ μ΄λ¬ν κ°μΉλ₯Ό μ μ§νκ³ λ°μ μν€λ κ²μ νκ΅ μ¬νμ μ€μν λͺ©νμ
λλ€.
|
75 |
+
|
76 |
+
# βΉ νκ³ ββ
|
77 |
+
- ν΄λΉ λͺ¨λΈμ νκ΅μ΄μ νκ΅ λ¬Ένμ νΉνλμ΄ μμΌλ,
|
78 |
+
νΉμ μμ(μ: μ΅μ κ΅μ μλ£, μ λ¬Έ λΆμΌ)μ λ°μ΄ν° λΆμ‘±μΌλ‘ μΈν΄ λ€λ₯Έ μΈμ΄ λλ
|
79 |
+
λ¬Ένμ λν μλ΅μ μ νμ±μ΄ λ¨μ΄μ§ μ μμ΅λλ€.
|
80 |
+
λν, 볡μ‘ν λ
Όλ¦¬μ μ¬κ³ λ₯Ό μꡬνλ λ¬Έμ μ λν΄ μ νλ μΆλ‘ λ₯λ ₯μ λ³΄μΌ μ μμΌλ©°,
|
81 |
+
νΈν₯λ λ°μ΄ν°κ° ν¬ν¨λ κ²½μ° νΈν₯λ μλ΅μ΄ μμ±λ κ°λ₯μ±λ μ‘΄μ¬ν©λλ€.
|
82 |
+
|
83 |
+
# βΊ μ¬μ© λ°©λ²
|
84 |
+
<pre><code>
|
85 |
+
from transformers import AutoModel, AutoTokenizer
|
86 |
+
|
87 |
+
tokenizer = AutoTokenizer.from_pretrained("SEOKDONG/openchat3.5_korean_v1.0_sft")
|
88 |
+
model = AutoModel.from_pretrained("SEOKDONG/openchat3.5_korean_v1.0_sft")
|
89 |
+
|
90 |
+
input_text = """ γκ΅λ―Όκ±΄κ°λ³΄νλ²γμ 44μ‘°, γκ΅λ―Όκ±΄κ°λ³΄νλ² μνλ Ήγμ 19μ‘°,γμ½κ΄μ κ·μ μ κ΄ν λ²λ₯ γμ 5μ‘°, γμλ²γμ 54μ‘° μ°Έμ‘° νλ¨ ν΄μ€""" + " λ΅λ³:"
|
91 |
+
inputs = tokenizer(input_text, return_tensors="pt")
|
92 |
+
with torch.no_grad():
|
93 |
+
outputs = model.generate(**inputs, max_length=1024, temperature=0.5, do_sample=True, repetition_penalty=1.15)
|
94 |
+
|
95 |
+
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
96 |
+
print(result)
|
97 |
+
</code></pre>
|
98 |
+
|
99 |
+
|
100 |
+
---
|
101 |
+
Hereβs the English version of the provided text:
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
# βΆ Model Description
|
106 |
+
|
107 |
+
**Model Name and Key Features**:
|
108 |
+
This Model is based on the OpenChat 3.5 model, fine-tuned using the SFT method on the Mistral 7B model.
|
109 |
+
It is designed to understand Korean and various cultural contexts, utilizing data from 135 domains in Korean society.
|
110 |
+
The model supports tasks such as text generation, conversation inference, document summarization,
|
111 |
+
question answering, sentiment analysis, and other NLP tasks.
|
112 |
+
Its applications span fields like law, finance, science, education, business, and cultural research.
|
113 |
+
|
114 |
+
**Model Architecture**:
|
115 |
+
This Model is a high-performance language model with 7 billion parameters based on the Mistral 7B model.
|
116 |
+
It uses OpenChat 3.5 as the foundation and is fine-tuned using SFT to excel in Korean language and culture.
|
117 |
+
The streamlined Mistral 7B architecture ensures fast inference and memory efficiency,
|
118 |
+
optimized for various NLP tasks like text generation, question answering, document summarization, and sentiment analysis.
|
119 |
+
|
120 |
+
---
|
121 |
+
|
122 |
+
# β· Training Data
|
123 |
+
|
124 |
+
This Model was trained on 3.6GB of data, comprising 2.33 million Q&A instances.
|
125 |
+
This includes 1.33 million multiple-choice questions across 53 domains such as history,
|
126 |
+
finance, law, tax, and science, trained with the Chain of Thought method. Additionally,
|
127 |
+
1.3 million short-answer questions cover 38 domains including history, finance, and law.
|
128 |
+
|
129 |
+
**Training Instruction Dataset Format**:
|
130 |
+
`{"prompt": "prompt text", "completion": "ideal generated text"}`
|
131 |
+
|
132 |
+
---
|
133 |
+
|
134 |
+
# βΈ Use Cases
|
135 |
+
|
136 |
+
This Model can be used across multiple fields, such as:
|
137 |
+
|
138 |
+
- **Education**: Answering questions and generating explanations for subjects like history, math, and science.
|
139 |
+
- **Business**: Providing responses and summaries for legal, financial, and tax-related queries.
|
140 |
+
- **Research and Culture**: Performing NLP tasks, sentiment analysis, document generation, and translation.
|
141 |
+
- **Customer Service**: Generating conversations and personalized responses for users.
|
142 |
+
|
143 |
+
This model is highly versatile in various NLP tasks.
|
144 |
+
|
145 |
+
---
|
146 |
+
|
147 |
+
# βΉ Limitations
|
148 |
+
|
149 |
+
This Model is specialized in Korean language and culture.
|
150 |
+
However, it may lack accuracy in responding to topics outside its scope,
|
151 |
+
such as international or specialized data.
|
152 |
+
Additionally, it may have limited reasoning ability for complex logical problems and
|
153 |
+
may produce biased responses if trained on biased data.
|
openchat3.5_korean_v1.0_sft.Q4_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b15a21d2d316881a6833082967818f115cc548557beb6e6ad1f39a2a5e41c18d
|
3 |
+
size 4108928864
|