MyeongHo0621 commited on
Commit
274fb58
ยท
verified ยท
1 Parent(s): 694fc18

Upload EEVE Korean Custom model (checkpoint-500 merged)

Browse files
README.md ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ko
4
+ - en
5
+ license: cc-by-nc-sa-4.0
6
+ base_model: yanolja/EEVE-Korean-Instruct-10.8B-v1.0
7
+ tags:
8
+ - korean
9
+ - instruction-tuning
10
+ - lora
11
+ - merged
12
+ library_name: transformers
13
+ pipeline_tag: text-generation
14
+ ---
15
+
16
+ # EEVE-Korean-Custom-10.8B
17
+
18
+ > ๐Ÿ‡ฐ๐Ÿ‡ท **ํ•œ๊ตญ์–ด ์ปค์Šคํ…€ ํŒŒ์ธํŠœ๋‹** - ๋ฐ˜๋ง ์งˆ๋ฌธ์—๋„ ์กด๋Œ“๋ง๋กœ ์ •์ค‘ํ•˜๊ฒŒ ๋‹ต๋ณ€ํ•ฉ๋‹ˆ๋‹ค
19
+
20
+ ## ๋ชจ๋ธ ์†Œ๊ฐœ
21
+
22
+ ์ด ๋ชจ๋ธ์€ [EEVE-Korean-Instruct-10.8B-v1.0](https://huggingface.co/yanolja/EEVE-Korean-Instruct-10.8B-v1.0)์„ ๋ฒ ์ด์Šค๋กœ, ๊ณ ํ’ˆ์งˆ ํ•œ๊ตญ์–ด instruction ๋ฐ์ดํ„ฐ๋กœ **LoRA ํŒŒ์ธํŠœ๋‹**ํ•œ ํ›„ **๋ณ‘ํ•ฉ(merged)** ํ•œ ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค.
23
+
24
+ ### ์ฃผ์š” ํŠน์ง•
25
+
26
+ - โœ… **๊ณ ํ’ˆ์งˆ ํ•œ๊ตญ์–ด**: 100K+ ๊ณ ํ’ˆ์งˆ instruction ๋ฐ์ดํ„ฐ๋กœ ํ›ˆ๋ จ
27
+ - โœ… **8K context**: ๊ธด ๋ฌธ๋งฅ ์ง€์›
28
+ - โœ… **ํ•œ์˜ bilingual**: ํ•œ๊ตญ์–ด์™€ ์˜์–ด ๋ชจ๋‘ ์ง€์›
29
+
30
+ ## ๋น ๋ฅธ ์‹œ์ž‘
31
+
32
+ ### ์„ค์น˜
33
+
34
+ ```bash
35
+ pip install transformers torch accelerate
36
+ ```
37
+
38
+ ### ๊ธฐ๋ณธ ์‚ฌ์šฉ
39
+
40
+ ```python
41
+ from transformers import AutoModelForCausalLM, AutoTokenizer
42
+
43
+ # ๋ชจ๋ธ ๋กœ๋“œ (PEFT ์—†์ด!)
44
+ model = AutoModelForCausalLM.from_pretrained(
45
+ "MyeongHo0621/eeve-vss-smh",
46
+ device_map="auto",
47
+ torch_dtype="auto"
48
+ )
49
+ tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh")
50
+
51
+ # ํ”„๋กฌํ”„ํŠธ ํ…œํ”Œ๋ฆฟ (EEVE ํ˜•์‹)
52
+ def create_prompt(user_input):
53
+ return f"""A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
54
+ Human: {user_input}
55
+ Assistant: """
56
+
57
+ # ๋Œ€ํ™”
58
+ user_input = "ํŒŒ์ด์ฌ์œผ๋กœ ํ”ผ๋ณด๋‚˜์น˜ ์ˆ˜์—ด ๊ตฌํ˜„ํ•ด์ค˜" # ๋ฐ˜๋ง
59
+ prompt = create_prompt(user_input)
60
+
61
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
62
+ outputs = model.generate(
63
+ **inputs,
64
+ max_new_tokens=512,
65
+ temperature=0.3,
66
+ top_p=0.85,
67
+ repetition_penalty=1.0,
68
+ do_sample=True
69
+ )
70
+
71
+ response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
72
+ print(response) # ์กด๋Œ“๋ง๋กœ ๋‹ต๋ณ€
73
+ ```
74
+
75
+ ### ์ŠคํŠธ๋ฆฌ๋ฐ ์ƒ์„ฑ
76
+
77
+ ```python
78
+ from transformers import TextIteratorStreamer
79
+ from threading import Thread
80
+
81
+ streamer = TextIteratorStreamer(tokenizer, skip_special_tokens=True)
82
+ generation_kwargs = {
83
+ **inputs,
84
+ "max_new_tokens": 512,
85
+ "temperature": 0.3,
86
+ "top_p": 0.85,
87
+ "streamer": streamer
88
+ }
89
+
90
+ thread = Thread(target=model.generate, kwargs=generation_kwargs)
91
+ thread.start()
92
+
93
+ for text in streamer:
94
+ print(text, end="", flush=True)
95
+ ```
96
+
97
+ ## ํ›ˆ๋ จ ์„ธ๋ถ€์‚ฌํ•ญ
98
+
99
+ ### ๋ฐ์ดํ„ฐ์…‹
100
+
101
+ - **ํฌ๊ธฐ**: ~100,000 ์ƒ˜ํ”Œ
102
+ - **์ถœ์ฒ˜**: ๊ณ ํ’ˆ์งˆ ํ•œ๊ตญ์–ด instruction ๋ฐ์ดํ„ฐ์…‹ ์กฐํ•ฉ
103
+ - KoAlpaca
104
+ - Ko-Ultrachat
105
+ - KoInstruct
106
+ - Kullm-v2
107
+ - Smol Korean Talk
108
+ - Korean Wiki QA
109
+ - **์ •์ œ**: ๊ธธ์ด ํ•„ํ„ฐ๋ง, ๋ฐ˜๋ณต ์ œ๊ฑฐ, ์–ธ์–ด ํ™•์ธ, ํŠน์ˆ˜๋ฌธ์ž ์ œ๊ฑฐ
110
+
111
+ ### LoRA ์„ค์ •
112
+
113
+ ```yaml
114
+ r: 64 # LoRA rank
115
+ lora_alpha: 128 # alpha = 2 * r
116
+ lora_dropout: 0.05 # ๋‚ฎ๊ฒŒ ์„ค์ • (์ด๋ฏธ instruction-tuned)
117
+ target_modules:
118
+ - q_proj
119
+ - k_proj
120
+ - v_proj
121
+ - o_proj
122
+ - gate_proj
123
+ - up_proj
124
+ - down_proj
125
+ bias: none
126
+ task_type: CAUSAL_LM
127
+ ```
128
+
129
+ ### ํ›ˆ๋ จ ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ
130
+
131
+ | ํŒŒ๋ผ๋ฏธํ„ฐ | ๊ฐ’ | ์„ค๋ช… |
132
+ |---------|-----|------|
133
+ | **Epochs** | 2 | ๋น ๋ฅธ ์ˆ˜๋ ด |
134
+ | **Batch Size** | 4 (per device) | ๋ฉ”๋ชจ๋ฆฌ ํšจ์œจ |
135
+ | **Gradient Accumulation** | 4 | Effective batch = 16 |
136
+ | **Learning Rate** | 1e-4 | ๋‚ฎ์€ LR (์•ˆ์ •์ ) |
137
+ | **Max Length** | 2048 | ํ† ํฐ ๊ธธ์ด |
138
+ | **Warmup Ratio** | 0.05 | ์ดˆ๊ธฐ ์•ˆ์ •ํ™” |
139
+ | **Weight Decay** | 0.01 | ์ •๊ทœํ™” |
140
+ | **Optimizer** | AdamW (8-bit) | ๋ฉ”๋ชจ๋ฆฌ ์ตœ์ ํ™” |
141
+ | **LR Scheduler** | Cosine | ๋ถ€๋“œ๋Ÿฌ์šด ๊ฐ์†Œ |
142
+
143
+ ### ๋ฉ”๋ชจ๋ฆฌ ์ตœ์ ํ™”
144
+
145
+ - **4-bit Quantization**: NF4 (ํ›ˆ๋ จ ์‹œ)
146
+ - **Gradient Checkpointing**: ํ™œ์„ฑํ™”
147
+ - **BF16 Training**: H100E ์ตœ์ ํ™”
148
+ - **VRAM ์‚ฌ์šฉ๋Ÿ‰**: ~11GB (ํ›ˆ๋ จ ์‹œ)
149
+
150
+ ### ํ›ˆ๋ จ ํ™˜๊ฒฝ
151
+
152
+ - **GPU**: NVIDIA H100 80GB HBM3
153
+ - **Framework**: PyTorch 2.6, Transformers 4.46.3, PEFT 0.13.2
154
+ - **ํ›ˆ๋ จ ์‹œ๊ฐ„**: ~6-8์‹œ๊ฐ„ (500 steps)
155
+ - **Checkpoint**: checkpoint-500 (๋ณ‘ํ•ฉ๋จ)
156
+
157
+ ## ์„ฑ๋Šฅ ์˜ˆ์‹œ
158
+
159
+ ### ๋ฐ˜๋ง โ†’ ์กด๋Œ“๋ง ๋ณ€ํ™˜
160
+
161
+ **์ž…๋ ฅ (๋ฐ˜๋ง)**:
162
+ ```
163
+ WMS๊ฐ€ ๋ญ์•ผ?
164
+ ```
165
+
166
+ **์ถœ๋ ฅ (์กด๋Œ“๋ง)**:
167
+ ```
168
+ WMS๋Š” Warehouse Management System์˜ ์•ฝ์ž๋กœ, ์ฐฝ๊ณ  ๊ด€๋ฆฌ ์‹œ์Šคํ…œ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.
169
+ ์žฌ๊ณ  ์ถ”์ , ์ž…์ถœ๊ณ  ๊ด€๋ฆฌ, ํ”ผํ‚น, ํŒจํ‚น ๋“ฑ์˜ ๋ฌผ๋ฅ˜ ํ”„๋กœ์„ธ์Šค๋ฅผ ์ž๋™ํ™”ํ•˜๊ณ  ์ตœ์ ํ™”ํ•˜๋Š”
170
+ ์†Œํ”„ํŠธ์›จ์–ด ์‹œ์Šคํ…œ์ž…๋‹ˆ๋‹ค. ํšจ์œจ์ ์ธ ์ฐฝ๊ณ  ์šด์˜์„ ์œ„ํ•ด ์‚ฌ์šฉ๋˜๋ฉฐ, ์‹ค์‹œ๊ฐ„ ์žฌ๊ณ  ๊ฐ€์‹œ์„ฑ๊ณผ
171
+ ์ž‘์—… ์ƒ์‚ฐ์„ฑ ํ–ฅ์ƒ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
172
+ ```
173
+
174
+ ### ์ฝ”๋“œ ์ƒ์„ฑ
175
+
176
+ **์ž…๋ ฅ**:
177
+ ```
178
+ ํŒŒ์ด์ฌ์œผ๋กœ ๋ฆฌ์ŠคํŠธ๋ฅผ ์—ญ์ˆœ์œผ๋กœ ๋งŒ๋“ค์–ด์ค˜
179
+ ```
180
+
181
+ **์ถœ๋ ฅ**:
182
+ ```
183
+ ํŒŒ์ด์ฌ์—์„œ ๋ฆฌ์ŠคํŠธ๋ฅผ ์—ญ์ˆœ์œผ๋กœ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๋ ค๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค:
184
+
185
+ 1. reverse() ๋ฉ”์„œ๋“œ ์‚ฌ์šฉ:
186
+ my_list = [1, 2, 3, 4, 5]
187
+ my_list.reverse()
188
+ print(my_list) # [5, 4, 3, 2, 1]
189
+
190
+ 2. ์Šฌ๋ผ์ด์‹ฑ ์‚ฌ์šฉ:
191
+ my_list = [1, 2, 3, 4, 5]
192
+ reversed_list = my_list[::-1]
193
+ print(reversed_list) # [5, 4, 3, 2, 1]
194
+
195
+ 3. reversed() ํ•จ์ˆ˜ ์‚ฌ์šฉ:
196
+ my_list = [1, 2, 3, 4, 5]
197
+ reversed_list = list(reversed(my_list))
198
+ print(reversed_list) # [5, 4, 3, 2, 1]
199
+
200
+ ๊ฐ ๋ฐฉ๋ฒ•์˜ ์ฐจ์ด์ :
201
+ - reverse()๋Š” ์›๋ณธ ๋ฆฌ์ŠคํŠธ๋ฅผ ์ง์ ‘ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค
202
+ - ์Šฌ๋ผ์ด์‹ฑ๊ณผ reversed()๋Š” ์ƒˆ๋กœ์šด ๋ฆฌ์ŠคํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค
203
+ ```
204
+
205
+ ## ํ”„๋กฌํ”„ํŠธ ํ…œํ”Œ๋ฆฟ
206
+
207
+ ์ด ๋ชจ๋ธ์€ EEVE์˜ ํ‘œ์ค€ ํ…œํ”Œ๋ฆฟ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค:
208
+
209
+ ```python
210
+ template = """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
211
+ Human: {user_message}
212
+ Assistant: """
213
+ ```
214
+
215
+ **์ค‘์š”**: ์ด ํ…œํ”Œ๋ฆฟ์„ ์ •ํ™•ํžˆ ์‚ฌ์šฉํ•ด์•ผ ์ตœ์ ์˜ ์„ฑ๋Šฅ์„ ์–ป์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
216
+
217
+ ## ์ถ”์ฒœ ์ƒ์„ฑ ํŒŒ๋ผ๋ฏธํ„ฐ
218
+
219
+ ```python
220
+ generation_config = {
221
+ "max_new_tokens": 512,
222
+ "temperature": 0.3, # ๋‚ฎ์Œ = ์ผ๊ด€์„ฑ
223
+ "top_p": 0.85, # Nucleus sampling
224
+ "repetition_penalty": 1.0, # ๋ฐ˜๋ณต ๋ฐฉ์ง€
225
+ "do_sample": True,
226
+ "pad_token_id": tokenizer.pad_token_id,
227
+ "eos_token_id": tokenizer.eos_token_id,
228
+ }
229
+ ```
230
+
231
+ ### ํŒŒ๋ผ๋ฏธํ„ฐ ์กฐ์ • ๊ฐ€์ด๋“œ
232
+
233
+ | ์šฉ๋„ | Temperature | Top P | Repetition Penalty |
234
+ |------|-------------|-------|-------------------|
235
+ | **์ •ํ™•ํ•œ ๋‹ต๋ณ€** | 0.1-0.3 | 0.8-0.9 | 1.0 |
236
+ | **๊ท ํ˜•์žกํžŒ ๋‹ต๋ณ€** | 0.5-0.7 | 0.85-0.95 | 1.0 |
237
+ | **์ฐฝ์˜์  ๋‹ต๋ณ€** | 0.8-1.0 | 0.9-1.0 | 1.05-1.1 |
238
+
239
+ ## ์ œํ•œ์‚ฌํ•ญ
240
+
241
+ - ์ด ๋ชจ๋ธ์€ **์—ฐ๊ตฌ ๋ฐ ๊ต์œก ๋ชฉ์ **์œผ๋กœ ๊ณต๊ฐœ๋˜์—ˆ์Šต๋‹ˆ๋‹ค
242
+ - ์ƒ์—…์  ์‚ฌ์šฉ ์‹œ CC-BY-NC-SA-4.0 ๋ผ์ด์„ ์Šค๋ฅผ ์ค€์ˆ˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค
243
+ - ํ•œ๊ตญ์–ด์— ์ตœ์ ํ™”๋˜์–ด ์žˆ์œผ๋‚˜, ๋‹ค๋ฅธ ์–ธ์–ด๋„ ๋ถ€๋ถ„์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค
244
+ - checkpoint-500 ๊ธฐ์ค€์œผ๋กœ, ์ถ”๊ฐ€ ํ›ˆ๋ จ ์‹œ ์„ฑ๋Šฅ์ด ํ–ฅ์ƒ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค
245
+
246
+ ## ๋ผ์ด์„ ์Šค
247
+
248
+ - **๋ชจ๋ธ ๋ผ์ด์„ ์Šค**: CC-BY-NC-SA-4.0
249
+ - **๋ฒ ์ด์Šค ๋ชจ๋ธ**: [EEVE-Korean-Instruct-10.8B-v1.0](https://huggingface.co/yanolja/EEVE-Korean-Instruct-10.8B-v1.0)์˜ ๋ผ์ด์„ ์Šค ์ค€์ˆ˜
250
+ - **์ƒ์—…์  ์‚ฌ์šฉ**: ์ œํ•œ์  (๋ผ์ด์„ ์Šค ์ฐธ์กฐ)
251
+
252
+ ## Citation
253
+
254
+ ```bibtex
255
+ @misc{eeve-vss-smh-2024,
256
+ author = {MyeongHo0621},
257
+ title = {EEVE-VSS-SMH: Korean Custom Fine-tuned Model},
258
+ year = {2024},
259
+ publisher = {Hugging Face},
260
+ howpublished = {\url{https://huggingface.co/MyeongHo0621/eeve-vss-smh}},
261
+ note = {LoRA fine-tuned and merged model based on EEVE-Korean-Instruct-10.8B-v1.0}
262
+ }
263
+ ```
264
+
265
+ ## Acknowledgments
266
+
267
+ - **๋ฒ ์ด์Šค ๋ชจ๋ธ**: [Yanolja](https://huggingface.co/yanolja) - EEVE-Korean-Instruct-10.8B-v1.0
268
+ - **ํ›ˆ๋ จ ์ธํ”„๋ผ**: KT Cloud H100E
269
+ - **ํ”„๋ ˆ์ž„์›Œํฌ**: Hugging Face Transformers, PEFT
270
+
271
+ ## Contact
272
+
273
+ - **GitHub**: [MyeongHo0621](https://github.com/MyeongHo0621)
274
+ - **Model Repository**: [tesseract](https://github.com/MyeongHo0621/tuned_solar)
275
+
276
+ ---
277
+
278
+ **Last Updated**: 2024-10-11
279
+ **Checkpoint**: 500 steps
280
+ **Status**: Merged & Ready for Deployment ๐Ÿš€
281
+
UPLOAD_GUIDE.md ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hugging Face ์—…๋กœ๋“œ ๊ฐ€์ด๋“œ
2
+
3
+ ## ๋ชจ๋ธ ์ •๋ณด
4
+
5
+ - **๋ชจ๋ธ ์ด๋ฆ„**: `MyeongHo0621/eeve-vss-smh`
6
+ - **ํฌ๊ธฐ**: ~21GB
7
+ - **์˜ˆ์ƒ ์—…๋กœ๋“œ ์‹œ๊ฐ„**: 20-30๋ถ„
8
+
9
+ ---
10
+
11
+ ## ๐Ÿš€ ์—…๋กœ๋“œ ๋‹จ๊ณ„
12
+
13
+ ### 1๋‹จ๊ณ„: Hugging Face ๋กœ๊ทธ์ธ
14
+
15
+ ```bash
16
+ # ์ตœ์‹  ๋ช…๋ น์–ด
17
+ hf auth login
18
+
19
+ # ๋˜๋Š”
20
+ huggingface-cli login
21
+ ```
22
+
23
+ **ํ† ํฐ ๋ฐ›๊ธฐ**:
24
+ 1. https://huggingface.co/settings/tokens ์ ‘์†
25
+ 2. `New token` ํด๋ฆญ
26
+ 3. Name: `tesseract-upload` (์•„๋ฌด๊ฑฐ๋‚˜)
27
+ 4. Type: `Write` โœ… (์ค‘์š”!)
28
+ 5. ์ƒ์„ฑ๋œ ํ† ํฐ ๋ณต์‚ฌ
29
+ 6. ํ„ฐ๋ฏธ๋„์— ๋ถ™์—ฌ๋„ฃ๊ธฐ
30
+
31
+ ---
32
+
33
+ ### 2๋‹จ๊ณ„: ์—…๋กœ๋“œ ์‹คํ–‰
34
+
35
+ #### ๋ฐฉ๋ฒ• A: Python ์Šคํฌ๋ฆฝํŠธ (์ถ”์ฒœ)
36
+
37
+ ```bash
38
+ cd /home/work/tesseract/eeve_hf_upload
39
+
40
+ # Public ์—…๋กœ๋“œ
41
+ python upload_to_hf.py --repo-id MyeongHo0621/eeve-vss-smh
42
+
43
+ # Private ์—…๋กœ๋“œ (ํ…Œ์ŠคํŠธ์šฉ)
44
+ python upload_to_hf.py --repo-id MyeongHo0621/eeve-vss-smh --private
45
+ ```
46
+
47
+ #### ๋ฐฉ๋ฒ• B: CLI ์ง์ ‘ ์‚ฌ์šฉ
48
+
49
+ ```bash
50
+ # ์ตœ์‹  ๋ช…๋ น์–ด
51
+ hf upload MyeongHo0621/eeve-vss-smh /home/work/tesseract/eeve_hf_upload
52
+
53
+ # ๋˜๋Š” ๊ธฐ์กด ๋ช…๋ น์–ด
54
+ huggingface-cli upload MyeongHo0621/eeve-vss-smh /home/work/tesseract/eeve_hf_upload
55
+ ```
56
+
57
+ ---
58
+
59
+ ### 3๋‹จ๊ณ„: ์—…๋กœ๋“œ ํ™•์ธ
60
+
61
+ ์—…๋กœ๋“œ ์™„๋ฃŒ ํ›„:
62
+
63
+ 1. **๋ชจ๋ธ ํŽ˜์ด์ง€**: https://huggingface.co/MyeongHo0621/eeve-vss-smh
64
+ 2. **Files and versions** ํƒญ์—์„œ ํŒŒ์ผ ํ™•์ธ:
65
+ - โœ… README.md
66
+ - โœ… config.json
67
+ - โœ… model-00001-of-00005.safetensors (4.6GB)
68
+ - โœ… model-00002-of-00005.safetensors (4.6GB)
69
+ - โœ… model-00003-of-00005.safetensors (4.7GB)
70
+ - โœ… model-00004-of-00005.safetensors (4.6GB)
71
+ - โœ… model-00005-of-00005.safetensors (1.8GB)
72
+ - โœ… tokenizer files
73
+
74
+ ---
75
+
76
+ ## ๐Ÿงช ์—…๋กœ๋“œ ํ›„ ํ…Œ์ŠคํŠธ
77
+
78
+ ```python
79
+ from transformers import AutoModelForCausalLM, AutoTokenizer
80
+
81
+ # ๋ชจ๋ธ ๋‹ค์šด๋กœ๋“œ ๋ฐ ๋กœ๋“œ
82
+ model = AutoModelForCausalLM.from_pretrained(
83
+ "MyeongHo0621/eeve-vss-smh",
84
+ device_map="auto",
85
+ torch_dtype="auto"
86
+ )
87
+ tokenizer = AutoTokenizer.from_pretrained("MyeongHo0621/eeve-vss-smh")
88
+
89
+ # ๊ฐ„๋‹จํ•œ ํ…Œ์ŠคํŠธ
90
+ prompt = """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
91
+ Human: ์•ˆ๋…•
92
+ Assistant: """
93
+
94
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
95
+ outputs = model.generate(**inputs, max_new_tokens=50)
96
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
97
+ ```
98
+
99
+ ---
100
+
101
+ ## ๐Ÿ”ง ๋ฌธ์ œ ํ•ด๊ฒฐ
102
+
103
+ ### ๋ฌธ์ œ 1: "Not logged in"
104
+
105
+ ```bash
106
+ hf auth login
107
+ # ํ† ํฐ ์ž…๋ ฅ (Write ๊ถŒํ•œ ํ•„์š”)
108
+ ```
109
+
110
+ ### ๋ฌธ์ œ 2: "Repository not found"
111
+
112
+ - ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ด๋ฆ„์ด ์ •ํ™•ํ•œ์ง€ ํ™•์ธ
113
+ - `MyeongHo0621/eeve-vss-smh` (๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ถ„)
114
+
115
+ ### ๋ฌธ์ œ 3: ์—…๋กœ๋“œ ์‹คํŒจ
116
+
117
+ ```bash
118
+ # ์žฌ์‹œ๋„
119
+ python upload_to_hf.py --repo-id MyeongHo0621/eeve-vss-smh
120
+
121
+ # ๋˜๋Š” Git LFS ์‚ฌ์šฉ
122
+ git lfs install
123
+ huggingface-cli repo create MyeongHo0621/eeve-vss-smh --type model
124
+ git clone https://huggingface.co/MyeongHo0621/eeve-vss-smh
125
+ cd eeve-vss-smh
126
+ cp -r /home/work/tesseract/eeve_hf_upload/* .
127
+ git add .
128
+ git commit -m "Upload EEVE-VSS-SMH model"
129
+ git push
130
+ ```
131
+
132
+ ### ๋ฌธ์ œ 4: ๋„คํŠธ์›Œํฌ ํƒ€์ž„์•„์›ƒ
133
+
134
+ ```bash
135
+ # ์žฌ์‹œ๋„ (์ž๋™ ์žฌ๊ฐœ)
136
+ python upload_to_hf.py --repo-id MyeongHo0621/eeve-vss-smh
137
+ ```
138
+
139
+ ---
140
+
141
+ ## ๐Ÿ“Š ์—…๋กœ๋“œ ์ƒํƒœ ๋ชจ๋‹ˆํ„ฐ๋ง
142
+
143
+ ```bash
144
+ # ๋ณ„๋„ ํ„ฐ๋ฏธ๋„์—์„œ ์‹คํ–‰
145
+ watch -n 5 'ls -lh /home/work/tesseract/eeve_hf_upload/'
146
+ ```
147
+
148
+ ---
149
+
150
+ ## โœ… ์™„๋ฃŒ ์ฒดํฌ๋ฆฌ์ŠคํŠธ
151
+
152
+ - [ ] Hugging Face ๋กœ๊ทธ์ธ ์™„๋ฃŒ
153
+ - [ ] ์—…๋กœ๋“œ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰
154
+ - [ ] ๋ชจ๋ธ ํŽ˜์ด์ง€ ์ ‘์† ํ™•์ธ
155
+ - [ ] README.md ์ •์ƒ ํ‘œ์‹œ ํ™•์ธ
156
+ - [ ] ๋ชจ๋ธ ํŒŒ์ผ ์ „๋ถ€ ์—…๋กœ๋“œ ํ™•์ธ (21GB)
157
+ - [ ] ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋กœ ๋ชจ๋ธ ๋กœ๋“œ ํ™•์ธ
158
+
159
+ ---
160
+
161
+ ## ๐ŸŽฏ ์—…๋กœ๋“œ ํ›„
162
+
163
+ ์—…๋กœ๋“œ๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด:
164
+
165
+ 1. **๋ชจ๋ธ ์นด๋“œ ์ˆ˜์ •**: https://huggingface.co/MyeongHo0621/eeve-vss-smh/edit/main/README.md
166
+ 2. **Model Card ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ํ™•์ธ**: ์–ธ์–ด, ๋ผ์ด์„ ์Šค, ํƒœ๊ทธ ๋“ฑ
167
+ 3. **์ปค๋ฎค๋‹ˆํ‹ฐ ๊ณต์œ **: Model ํŽ˜์ด์ง€์—์„œ "Share" ๋ฒ„ํŠผ
168
+
169
+ ---
170
+
171
+ **์ค€๋น„ ์™„๋ฃŒ!** ๐Ÿš€
172
+
173
+ ```bash
174
+ cd /home/work/tesseract/eeve_hf_upload
175
+ python upload_to_hf.py --repo-id MyeongHo0621/eeve-vss-smh
176
+ ```
177
+
chat_template.jinja ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a helpful assistant.' %}{% endif %}{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 %}{{'<|im_start|>system
2
+ ' + system_message + '<|im_end|>
3
+ '}}{% endif %}{{'<|im_start|>' + message['role'] + '
4
+ ' + message['content'] + '<|im_end|>' + '
5
+ '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
+ ' }}{% endif %}
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "dtype": "float16",
9
+ "eos_token_id": 32000,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 14336,
15
+ "max_position_embeddings": 4096,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 48,
20
+ "num_key_value_heads": 8,
21
+ "pretraining_tp": 1,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_scaling": null,
24
+ "rope_theta": 10000.0,
25
+ "tie_word_embeddings": false,
26
+ "transformers_version": "4.56.2",
27
+ "use_cache": false,
28
+ "vocab_size": 40960
29
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 32000,
5
+ "transformers_version": "4.56.2",
6
+ "use_cache": false
7
+ }
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16f7997fd0a5804811b1d5ec0b7a7575aa78cc5cef49797a1bec663e6de9d40a
3
+ size 4899121936
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a300b1e8cf672656b093f2d25ae950b5efbb61f86227f53bbe225e2b747c2e8
3
+ size 4915916080
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df88d4b78145a6204070a8126ea35f04b218a653b63524696542fd9a244ee103
3
+ size 4999819232
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd39558859b4e31c82eb8ee7ea374dd4a7d224727d99ecd3b2f4bc3e28b5f85c
3
+ size 4915916080
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:815246982a287064485a7757c0400d947ce6931662a21a3edc7d372a864d616e
3
+ size 1879125696
model.safetensors.index.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 10804924416,
4
+ "total_size": 21609848832
5
+ },
6
+ "weight_map": {
7
+ "lm_head.weight": "model-00005-of-00005.safetensors",
8
+ "model.embed_tokens.weight": "model-00001-of-00005.safetensors",
9
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00005.safetensors",
10
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
11
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
12
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
13
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
14
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
15
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
16
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
17
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
18
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00005.safetensors",
19
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
20
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
21
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
22
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
23
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
24
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
25
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
26
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
27
+ "model.layers.10.input_layernorm.weight": "model-00002-of-00005.safetensors",
28
+ "model.layers.10.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
29
+ "model.layers.10.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
30
+ "model.layers.10.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
31
+ "model.layers.10.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
32
+ "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
33
+ "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
34
+ "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
35
+ "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
36
+ "model.layers.11.input_layernorm.weight": "model-00002-of-00005.safetensors",
37
+ "model.layers.11.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
38
+ "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
39
+ "model.layers.11.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
40
+ "model.layers.11.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
41
+ "model.layers.11.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
42
+ "model.layers.11.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
43
+ "model.layers.11.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
44
+ "model.layers.11.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
45
+ "model.layers.12.input_layernorm.weight": "model-00002-of-00005.safetensors",
46
+ "model.layers.12.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
47
+ "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
48
+ "model.layers.12.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
49
+ "model.layers.12.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
50
+ "model.layers.12.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
51
+ "model.layers.12.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
52
+ "model.layers.12.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
53
+ "model.layers.12.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
54
+ "model.layers.13.input_layernorm.weight": "model-00002-of-00005.safetensors",
55
+ "model.layers.13.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
56
+ "model.layers.13.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
57
+ "model.layers.13.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
58
+ "model.layers.13.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
59
+ "model.layers.13.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
60
+ "model.layers.13.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
61
+ "model.layers.13.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
62
+ "model.layers.13.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
63
+ "model.layers.14.input_layernorm.weight": "model-00002-of-00005.safetensors",
64
+ "model.layers.14.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
65
+ "model.layers.14.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
66
+ "model.layers.14.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
67
+ "model.layers.14.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
68
+ "model.layers.14.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
69
+ "model.layers.14.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
70
+ "model.layers.14.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
71
+ "model.layers.14.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
72
+ "model.layers.15.input_layernorm.weight": "model-00002-of-00005.safetensors",
73
+ "model.layers.15.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
74
+ "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
75
+ "model.layers.15.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
76
+ "model.layers.15.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
77
+ "model.layers.15.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
78
+ "model.layers.15.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
79
+ "model.layers.15.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
80
+ "model.layers.15.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
81
+ "model.layers.16.input_layernorm.weight": "model-00002-of-00005.safetensors",
82
+ "model.layers.16.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
83
+ "model.layers.16.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
84
+ "model.layers.16.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
85
+ "model.layers.16.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
86
+ "model.layers.16.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
87
+ "model.layers.16.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
88
+ "model.layers.16.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
89
+ "model.layers.16.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
90
+ "model.layers.17.input_layernorm.weight": "model-00002-of-00005.safetensors",
91
+ "model.layers.17.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
92
+ "model.layers.17.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
93
+ "model.layers.17.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
94
+ "model.layers.17.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
95
+ "model.layers.17.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
96
+ "model.layers.17.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
97
+ "model.layers.17.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
98
+ "model.layers.17.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
99
+ "model.layers.18.input_layernorm.weight": "model-00002-of-00005.safetensors",
100
+ "model.layers.18.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
101
+ "model.layers.18.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
102
+ "model.layers.18.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
103
+ "model.layers.18.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
104
+ "model.layers.18.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
105
+ "model.layers.18.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
106
+ "model.layers.18.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
107
+ "model.layers.18.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
108
+ "model.layers.19.input_layernorm.weight": "model-00002-of-00005.safetensors",
109
+ "model.layers.19.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
110
+ "model.layers.19.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
111
+ "model.layers.19.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
112
+ "model.layers.19.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
113
+ "model.layers.19.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
114
+ "model.layers.19.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
115
+ "model.layers.19.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
116
+ "model.layers.19.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
117
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00005.safetensors",
118
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
119
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
120
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
121
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
122
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
123
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
124
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
125
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
126
+ "model.layers.20.input_layernorm.weight": "model-00002-of-00005.safetensors",
127
+ "model.layers.20.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
128
+ "model.layers.20.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
129
+ "model.layers.20.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
130
+ "model.layers.20.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
131
+ "model.layers.20.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
132
+ "model.layers.20.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
133
+ "model.layers.20.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
134
+ "model.layers.20.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
135
+ "model.layers.21.input_layernorm.weight": "model-00003-of-00005.safetensors",
136
+ "model.layers.21.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
137
+ "model.layers.21.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
138
+ "model.layers.21.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
139
+ "model.layers.21.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
140
+ "model.layers.21.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
141
+ "model.layers.21.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
142
+ "model.layers.21.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
143
+ "model.layers.21.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
144
+ "model.layers.22.input_layernorm.weight": "model-00003-of-00005.safetensors",
145
+ "model.layers.22.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
146
+ "model.layers.22.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
147
+ "model.layers.22.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
148
+ "model.layers.22.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
149
+ "model.layers.22.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
150
+ "model.layers.22.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
151
+ "model.layers.22.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
152
+ "model.layers.22.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
153
+ "model.layers.23.input_layernorm.weight": "model-00003-of-00005.safetensors",
154
+ "model.layers.23.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
155
+ "model.layers.23.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
156
+ "model.layers.23.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
157
+ "model.layers.23.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
158
+ "model.layers.23.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
159
+ "model.layers.23.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
160
+ "model.layers.23.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
161
+ "model.layers.23.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
162
+ "model.layers.24.input_layernorm.weight": "model-00003-of-00005.safetensors",
163
+ "model.layers.24.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
164
+ "model.layers.24.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
165
+ "model.layers.24.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
166
+ "model.layers.24.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
167
+ "model.layers.24.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
168
+ "model.layers.24.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
169
+ "model.layers.24.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
170
+ "model.layers.24.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
171
+ "model.layers.25.input_layernorm.weight": "model-00003-of-00005.safetensors",
172
+ "model.layers.25.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
173
+ "model.layers.25.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
174
+ "model.layers.25.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
175
+ "model.layers.25.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
176
+ "model.layers.25.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
177
+ "model.layers.25.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
178
+ "model.layers.25.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
179
+ "model.layers.25.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
180
+ "model.layers.26.input_layernorm.weight": "model-00003-of-00005.safetensors",
181
+ "model.layers.26.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
182
+ "model.layers.26.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
183
+ "model.layers.26.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
184
+ "model.layers.26.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
185
+ "model.layers.26.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
186
+ "model.layers.26.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
187
+ "model.layers.26.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
188
+ "model.layers.26.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
189
+ "model.layers.27.input_layernorm.weight": "model-00003-of-00005.safetensors",
190
+ "model.layers.27.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
191
+ "model.layers.27.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
192
+ "model.layers.27.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
193
+ "model.layers.27.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
194
+ "model.layers.27.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
195
+ "model.layers.27.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
196
+ "model.layers.27.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
197
+ "model.layers.27.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
198
+ "model.layers.28.input_layernorm.weight": "model-00003-of-00005.safetensors",
199
+ "model.layers.28.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
200
+ "model.layers.28.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
201
+ "model.layers.28.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
202
+ "model.layers.28.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
203
+ "model.layers.28.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
204
+ "model.layers.28.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
205
+ "model.layers.28.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
206
+ "model.layers.28.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
207
+ "model.layers.29.input_layernorm.weight": "model-00003-of-00005.safetensors",
208
+ "model.layers.29.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
209
+ "model.layers.29.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
210
+ "model.layers.29.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
211
+ "model.layers.29.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
212
+ "model.layers.29.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
213
+ "model.layers.29.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
214
+ "model.layers.29.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
215
+ "model.layers.29.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
216
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00005.safetensors",
217
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
218
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
219
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
220
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
221
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
222
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
223
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
224
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
225
+ "model.layers.30.input_layernorm.weight": "model-00003-of-00005.safetensors",
226
+ "model.layers.30.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
227
+ "model.layers.30.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
228
+ "model.layers.30.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
229
+ "model.layers.30.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
230
+ "model.layers.30.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
231
+ "model.layers.30.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
232
+ "model.layers.30.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
233
+ "model.layers.30.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
234
+ "model.layers.31.input_layernorm.weight": "model-00003-of-00005.safetensors",
235
+ "model.layers.31.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
236
+ "model.layers.31.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
237
+ "model.layers.31.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
238
+ "model.layers.31.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
239
+ "model.layers.31.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
240
+ "model.layers.31.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
241
+ "model.layers.31.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
242
+ "model.layers.31.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
243
+ "model.layers.32.input_layernorm.weight": "model-00003-of-00005.safetensors",
244
+ "model.layers.32.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
245
+ "model.layers.32.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
246
+ "model.layers.32.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
247
+ "model.layers.32.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
248
+ "model.layers.32.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
249
+ "model.layers.32.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
250
+ "model.layers.32.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
251
+ "model.layers.32.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
252
+ "model.layers.33.input_layernorm.weight": "model-00004-of-00005.safetensors",
253
+ "model.layers.33.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
254
+ "model.layers.33.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
255
+ "model.layers.33.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
256
+ "model.layers.33.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
257
+ "model.layers.33.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
258
+ "model.layers.33.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
259
+ "model.layers.33.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
260
+ "model.layers.33.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
261
+ "model.layers.34.input_layernorm.weight": "model-00004-of-00005.safetensors",
262
+ "model.layers.34.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
263
+ "model.layers.34.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
264
+ "model.layers.34.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
265
+ "model.layers.34.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
266
+ "model.layers.34.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
267
+ "model.layers.34.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
268
+ "model.layers.34.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
269
+ "model.layers.34.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
270
+ "model.layers.35.input_layernorm.weight": "model-00004-of-00005.safetensors",
271
+ "model.layers.35.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
272
+ "model.layers.35.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
273
+ "model.layers.35.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
274
+ "model.layers.35.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
275
+ "model.layers.35.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
276
+ "model.layers.35.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
277
+ "model.layers.35.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
278
+ "model.layers.35.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
279
+ "model.layers.36.input_layernorm.weight": "model-00004-of-00005.safetensors",
280
+ "model.layers.36.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
281
+ "model.layers.36.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
282
+ "model.layers.36.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
283
+ "model.layers.36.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
284
+ "model.layers.36.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
285
+ "model.layers.36.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
286
+ "model.layers.36.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
287
+ "model.layers.36.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
288
+ "model.layers.37.input_layernorm.weight": "model-00004-of-00005.safetensors",
289
+ "model.layers.37.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
290
+ "model.layers.37.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
291
+ "model.layers.37.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
292
+ "model.layers.37.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
293
+ "model.layers.37.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
294
+ "model.layers.37.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
295
+ "model.layers.37.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
296
+ "model.layers.37.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
297
+ "model.layers.38.input_layernorm.weight": "model-00004-of-00005.safetensors",
298
+ "model.layers.38.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
299
+ "model.layers.38.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
300
+ "model.layers.38.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
301
+ "model.layers.38.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
302
+ "model.layers.38.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
303
+ "model.layers.38.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
304
+ "model.layers.38.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
305
+ "model.layers.38.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
306
+ "model.layers.39.input_layernorm.weight": "model-00004-of-00005.safetensors",
307
+ "model.layers.39.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
308
+ "model.layers.39.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
309
+ "model.layers.39.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
310
+ "model.layers.39.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
311
+ "model.layers.39.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
312
+ "model.layers.39.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
313
+ "model.layers.39.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
314
+ "model.layers.39.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
315
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00005.safetensors",
316
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
317
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
318
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
319
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
320
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
321
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
322
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
323
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
324
+ "model.layers.40.input_layernorm.weight": "model-00004-of-00005.safetensors",
325
+ "model.layers.40.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
326
+ "model.layers.40.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
327
+ "model.layers.40.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
328
+ "model.layers.40.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
329
+ "model.layers.40.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
330
+ "model.layers.40.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
331
+ "model.layers.40.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
332
+ "model.layers.40.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
333
+ "model.layers.41.input_layernorm.weight": "model-00004-of-00005.safetensors",
334
+ "model.layers.41.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
335
+ "model.layers.41.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
336
+ "model.layers.41.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
337
+ "model.layers.41.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
338
+ "model.layers.41.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
339
+ "model.layers.41.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
340
+ "model.layers.41.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
341
+ "model.layers.41.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
342
+ "model.layers.42.input_layernorm.weight": "model-00004-of-00005.safetensors",
343
+ "model.layers.42.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
344
+ "model.layers.42.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
345
+ "model.layers.42.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
346
+ "model.layers.42.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
347
+ "model.layers.42.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
348
+ "model.layers.42.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
349
+ "model.layers.42.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
350
+ "model.layers.42.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
351
+ "model.layers.43.input_layernorm.weight": "model-00004-of-00005.safetensors",
352
+ "model.layers.43.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
353
+ "model.layers.43.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
354
+ "model.layers.43.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
355
+ "model.layers.43.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
356
+ "model.layers.43.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
357
+ "model.layers.43.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
358
+ "model.layers.43.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
359
+ "model.layers.43.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
360
+ "model.layers.44.input_layernorm.weight": "model-00005-of-00005.safetensors",
361
+ "model.layers.44.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
362
+ "model.layers.44.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
363
+ "model.layers.44.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
364
+ "model.layers.44.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
365
+ "model.layers.44.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
366
+ "model.layers.44.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
367
+ "model.layers.44.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
368
+ "model.layers.44.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
369
+ "model.layers.45.input_layernorm.weight": "model-00005-of-00005.safetensors",
370
+ "model.layers.45.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
371
+ "model.layers.45.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
372
+ "model.layers.45.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
373
+ "model.layers.45.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
374
+ "model.layers.45.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
375
+ "model.layers.45.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
376
+ "model.layers.45.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
377
+ "model.layers.45.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
378
+ "model.layers.46.input_layernorm.weight": "model-00005-of-00005.safetensors",
379
+ "model.layers.46.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
380
+ "model.layers.46.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
381
+ "model.layers.46.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
382
+ "model.layers.46.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
383
+ "model.layers.46.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
384
+ "model.layers.46.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
385
+ "model.layers.46.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
386
+ "model.layers.46.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
387
+ "model.layers.47.input_layernorm.weight": "model-00005-of-00005.safetensors",
388
+ "model.layers.47.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
389
+ "model.layers.47.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
390
+ "model.layers.47.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
391
+ "model.layers.47.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
392
+ "model.layers.47.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
393
+ "model.layers.47.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
394
+ "model.layers.47.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
395
+ "model.layers.47.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
396
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00005.safetensors",
397
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
398
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
399
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
400
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
401
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
402
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
403
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
404
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
405
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00005.safetensors",
406
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
407
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
408
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
409
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
410
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
411
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
412
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
413
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
414
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00005.safetensors",
415
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
416
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
417
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
418
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
419
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
420
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
421
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
422
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
423
+ "model.layers.8.input_layernorm.weight": "model-00001-of-00005.safetensors",
424
+ "model.layers.8.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
425
+ "model.layers.8.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
426
+ "model.layers.8.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
427
+ "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
428
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
429
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
430
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
431
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
432
+ "model.layers.9.input_layernorm.weight": "model-00001-of-00005.safetensors",
433
+ "model.layers.9.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
434
+ "model.layers.9.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
435
+ "model.layers.9.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
436
+ "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
437
+ "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
438
+ "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
439
+ "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
440
+ "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
441
+ "model.norm.weight": "model-00005-of-00005.safetensors"
442
+ }
443
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<|im_end|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "32001": {
39
+ "content": "<|im_start|>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "additional_special_tokens": [],
48
+ "bos_token": "<s>",
49
+ "clean_up_tokenization_spaces": false,
50
+ "eos_token": "<|im_end|>",
51
+ "extra_special_tokens": {},
52
+ "legacy": true,
53
+ "max_length": 2048,
54
+ "model_max_length": 1000000000000000019884624838656,
55
+ "pad_token": "</s>",
56
+ "sp_model_kwargs": {},
57
+ "spaces_between_special_tokens": false,
58
+ "stride": 0,
59
+ "tokenizer_class": "LlamaTokenizerFast",
60
+ "truncation_side": "right",
61
+ "truncation_strategy": "longest_first",
62
+ "trust_remote_code": false,
63
+ "unk_token": "<unk>",
64
+ "use_default_system_prompt": false,
65
+ "use_fast": true
66
+ }
upload_to_hf.py ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Hugging Face Hub ์—…๋กœ๋“œ ์Šคํฌ๋ฆฝํŠธ
4
+ - ๋ณ‘ํ•ฉ๋œ EEVE ๋ชจ๋ธ์„ Hugging Face Hub์— ์—…๋กœ๋“œ
5
+ - ๋ชจ๋ธ ์นด๋“œ(README.md) ํฌํ•จ
6
+ """
7
+
8
+ import os
9
+ import argparse
10
+ from pathlib import Path
11
+ from huggingface_hub import HfApi, create_repo, upload_folder
12
+
13
+
14
+ def upload_model_to_hub(
15
+ model_dir: str,
16
+ repo_id: str,
17
+ token: str = None,
18
+ private: bool = False,
19
+ commit_message: str = "Upload EEVE Korean Custom model"
20
+ ):
21
+ """
22
+ ๋ชจ๋ธ์„ Hugging Face Hub์— ์—…๋กœ๋“œ
23
+
24
+ Args:
25
+ model_dir: ์—…๋กœ๋“œํ•  ๋ชจ๋ธ ๋””๋ ‰ํ† ๋ฆฌ ๊ฒฝ๋กœ
26
+ repo_id: Hugging Face ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ID (username/model-name)
27
+ token: Hugging Face API ํ† ํฐ (None์ด๋ฉด ํ™˜๊ฒฝ๋ณ€์ˆ˜ ๋˜๋Š” CLI ๋กœ๊ทธ์ธ ์‚ฌ์šฉ)
28
+ private: Private ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋กœ ์ƒ์„ฑํ• ์ง€ ์—ฌ๋ถ€
29
+ commit_message: ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€
30
+ """
31
+
32
+ print("\n" + "="*80)
33
+ print(" Hugging Face Hub ์—…๋กœ๋“œ")
34
+ print("="*80)
35
+ print(f"๐Ÿ“ ๋ชจ๋ธ ๋””๋ ‰ํ† ๋ฆฌ: {model_dir}")
36
+ print(f"๐ŸŽฏ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ: {repo_id}")
37
+ print(f"๐Ÿ”’ ๊ณต๊ฐœ ์—ฌ๋ถ€: {'Private' if private else 'Public'}")
38
+ print("="*80 + "\n")
39
+
40
+ # HfApi ์ดˆ๊ธฐํ™”
41
+ api = HfApi(token=token)
42
+
43
+ # 1. ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ (์ด๋ฏธ ์žˆ์œผ๋ฉด ์Šคํ‚ต)
44
+ print("1๏ธโƒฃ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ ์ค‘...")
45
+ try:
46
+ repo_url = create_repo(
47
+ repo_id=repo_id,
48
+ token=token,
49
+ private=private,
50
+ exist_ok=True,
51
+ repo_type="model"
52
+ )
53
+ print(f"โœ“ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ: {repo_url}\n")
54
+ except Exception as e:
55
+ print(f"โš ๏ธ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๊ฐ€ ์ด๋ฏธ ์กด์žฌํ•˜๊ฑฐ๋‚˜ ์˜ค๋ฅ˜ ๋ฐœ์ƒ: {e}\n")
56
+
57
+ # 2. ํŒŒ์ผ ์—…๋กœ๋“œ
58
+ print("2๏ธโƒฃ ๋ชจ๋ธ ํŒŒ์ผ ์—…๋กœ๋“œ ์ค‘...")
59
+ print(" โฑ๏ธ ์ด ์ž‘์—…์€ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆฝ๋‹ˆ๋‹ค (๋ชจ๋ธ ํฌ๊ธฐ: ~20GB)...\n")
60
+
61
+ try:
62
+ upload_folder(
63
+ repo_id=repo_id,
64
+ folder_path=model_dir,
65
+ token=token,
66
+ commit_message=commit_message,
67
+ repo_type="model"
68
+ )
69
+ print("โœ“ ์—…๋กœ๋“œ ์™„๋ฃŒ!\n")
70
+ except Exception as e:
71
+ print(f"โŒ ์—…๋กœ๋“œ ์‹คํŒจ: {e}")
72
+ raise
73
+
74
+ # 3. ์™„๋ฃŒ
75
+ print("="*80)
76
+ print("โœ… ์—…๋กœ๋“œ ์„ฑ๊ณต!")
77
+ print("="*80)
78
+ print(f"\n๐Ÿ”— ๋ชจ๋ธ ํŽ˜์ด์ง€: https://huggingface.co/{repo_id}")
79
+ print(f"๐Ÿ“– ์‚ฌ์šฉ ๋ฐฉ๋ฒ•:")
80
+ print(f"""
81
+ from transformers import AutoModelForCausalLM, AutoTokenizer
82
+
83
+ model = AutoModelForCausalLM.from_pretrained("{repo_id}")
84
+ tokenizer = AutoTokenizer.from_pretrained("{repo_id}")
85
+ """)
86
+ print("="*80 + "\n")
87
+
88
+
89
+ def main():
90
+ parser = argparse.ArgumentParser(
91
+ description="EEVE ๋ชจ๋ธ์„ Hugging Face Hub์— ์—…๋กœ๋“œ",
92
+ formatter_class=argparse.RawDescriptionHelpFormatter,
93
+ epilog="""
94
+ ์‚ฌ์šฉ ์˜ˆ์‹œ:
95
+
96
+ # ๊ธฐ๋ณธ ์‚ฌ์šฉ (public)
97
+ python upload_to_hf.py --repo-id username/model-name
98
+
99
+ # Private ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋กœ ์—…๋กœ๋“œ
100
+ python upload_to_hf.py --repo-id username/model-name --private
101
+
102
+ # ํ† ํฐ ์ง์ ‘ ์ง€์ •
103
+ python upload_to_hf.py --repo-id username/model-name --token hf_xxxxx
104
+
105
+ # ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์—…๋กœ๋“œ
106
+ python upload_to_hf.py --repo-id username/model-name --model-dir /path/to/model
107
+
108
+ ์ „์ฒด ์˜ต์…˜:
109
+ python upload_to_hf.py \\
110
+ --repo-id MyeongHo0621/EEVE-Korean-Custom-10.8B \\
111
+ --model-dir /home/work/tesseract/eeve_hf_upload \\
112
+ --private \\
113
+ --commit-message "Initial upload: checkpoint-500 merged"
114
+
115
+ ์ฃผ์˜์‚ฌํ•ญ:
116
+ 1. ๋จผ์ € Hugging Face์— ๋กœ๊ทธ์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:
117
+ huggingface-cli login
118
+ ๋˜๋Š”
119
+ hf auth login
120
+
121
+ 2. ํ† ํฐ์€ Write ๊ถŒํ•œ์ด ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:
122
+ https://huggingface.co/settings/tokens
123
+
124
+ 3. ์—…๋กœ๋“œ ์‹œ๊ฐ„: ~20-30๋ถ„ (๋„คํŠธ์›Œํฌ ์†๋„์— ๋”ฐ๋ผ)
125
+ """
126
+ )
127
+
128
+ parser.add_argument(
129
+ "--repo-id",
130
+ type=str,
131
+ required=True,
132
+ help="Hugging Face ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ID (username/model-name)"
133
+ )
134
+
135
+ parser.add_argument(
136
+ "--model-dir",
137
+ type=str,
138
+ default="/home/work/tesseract/eeve_hf_upload",
139
+ help="์—…๋กœ๋“œํ•  ๋ชจ๋ธ ๋””๋ ‰ํ† ๋ฆฌ (๊ธฐ๋ณธ: eeve_hf_upload)"
140
+ )
141
+
142
+ parser.add_argument(
143
+ "--token",
144
+ type=str,
145
+ default=None,
146
+ help="Hugging Face API ํ† ํฐ (์„ ํƒ, ์—†์œผ๋ฉด CLI ๋กœ๊ทธ์ธ ์‚ฌ์šฉ)"
147
+ )
148
+
149
+ parser.add_argument(
150
+ "--private",
151
+ action="store_true",
152
+ help="Private ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋กœ ์ƒ์„ฑ"
153
+ )
154
+
155
+ parser.add_argument(
156
+ "--commit-message",
157
+ type=str,
158
+ default="Upload EEVE Korean Custom model (checkpoint-500 merged)",
159
+ help="์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€"
160
+ )
161
+
162
+ args = parser.parse_args()
163
+
164
+ # ๋ชจ๋ธ ๋””๋ ‰ํ† ๋ฆฌ ํ™•์ธ
165
+ model_dir = Path(args.model_dir)
166
+ if not model_dir.exists():
167
+ print(f"โŒ ์˜ค๋ฅ˜: ๋ชจ๋ธ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค: {model_dir}")
168
+ return 1
169
+
170
+ # ํ•„์ˆ˜ ํŒŒ์ผ ํ™•์ธ
171
+ required_files = ["config.json", "tokenizer_config.json"]
172
+ missing_files = [f for f in required_files if not (model_dir / f).exists()]
173
+ if missing_files:
174
+ print(f"โŒ ์˜ค๋ฅ˜: ํ•„์ˆ˜ ํŒŒ์ผ์ด ์—†์Šต๋‹ˆ๋‹ค: {missing_files}")
175
+ return 1
176
+
177
+ # ์—…๋กœ๋“œ ์‹คํ–‰
178
+ try:
179
+ upload_model_to_hub(
180
+ model_dir=str(model_dir),
181
+ repo_id=args.repo_id,
182
+ token=args.token,
183
+ private=args.private,
184
+ commit_message=args.commit_message
185
+ )
186
+ print("โœ… ๋ชจ๋“  ์ž‘์—…์ด ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!")
187
+ return 0
188
+
189
+ except Exception as e:
190
+ print(f"\nโŒ ์˜ค๋ฅ˜ ๋ฐœ์ƒ: {e}")
191
+ import traceback
192
+ traceback.print_exc()
193
+ return 1
194
+
195
+
196
+ if __name__ == "__main__":
197
+ exit(main())
198
+