hyperclovax commited on
Commit
7203092
·
verified ·
1 Parent(s): f65a2bd

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +602 -5
README.md CHANGED
@@ -1,5 +1,602 @@
1
- ---
2
- license: other
3
- license_name: hyperclovax-seed
4
- license_link: LICENSE
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: hyperclovax-seed
4
+ license_link: LICENSE
5
+ library_name: transformers
6
+ ---
7
+
8
+ ## Overview
9
+
10
+ HyperCLOVA X SEED Think 14B is a next-generation language model that moves beyond the conventional approach of simply increasing model size to improve performance. It combines [HyperCLOVA X’s lightweighting technology](https://clova.ai/tech-blog/%EC%9E%91%EC%A7%80%EB%A7%8C-%EA%B0%95%EB%A0%A5%ED%95%98%EA%B2%8C-%EA%B3%A0%ED%9A%A8%EC%9C%A8-llm%EC%9D%84-%EB%A7%8C%EB%93%9C%EB%8A%94-hyperclova-x%EC%9D%98-%EA%B2%BD%EB%9F%89%ED%99%94-%EA%B8%B0) for building high-efficiency LLMs with advanced reasoning capabilities. Its development relied on two key technologies: (1) Pruning & Knowledge Distillation, which achieves both compactness and high performance, and (2) a Reinforcement Learning (RL) pipeline, which maximizes reasoning ability. By pruning low-importance parameters and distilling knowledge from a large model into a smaller one, training costs have been significantly reduced. On top of this, [the latest RL recipe validated in HyperCLOVA X Think](https://arxiv.org/pdf/2506.22403) is applied in a multi-stage process: (1) Supervised Fine-Tuning (SFT), (2) Reinforcement Learning with Verifiable Rewards (RLVR), (3) Length Controllability (LC) for reasoning path optimization, and (4) a joint training of Reinforcement Learning from Human Feedback (RLHF) and RLVR.
11
+
12
+ It is a considerable challenge to equip a pruned, knowledge-distilled model with reasoning capabilities, since reductions in training costs and model size often degrade reasoning performance. However, through extensive research experience and persistent trial and error, the HyperCLOVA X team has succeeded in lowering training costs while maintaining reasoning performance comparable to that of larger, resource-intensive models.
13
+
14
+
15
+ ## Basic Information
16
+
17
+ - **Architecture** : Transformer-based architecture with Peri-Layer Normalization and Maximal Update Parameterization(μP) (Dense Model)
18
+ - **Parameters** : 14.74B
19
+ - **Input/Output Format** (Input/Output) : Text / Text
20
+ - **Context Length** : 32k
21
+
22
+ ## Training Cost
23
+
24
+ `HyperCLOVA X SEED Think 14B` was trained at a significantly lower cost compared to high-performance external models of similar scale. By utilizing HCX’s lightweight training pipeline, it was trained at approximately **52.60×** lower cost than `Qwen2.5-14B` and **91.38×** lower cost than `Qwen3-14B`.
25
+
26
+ | Model (Base) | GPU Hours (A100-80GB, MFU 50%) |
27
+ | ------------------------------- | ---------------------------------- |
28
+ | **HyperCLOVA X SEED Think 14B** | **68,049** |
29
+ | Qwen2.5-0.5B | 169,257 |
30
+ | Qwen2.5-1.5B | 449,643 |
31
+ | Qwen3-0.6B | 602,460 |
32
+ | Qwen3-1.7B | 1,063,991 |
33
+ | HyperCLOVA X Think | 2,197,732 |
34
+ | **Qwen2.5-14B** | **3,603,432** |
35
+ | Qwen3-8B | 3,993,607 |
36
+ | **Qwen3-14B** | **6,267,077** |
37
+ | Qwen3-32B | 14,108,748 |
38
+
39
+ ## Benchmarks
40
+
41
+ Compared to global models of a similar scale, such as Qwen3 14B, HyperCLOVA X SEED Think 14B demonstrates superior performance in Korean language and cultural understanding, while showing competitive performance in math and coding tasks, which are directly or indirectly related to agent capabilities. This trend remains consistent even when compared with larger models like Qwen3 32B and LG Exaone-Deep 32B.
42
+
43
+ ### Backbone Benchmarks Performance Comparison (Non-think)
44
+
45
+ **Korean/Korea Culture**
46
+
47
+ | Model | Average | CLIcK | HAERAE-Bench | KOBEST | KorMedMCQA | KMMLU | KoBigBench | KoCommonGEN-v2 |
48
+ | ------------------------------- | ------- | ------ | ------------ | ------ | ---------- | ------ | ---------- | -------------- |
49
+ | **HyperCLOVA X SEED Think 14B** | 0.7269 | 0.7208 | 0.8506 | 0.8570 | 0.6411 | 0.5428 | 0.7482 | 0.6682 |
50
+ | QWEN3-8B | 0.6759 | 0.6206 | 0.6618 | 0.7919 | 0.6471 | 0.5543 | 0.7186 | 0.5773 |
51
+ | QWEN3-14B | 0.7079 | 0.6707 | 0.6975 | 0.8174 | 0.6979 | 0.5864 | 0.7507 | 0.5927 |
52
+
53
+
54
+ **English/American Culture**
55
+ | Model | Average | MMLU | BigBench-Hard | Hellaswag | Winogrande | PIQA | ARC-challenge | Social IQa |
56
+ | ------------------------------- | ------- | ------ | ------------- | --------- | ---------- | ------ | ------------- | ---------- |
57
+ | **HyperCLOVA X SEED Think 14B** | 0.6614 | 0.7121 | 0.6216 | 0.6125 | 0.7593 | 0.7791 | 0.6246 | 0.5205 |
58
+ | QWEN3-8B | 0.6548 | 0.7490 | 0.6072 | 0.5817 | 0.7198 | 0.7666 | 0.6433 | 0.5159 |
59
+ | QWEN3-14B | 0.6807 | 0.7885 | 0.6325 | 0.6143 | 0.7356 | 0.8025 | 0.6698 | 0.5215 |
60
+
61
+
62
+ ### Reasoning Performance Comparison
63
+
64
+ **Korean/Korea Culture**
65
+ | Model | KMMLU | CSAT-ko-2025 | KorMedMCQA | KoBALT | HAERAE | CLIcK | KoBigBench | LogicKor |
66
+ |-----------------------------------------|--------|--------|--------|--------|--------|--------|--------|------|
67
+ | HyperCLOVA X SEED Think 14B **(Think)** | 0.6649 | 0.7516 | 0.6933 | 0.4500 | 0.8537 | 0.7280 | 0.7974 | 8.74 |
68
+ | QWEN3-8B | 0.5543 | 0.7200 | 0.6782 | 0.3060 | 0.6618 | 0.6690 | 0.7850 | 8.92 |
69
+ | QWEN3-14B | 0.4930 | 0.7710 | 0.6850 | 0.3840 | 0.7410 | 0.6880 | 0.8380 | 9.15 |
70
+
71
+ **Coding/Math**
72
+ | Model | GSM8k | MATH500 | HumanEval | MBPP |
73
+ |-----------------------------------------|--------|--------|--------|--------|
74
+ | HyperCLOVA X SEED Think 14B | 0.9553 | 0.9380 | 0.9451 | 0.8759 |
75
+ | QWEN3-14B | 0.9590 | 0.9680 | 0.9570 | 0.9080 |
76
+
77
+
78
+ ### Non-Think / Think Performance Comparison
79
+
80
+ | Model | GSM8k | GPT4Eval | MT Bench | Arena-Hard-v0.1 |
81
+ |---------------------------------------------|--------|--------|--------|--------|
82
+ | HyperCLOVA X SEED Think 14B **(Non-think)** | 0.9348 | 0.6741 | 8.2063 | 0.2733 |
83
+ | HyperCLOVA X SEED Think 14B **(Think)** | 0.9553 | 0.8200 | 8.8313 | 0.5826 |
84
+
85
+
86
+ ## ChatML Block
87
+
88
+ The chat template for HyperCLOVA X consists of the following elements.
89
+
90
+ - **tool_list** : A list of tools available to the model (in JSON format). If no tools are available, an empty block should be provided.
91
+ - **system** : System prompt. If not are available, an empty block should be provided.
92
+ - **user** : User input.
93
+ - **assistant** : Assistant output.
94
+
95
+ The basic configuration of ChatML block is as follows.
96
+
97
+ ```
98
+ <|im_start|>{tool_list/system/user/assistant}
99
+ {content}<|im_end|>
100
+ ```
101
+
102
+ - `<|im_start|>` : Start token of ChatML block
103
+ - `<|im_end|>` : End token of ChatML block
104
+
105
+ ## (ChatML) General Conversation
106
+
107
+ ### First turn
108
+
109
+ Given a two-turn conversation between the user and the assistant (`user_query_1`, `assistant_answer_1`, `user_query_2`, `assistant_answer_2`), the prompt for the first-turn can be constructed in its simplest form as follows:
110
+
111
+ ```
112
+ <|im_start|>tool_list
113
+ <|im_end|>
114
+ <|im_start|>system
115
+ - You are "CLOVA X," an AI language model developed by NAVER.
116
+ - The current date is {day of the week}, {month} {dd}, {yyyy}.<|im_end|>
117
+ <|im_start|>user
118
+ {user_query_1}<|im_end|>
119
+ <|im_start|>assistant
120
+ ```
121
+
122
+ After the `<|im_end|>` token (indicating the end of the ChatML block), the model generates text up to the `<|endofturn|>` token. This output corresponds to the assistant's first response (`assistant_answer_1`).
123
+
124
+ ### Second turn
125
+
126
+ Based on the assistant's first response (`assistant_answer_1`), when the user asks an additional question (`user_query_2`), the prompt input to the model is constructed as follows:
127
+
128
+ ```
129
+ {following the previous context}
130
+ {assistant_answer_1}<|im_end|><|endofturn|>
131
+ <|im_start|>user
132
+ {user_query_2}<|im_end|>
133
+ <|im_start|>assistant
134
+ ```
135
+
136
+ As in the previous turn, generation continues until the `<|endofturn|>` token appears after `<|im_end|>`. This corresponds to the assistant's second response (`assistant_answer_2`).
137
+
138
+ ## (ChatML) Function Call (Using Tools)
139
+
140
+ Insert the list of tools available into the tool_list block as a JSON list. For example, the following is a case where the only available tool is `get_weather`.
141
+
142
+ ```
143
+ <|im_start|>tool_list
144
+ [{"name": "get_weather", "description": "Check the current weather at the requested location.", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "Name of the city"}}, "required": ["location"]}}]<|im_end|>
145
+ ```
146
+
147
+ Additional instructions can be included in the system prompt if needed, and it is recommended to format them as `- {content}`. For example:
148
+
149
+ ```
150
+ <|im_start|>system
151
+ - In this environment, various tools can be used to answer users' questions.
152
+ - You are "CLOVA X," an AI language model developed by NAVER.
153
+ - Begin by creating a plan for solving the problem, and then utilize the tools accordingly to address the problem.
154
+ - The current date is {day of the week}, {month} {dd}, {yyyy}.
155
+ - Latest information such as news, stock prices, and shopping is retrieved through the tool_list.
156
+ - If external tools are required, the assistant should not answer directly but must first obtain the necessary information via the assistant -> tool/function_call role, and then respond.<|im_end|>
157
+ ```
158
+
159
+ ### First turn
160
+
161
+ Suppose the user gives the instruction, 'Tell me the weather in Seoul.' The prompt input to the model would then be as follows:
162
+
163
+ ```
164
+ <|im_start|>tool_list
165
+ [{"name": "get_weather", "description": "Check the current weather at the requested location.", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "Name of the city"}}, "required": ["location"]}}]<|im_end|>
166
+ <|im_start|>system
167
+ - In this environment, various tools can be used to answer users' questions.
168
+ - You are "CLOVA X," an AI language model developed by NAVER.
169
+ - Begin by creating a plan for solving the problem, and then utilize the tools accordingly to address the problem.
170
+ - The current date is {day of the week}, {month} {dd}, {yyyy}.
171
+ - Latest information such as news, stock prices, and shopping is retrieved through the tool_list.
172
+ - If external tools are required, the assistant should not answer directly but must first obtain the necessary information via the assistant -> tool/function_call role, and then respond.<|im_end|>
173
+ <|im_start|>user
174
+ Tell me the weather in Seoul<|im_end|>
175
+ <|im_start|>assistant
176
+ ```
177
+
178
+ Generation continues until either the `<|stop|>` or `<|endofturn|>` token appears immediately after `<|im_end|>`. An example of the model’s output is shown below. HyperCLOVA X checks the list of available tools (tool_list), selects the appropriate tool (`get_weather`), and returns the necessary information for the tool call in JSON format.
179
+
180
+ ```
181
+ {following the previous context}
182
+ Let's check the weather using the get_weather tool.<|im_end|>
183
+ <|im_start|>assistant -> tool/function_call
184
+ {"name": "get_weather","input": {"location":"Seoul"}}<|im_end|><|stop|>
185
+ ```
186
+
187
+ - `assistant -> tool/function_call` means that the assistant(model) invokes a function call.
188
+
189
+ ### Second turn
190
+
191
+ The model stopped generating because `<|stop|>` token appeared immediately after `<|im_end|>`. Based on the information generated, `get_weather`should now be called. Calling an external function and parsing the result must be implemented additionally. For explanation, let's assume that the result of calling and parsing an external function is `{"result":{"location": "Seoul", "weather": "Sunny", "temperature": 25}}`.
192
+
193
+ The model is now ready to respond to the second turn. Using all the information gathered so far, input the following prompt into the model and have it follow accordingly.
194
+
195
+ ```
196
+ {following the previous context}
197
+ <|im_start|>tool/function_call
198
+ {"result":{"location": "Seoul", "weather": "Sunny", "temperature": 25}}<|im_end|>
199
+ <|im_start|>assistant
200
+ ```
201
+
202
+ - `tool/function_call` means it should pass the result of the function call to the assistant(model).
203
+
204
+ Just like in the previous turn, generation continues until the `<|stop|>` or `<|endofturn|>` token appears immediately after `<|im_end|>`. If the model behaves as expected, the output will look like this.
205
+
206
+ ```
207
+ {following the previous context}
208
+ The weather in Seoul is clear and the temperature is 25 degrees.<|im_end|><|endofturn|>
209
+ ```
210
+
211
+ ## (ChatML) Inducing reasoning/non-reasoning
212
+
213
+
214
+ HyperCLOVA X can handle both reasoning and non-reasoning tasks. There is a difference depending on whether the assistant is prompted to 'think' before responding. Based on the previous example, to make HyperCLOVA X respond in reasoning mode, you can input the prompt into the model as follows (excluding the tool_list and system)
215
+
216
+ ```
217
+ <|im_start|>user
218
+ Tell me the weather in Seoul<|im_end|>
219
+ <|im_start|>assistant/think
220
+
221
+ ```
222
+
223
+ - Note that the prompt ends with `assistant/think\n`(think + \n).
224
+ - Generation continues until either the <|stop|> or <|endofturn|> token appears immediately after `<|im_end|>`.
225
+
226
+ To have the assistant respond in non-reasoning mode (i.e., answer directly), you can input the following prompt.
227
+
228
+ ```
229
+ <|im_start|>user
230
+ Tell me the weather in Seoul<|im_end|>
231
+ <|im_start|>assistant
232
+
233
+ ```
234
+
235
+ - Note that the prompt ends with `assistant\n`.
236
+ - Generation continues until either the <|stop|> or <|endofturn|> token appears immediately after `<|im_end|>`.
237
+
238
+
239
+ ### Adjusting inference length
240
+ The length of reasoning can be controlled by appending "\nThink for maximum {N} tokens" at the end of the user's utterance.
241
+
242
+ Example
243
+ Suppose the user says, "Tell me the prime number closest to 1000."
244
+ If you want the model to reason for approximately 1024 tokens before answering, you would construct the prompt as follows:
245
+
246
+
247
+ ```
248
+ <|im_start|>tool_list
249
+ <|im_end|>
250
+ <|im_start|>system
251
+ - You are "CLOVA X," an AI language model developed by NAVER.
252
+ - The current date is {day of the week}, {month} {dd}, {yyyy}.<|im_end|>
253
+ <|im_start|>user
254
+ Tell me the prime number closest to 1000.
255
+ Think for maximum 1024 tokens.<|im_end|>
256
+ <|im_start|>assistant/think
257
+
258
+ ```
259
+ - Adjusting the reasoning length means guiding the model to reason for approximately the specified number of tokens; it does not always generate for exact number of tokens given.
260
+
261
+
262
+ ### Multiturn inference
263
+
264
+ When engaging in multi-turn conversations with reasoning enabled, the reasoning content from previous turns (`<|im_start|>assistant/think\n...<|im_end|>`) is not included in the next turn's prompt. Instead, as in the standard multi-turn dialogue format, only the final assistant response is included in the prompt passed to the model.
265
+
266
+ The same applies when a function call is made during reasoning: the reasoning content is excluded, and only the function call block (`<|im_start|>assistant -> tool/function_call\n...<|im_end|><|stop|>`) is included in the prompt provided to the model.
267
+
268
+ Example: Solving a simple math problem
269
+ Suppose the user sends a request: "Calculate the sum of odd numbers from 1 to 10."
270
+ The following explains step-by-step how this is processed as a multi-turn reasoning interaction.
271
+
272
+ 1. First Turn
273
+ Input Prompt
274
+ ```
275
+ <|im_start|>tool_list
276
+ <|im_end|>
277
+ <|im_start|>system
278
+ <|im_end|>
279
+ <|im_start|>user
280
+ Calculate the sum of odd numbers from 1 to 10
281
+ <|im_end|>
282
+ <|im_start|>assistant/think
283
+
284
+ ```
285
+ The model begins to generate inference contents.
286
+ ```
287
+ {following the previous context}
288
+ The user wants me to find the sum of the odd numbers from 1 to 10. First, I need to clearly understand the problem. I should identify which numbers between 1 and 10 are odd. Going through the numbers in order, the odd numbers are 1, 3, 5, 7, and 9. Since 10 is even, it is excluded. Now, I need to add these numbers together. Adding them step by step: 1+3=4, plus 5 gives 9, plus 7 gives 16, and finally adding 9 gives 25. But is there another way to calculate this? For example, I could use the formula for the sum of an arithmetic sequence. The odd numbers here form an arithmetic sequence with the first term 1 and a common difference of 2. I need to count the number of terms first—there are 5 odd numbers between 1 and 10. The formula for the sum of an arithmetic sequence is n*(a₁ + aₙ)/2, where n is 5, a₁ is 1, and aₙ is 9. Plugging these in, we get 5*(1 + 9)/2 = 5*10/2 = 25, which matches the previous result. Since both methods give 25, I’ll double-check that this is the answer the user expects, and then provide a concise explanation.<|im_end|>
289
+ <|im_start|>assistant
290
+ The odd numbers from 1 to 10 are **1, 3, 5, 7, 9**.
291
+ The sum of these numbers is calculated as follows:
292
+
293
+ \[
294
+ 1 + 3 + 5 + 7 + 9 = 25
295
+ \]
296
+
297
+ Alternatively, the sum can be easily calculated using **the formula for the sum of an arithmetic sequence**:
298
+ - First term (\(a_1\)) = 1
299
+ - Last term (\(a_n\)) = 9
300
+ - Number of terms (\(n\)) = 5
301
+
302
+ \[
303
+ \text{Sum} = \frac{n(a_1 + a_n)}{2} = \frac{5 \times (1 + 9)}{2} = \frac{5 \times 10}{2} = 25
304
+ \]
305
+
306
+ **Result:** The answer is **25**.<|im_end|><|endofturn|>
307
+ ```
308
+ As the `<|endofturn|>` token has been generated, the model concludes the current turn and awaits the next user input.
309
+
310
+ 2. Second Turn
311
+ Suppose you want to follow up with: "What is the result of adding 10 to that sum?" Here, the prompt is created by excluding the reasoning content (assistant/think) from the first turn and including only the final response (assistant).
312
+
313
+ - Input Prompt
314
+
315
+ ```
316
+ <|im_start|>tool_list
317
+ <|im_end|>
318
+ <|im_start|>system
319
+ <|im_end|>
320
+ <|im_start|>user
321
+ Calculate the sum of odd numbers from 1 to 10
322
+ <|im_end|>
323
+ <|im_start|>assistant
324
+ The odd numbers from 1 to 10 are **1, 3, 5, 7, 9**.
325
+ The sum of these numbers is calculated as follows:
326
+
327
+ \[
328
+ 1 + 3 + 5 + 7 + 9 = 25
329
+ \]
330
+
331
+ Alternatively, the sum can be easily calculated using **the formula for the sum of an arithmetic sequence**:
332
+ - First term (\(a_1\)) = 1
333
+ - Last term (\(a_n\)) = 9
334
+ - Number of terms (\(n\)) = 5
335
+
336
+ \[
337
+ \text{Sum} = \frac{n(a_1 + a_n)}{2} = \frac{5 \times (1 + 9)}{2} = \frac{5 \times 10}{2} = 25
338
+ \]
339
+
340
+ **Result:** The answer is **25**.<|im_end|><|endofturn|>
341
+ <|im_end|>
342
+ <|im_start|>user
343
+ What is the result of adding 10 to that sum?
344
+ <|im_end|>
345
+ <|im_start|>assistant/think
346
+
347
+ ```
348
+
349
+ - Excluded contents in the second turn input
350
+ ```
351
+ <|im_start|>assistant/think
352
+ {following the previous context}
353
+ The user wants me to find the sum of the odd numbers from 1 to 10. First, I need to clearly understand the problem. I should identify which numbers between 1 and 10 are odd. Going through the numbers in order, the odd numbers are 1, 3, 5, 7, and 9. Since 10 is even, it is excluded. Now, I need to add these numbers together. Adding them step by step: 1+3=4, plus 5 gives 9, plus 7 gives 16, and finally adding 9 gives 25. But is there another way to calculate this? For example, I could use the formula for the sum of an arithmetic sequence. The odd numbers here form an arithmetic sequence with the first term 1 and a common difference of 2. I need to count the number of terms first—there are 5 odd numbers between 1 and 10. The formula for the sum of an arithmetic sequence is n*(a₁ + aₙ)/2, where n is 5, a₁ is 1, and aₙ is 9. Plugging these in, we get 5*(1 + 9)/2 = 5*10/2 = 25, which matches the previous result. Since both methods give 25, I’ll double-check that this is the answer the user expects, and then provide a concise explanation.<|im_end|>
354
+ ```
355
+
356
+ For all later turns, the reasoning (think) content from previous turns is not added to the prompt as well.
357
+
358
+ ### Difference between <|stop|> and <|endofturn|>
359
+
360
+ - **Similarity**
361
+ - They both act as signals to stop the model from generating further responses.
362
+
363
+ - **Difference**
364
+ - <|stop|>: After the response generation is halted and the tool_invoke results are processed, the AI turn resumes.
365
+ - <|endofturn|>: After the response generation is halted, the AI turn is fully terminated, and the model waits for the user's next input.
366
+
367
+
368
+ ## **Huggingface Usage Example**
369
+
370
+ After downloading the model binaries, including the configuration files, to a local path(`/path/to/hyperclova-x-seed-think-14b`), you can run the following in a Python environment with the [Huggingface library](https://huggingface.co/docs/transformers/installation)(verified to work with version 4.45.0) and [timm(pytorch-image-models)](https://github.com/huggingface/pytorch-image-models) installed.
371
+
372
+ You can use the `apply_chat_template` parameter to explicitly enable or disable the reasoning feature.
373
+
374
+ - The default value for both options is `None`, in which case the model decides on its own whether to reason before answering or to answer directly without reasoning.
375
+ - `force_reasoning=True`: Forces the model to always reason before answering.
376
+ - `skip_reasoning=True`: Forces the model to answer directly without reasoning.
377
+ - Passing `None` or `False` has the same effect.
378
+ - If both are set to True, `force_reasoning=True` takes precedence.
379
+
380
+ ```python
381
+ # Default example
382
+ inputs = tokenizer.apply_chat_template(chat, add_generation_prompt=True, return_dict=True, return_tensors="pt")
383
+
384
+ # By adding force_reasoning=True, the model is forced to always reason before responding
385
+ inputs = tokenizer.apply_chat_template(chat, add_generation_prompt=True, force_reasoning=True, return_dict=True, return_tensors="pt")
386
+
387
+ # By adding skip_reasoning=True, the model is forced to always answer directly without reasoning
388
+ inputs = tokenizer.apply_chat_template(chat, add_generation_prompt=True, skip_reasoning=True, return_dict=True, return_tensors="pt")
389
+ ```
390
+
391
+ ### Non-think Example Code
392
+ ```python
393
+ from transformers import AutoModelForCausalLM, AutoTokenizer
394
+
395
+ model_name = "naver-hyperclovax/HyperCLOVAX-SEED-Think-14B"
396
+ model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
397
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
398
+
399
+ chat = [
400
+ {"role": "system", "content": "- In this environment, various tools can be used to answer users' questions.\n- You are \"CLOVA X,\" an AI language model developed by NAVER.\n- Begin by creating a plan for solving the problem, and then utilize the tools accordingly to address the problem.\n- The current date is Monday, July 21, 2025.\n- Latest information such as news, stock prices, and shopping is retrieved through the tool_list.\n- If external tools are required, the assistant should not answer directly but must first obtain the necessary information via the assistant -> tool/function_call role, and then respond."},
401
+ {"role": "user", "content": "Explain in as much detail as possible the relationship between the Schrödinger equation and quantum mechanics."},
402
+ ]
403
+
404
+ # By adding skip_reasoning=True, the model is forced to always answer directly without reasoning
405
+ inputs = tokenizer.apply_chat_template(chat, add_generation_prompt=True, skip_reasoning=True, return_dict=True, return_tensors="pt")
406
+ inputs = inputs.to("cuda")
407
+
408
+ output_ids = model.generate(
409
+ **inputs,
410
+ max_length=1024,
411
+ stop_strings=["<|endofturn|>", "<|stop|>"],
412
+ temperature=0.5,
413
+ top_p=0.6,
414
+ repetition_penalty=1.05,
415
+ tokenizer=tokenizer
416
+ )
417
+ print(tokenizer.batch_decode(output_ids))
418
+ ```
419
+
420
+ ### Think Example Code
421
+ ```python
422
+ from transformers import AutoModelForCausalLM, AutoTokenizer
423
+
424
+ model_name = "naver-hyperclovax/HyperCLOVAX-SEED-Think-14B"
425
+ model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
426
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
427
+
428
+ chat = [
429
+ {"role": "system", "content": "- In this environment, various tools can be used to answer users' questions.\n- You are \"CLOVA X,\" an AI language model developed by NAVER.\n- Begin by creating a plan for solving the problem, and then utilize the tools accordingly to address the problem.\n- The current date is Monday, July 21, 2025.\n- Latest information such as news, stock prices, and shopping is retrieved through the tool_list.\n- If external tools are required, the assistant should not answer directly but must first obtain the necessary information via the assistant -> tool/function_call role, and then respond."},
430
+ {"role": "user", "content": "Explain in as much detail as possible the relationship between the Schrödinger equation and quantum mechanics."},
431
+ ]
432
+
433
+ # By adding force_reasoning=True, the model is forced to always reason before responding
434
+ inputs = tokenizer.apply_chat_template(chat, add_generation_prompt=True, force_reasoning=True, return_dict=True, return_tensors="pt")
435
+ inputs = inputs.to("cuda")
436
+
437
+ output_ids = model.generate(
438
+ **inputs,
439
+ max_length=1024,
440
+ stop_strings=["<|endofturn|>", "<|stop|>"],
441
+ temperature=0.5,
442
+ top_p=0.6,
443
+ repetition_penalty=1.05,
444
+ tokenizer=tokenizer
445
+ )
446
+ print(tokenizer.batch_decode(output_ids))
447
+ ```
448
+
449
+ ### Hybrid(the model decides whether to use think or non-think mode) Example Code
450
+ ```python
451
+ from transformers import AutoModelForCausalLM, AutoTokenizer
452
+
453
+ model_name = "naver-hyperclovax/HyperCLOVAX-SEED-Think-14B"
454
+ model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
455
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
456
+
457
+ chat = [
458
+ {"role": "system", "content": "- In this environment, various tools can be used to answer users' questions.\n- You are \"CLOVA X,\" an AI language model developed by NAVER.\n- Begin by creating a plan for solving the problem, and then utilize the tools accordingly to address the problem.\n- The current date is Monday, July 21, 2025.\n- Latest information such as news, stock prices, and shopping is retrieved through the tool_list.\n- If external tools are required, the assistant should not answer directly but must first obtain the necessary information via the assistant -> tool/function_call role, and then respond."},
459
+ {"role": "user", "content": "Explain in as much detail as possible the relationship between the Schrödinger equation and quantum mechanics."},
460
+ ]
461
+
462
+ # The model decides whether to answer after reasoning or to respond immediately without reasoning
463
+ inputs = tokenizer.apply_chat_template(chat, add_generation_prompt=True, return_dict=True, return_tensors="pt")
464
+ inputs = inputs.to("cuda")
465
+
466
+ output_ids = model.generate(
467
+ **inputs,
468
+ max_length=1024,
469
+ stop_strings=["<|endofturn|>", "<|stop|>"],
470
+ temperature=0.5,
471
+ top_p=0.6,
472
+ repetition_penalty=1.05,
473
+ tokenizer=tokenizer
474
+ )
475
+ print(tokenizer.batch_decode(output_ids))
476
+ ```
477
+
478
+ ### Example code for function calls (tool usage)
479
+ For a scenario involving tool usage, you can execute it as follows.
480
+
481
+ ```python
482
+ import json
483
+ from transformers import AutoModelForCausalLM, AutoTokenizer
484
+
485
+ model_name = "naver-hyperclovax/HyperCLOVAX-SEED-Think-14B"
486
+ model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
487
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
488
+
489
+ # 1) The name of the tool should be written as function_call.{{ name }}.
490
+ # 2) Parameters follow the specifications described at https://platform.openai.com/docs/guides/function-calling?api-mode=responses.
491
+ tool_list = [
492
+ {
493
+ "type": "function",
494
+ "function": {
495
+ "name": "add",
496
+ "description": "Add two numbers.",
497
+ "parameters": {
498
+ "type": "object",
499
+ "properties": {
500
+ "x": {"type": "number", "description": "First number"},
501
+ "y": {"type": "number", "description": "Second number"}
502
+ },
503
+ "required": ["x", "y"]
504
+ }
505
+ }
506
+ }, {
507
+ "type": "function",
508
+ "function": {
509
+ "name": "subtract",
510
+ "description": "Subtract two numbers.",
511
+ "parameters": {
512
+ "type": "object",
513
+ "properties": {
514
+ "x": {"type": "number", "description": "First number"},
515
+ "y": {"type": "number", "description": "Second number"}
516
+ },
517
+ "required": ["x", "y"]
518
+ }
519
+ }
520
+ }
521
+ ]
522
+
523
+
524
+ chat = [
525
+ {"role": "system", "content": "- In this environment, various tools can be used to answer users' questions.\n- You are \"CLOVA X,\" an AI language model developed by NAVER.\n- Begin by creating a plan for solving the problem, and then utilize the tools accordingly to address the problem.\n- The current date is Monday, July 21, 2025.\n- Latest information such as news, stock prices, and shopping is retrieved through the tool_list.\n- If external tools are required, the assistant should not answer directly but must first obtain the necessary information via the assistant -> tool/function_call role, and then respond."},
526
+ {"role": "user", "content": "What is 1588 + 1234? Please calculate it using the provided tool."},
527
+ ]
528
+
529
+ inputs = tokenizer.apply_chat_template(chat, tools=tool_list, add_generation_prompt=True, return_dict=True, return_tensors="pt")
530
+ inputs = inputs.to("cuda")
531
+
532
+ output_ids = model.generate(
533
+ **inputs,
534
+ max_length=1024,
535
+ stop_strings=["<|endofturn|>", "<|stop|>"],
536
+ temperature=0.5,
537
+ top_p=0.6,
538
+ repetition_penalty=1.05,
539
+ tokenizer=tokenizer
540
+ )
541
+ print(tokenizer.batch_decode(output_ids))
542
+ ```
543
+
544
+ - If you have any questions or issues regarding usage, please leave them as an issue in the Discussions section of this page.
545
+
546
+ ## **vLLM Usage Example**
547
+
548
+ he HyperCLOVA X SEED Think model is built on a custom LLM architecture based on the LLaMA architecture, incorporating μP and Peri-LN techniques. For convenient use with vLLM, it is available as a dedicated vLLM plugin that can be installed and used with ease once vLLM is set up.
549
+
550
+ 1. Download vLLM plugin source code
551
+
552
+ ```bash
553
+ git clone https://github.com/NAVER-Cloud-HyperCLOVA-X/hcx-vllm-plugin
554
+ ```
555
+
556
+ 2. vLLM Plugin Build & Installation: While keeping the HyperCLOVAX_modeling path downloaded in step 1, refer to the commands below.
557
+
558
+ ```bash
559
+ pip install vllm
560
+ ```
561
+
562
+ After downloading the model checkpoint to a local path (`/path/to/hyperclova-x-seed-think-14b`), you can perform text inference by running the following commands on a GPU environment with A100 or higher.
563
+
564
+ ```bash
565
+ python -m vllm.entrypoints.api_server --model=/path/to/hyperclova-x-seed-think-14b --trust_remote_code --port=8000
566
+
567
+ curl http://localhost:8000/v1/completions \
568
+ -H "Content-Type: application/json" \
569
+ -d '{
570
+ "prompt": "<|im_start|>tool_list\n<|im_end|>\n<|im_start|>system\n- The AI language model is named \"CLOVA X\" and was developed by NAVER.\n- Today is Friday, July 18, 2025.<|im_end|>\n<|im_start|>user\nExplain in as much detail as possible the relationship between the Schrödinger equation and quantum mechanics.<|im_end|>\n<|im_start|>assistant/think\n",
571
+ "top_k":-1,
572
+ "temperature":0.5,
573
+ "top_p":0.6,
574
+ "repetition_penalty":1.05,
575
+ "stop":["<|im_end|><|endofturn|>", "<|im_end|><|stop|>"],
576
+ "max_tokens":8192,
577
+ "skip_special_tokens":false
578
+ }'
579
+ ```
580
+
581
+ ## License
582
+
583
+ The model is licensed under [HyperCLOVA X SEED Model License Agreement](./LICENSE)
584
+
585
+ ## Citation
586
+
587
+ ```
588
+ @misc{navercloudhyperclovaxteam2025hyperclovaxthinktechnical,
589
+ title={HyperCLOVA X THINK Technical Report},
590
+ author={NAVER Cloud HyperCLOVA X Team},
591
+ year={2025},
592
+ eprint={2506.22403},
593
+ archivePrefix={arXiv},
594
+ primaryClass={cs.CL},
595
+ url={https://arxiv.org/abs/2506.22403},
596
+ }
597
+ ```
598
+
599
+ ## Questions
600
+
601
+ For any other questions, please feel free to contact us at [dl_hcxtuneup@navercorp.com](mailto:dl_hcxtuneup@navercorp.com).
602
+