gabriellarson commited on
Commit
9ccb828
·
verified ·
1 Parent(s): 2ce2583

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +776 -2
README.md CHANGED
@@ -1,7 +1,781 @@
1
  ---
 
 
 
2
  base_model:
3
  - moonshotai/Kimi-K2-Instruct
4
  ---
5
- experimental
 
 
 
 
 
6
 
7
- https://github.com/ggml-org/llama.cpp/pull/14654
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ license_name: modified-mit
4
+ library_name: transformers
5
  base_model:
6
  - moonshotai/Kimi-K2-Instruct
7
  ---
8
+ <div align="center">
9
+ <picture>
10
+ <img src="figures/kimi-logo.png" width="30%" alt="Kimi K2: Open Agentic Intellignece">
11
+ </picture>
12
+ </div>
13
+ <hr>
14
 
15
+ <div align="center" style="line-height:1">
16
+ <a href="https://www.kimi.com" target="_blank"><img alt="Chat" src="https://img.shields.io/badge/🤖%20Chat-Kimi%20K2-ff6b6b?color=1783ff&logoColor=white"/></a>
17
+ <a href="https://github.com/moonshotai/Kimi-K2"><img alt="github" src="https://img.shields.io/badge/🤖%20Github-Kimi%20K2-ff6b6b?color=1783ff&logoColor=white"/></a>
18
+ <a href="https://www.moonshot.ai" target="_blank"><img alt="Homepage" src="https://img.shields.io/badge/Homepage-Moonshot%20AI-white?logo=Kimi&logoColor=white"/></a>
19
+ </div>
20
+
21
+ <div align="center" style="line-height: 1;">
22
+ <a href="https://huggingface.co/moonshotai" target="_blank"><img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Moonshot%20AI-ffc107?color=ffc107&logoColor=white"/></a>
23
+ <a href="https://twitter.com/kimi_moonshot" target="_blank"><img alt="Twitter Follow" src="https://img.shields.io/badge/Twitter-Kimi.ai-white?logo=x&logoColor=white"/></a>
24
+ <a href="https://discord.gg/TYU2fdJykW" target="_blank"><img alt="Discord" src="https://img.shields.io/badge/Discord-Kimi.ai-white?logo=discord&logoColor=white"/></a>
25
+ </div>
26
+ <div align="center" style="line-height: 1;">
27
+ <a href="https://github.com/moonshotai/Kimi-K2/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Modified_MIT-f5de53?&color=f5de53"/></a>
28
+ </div>
29
+
30
+ <p align="center">
31
+ <b>📰&nbsp;&nbsp;<a href="https://moonshotai.github.io/Kimi-K2/">Tech Blog</a></b> &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp; <b>📄&nbsp;&nbsp;Paper Link (coming soon)</b>
32
+ </p>
33
+
34
+ ## 0. Changelog
35
+
36
+ ### 2025.7.15
37
+ - We have updated our tokenizer implementation. Now special tokens like `[EOS]` can be encoded to their token ids.
38
+ - We fixed a bug in the chat template that was breaking multi-turn tool calls.
39
+
40
+ ## 1. Model Introduction
41
+
42
+ Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities.
43
+
44
+ ### Key Features
45
+ - Large-Scale Training: Pre-trained a 1T parameter MoE model on 15.5T tokens with zero training instability.
46
+ - MuonClip Optimizer: We apply the Muon optimizer to an unprecedented scale, and develop novel optimization techniques to resolve instabilities while scaling up.
47
+ - Agentic Intelligence: Specifically designed for tool use, reasoning, and autonomous problem-solving.
48
+
49
+ ### Model Variants
50
+ - **Kimi-K2-Base**: The foundation model, a strong start for researchers and builders who want full control for fine-tuning and custom solutions.
51
+ - **Kimi-K2-Instruct**: The post-trained model best for drop-in, general-purpose chat and agentic experiences. It is a reflex-grade model without long thinking.
52
+
53
+ <div align="center">
54
+ <picture>
55
+ <img src="figures/banner.png" width="80%" alt="Evaluation Results">
56
+ </picture>
57
+ </div>
58
+ ## 2. Model Summary
59
+
60
+ <div align="center">
61
+
62
+
63
+ | | |
64
+ |:---:|:---:|
65
+ | **Architecture** | Mixture-of-Experts (MoE) |
66
+ | **Total Parameters** | 1T |
67
+ | **Activated Parameters** | 32B |
68
+ | **Number of Layers** (Dense layer included) | 61 |
69
+ | **Number of Dense Layers** | 1 |
70
+ | **Attention Hidden Dimension** | 7168 |
71
+ | **MoE Hidden Dimension** (per Expert) | 2048 |
72
+ | **Number of Attention Heads** | 64 |
73
+ | **Number of Experts** | 384 |
74
+ | **Selected Experts per Token** | 8 |
75
+ | **Number of Shared Experts** | 1 |
76
+ | **Vocabulary Size** | 160K |
77
+ | **Context Length** | 128K |
78
+ | **Attention Mechanism** | MLA |
79
+ | **Activation Function** | SwiGLU |
80
+ </div>
81
+
82
+ ## 3. Evaluation Results
83
+
84
+ #### Instruction model evaluation results
85
+
86
+ <div align="center">
87
+ <table>
88
+ <thead>
89
+ <tr>
90
+ <th align="center">Benchmark</th>
91
+ <th align="center">Metric</th>
92
+ <th align="center"><sup>Kimi K2 Instruct</sup></th>
93
+ <th align="center"><sup>DeepSeek-V3-0324</sup></th>
94
+ <th align="center"><sup>Qwen3-235B-A22B <br><sup>(non-thinking)</sup></sup></th>
95
+ <th align="center"><sup>Claude Sonnet 4 <br><sup>(w/o extended thinking)</sup></sup></th>
96
+ <th align="center"><sup>Claude Opus 4 <br><sup>(w/o extended thinking)</sup></sup></th>
97
+ <th align="center"><sup>GPT-4.1</sup></th>
98
+ <th align="center"><sup>Gemini 2.5 Flash <br> Preview (05-20)</sup></th>
99
+ </tr>
100
+ </thead>
101
+ <tbody>
102
+ <tr>
103
+ <td align="center" colspan=9><strong>Coding Tasks</strong></td>
104
+ </tr>
105
+ <tr>
106
+ <td align="center">LiveCodeBench v6<br><sup>(Aug 24 - May 25)</sup></td>
107
+ <td align="center">Pass@1</td>
108
+ <td align="center"><strong>53.7</strong></td>
109
+ <td align="center">46.9</td>
110
+ <td align="center">37.0</td>
111
+ <td align="center">48.5</td>
112
+ <td align="center">47.4</td>
113
+ <td align="center">44.7</td>
114
+ <td align="center">44.7</td>
115
+ </tr>
116
+ <tr>
117
+ <td align="center">OJBench</td>
118
+ <td align="center">Pass@1</td>
119
+ <td align="center"><strong>27.1</strong></td>
120
+ <td align="center">24.0</td>
121
+ <td align="center">11.3</td>
122
+ <td align="center">15.3</td>
123
+ <td align="center">19.6</td>
124
+ <td align="center">19.5</td>
125
+ <td align="center">19.5</td>
126
+ </tr>
127
+
128
+ <tr>
129
+ <td align="center">MultiPL-E</td>
130
+ <td align="center">Pass@1</td>
131
+ <td align="center"><ins><strong>85.7</strong></ins></td>
132
+ <td align="center">83.1</td>
133
+ <td align="center">78.2</td>
134
+ <td align="center">88.6</td>
135
+ <td align="center"><strong>89.6</strong></td>
136
+ <td align="center">86.7</td>
137
+ <td align="center">85.6</td>
138
+ </tr>
139
+
140
+ <tr>
141
+ <td align="center">SWE-bench Verified <br/><sup>(Agentless Coding)</sup></td>
142
+ <td align="center">Single Patch w/o Test (Acc)</td>
143
+ <td align="center"><ins><strong>51.8</strong></ins></td>
144
+ <td align="center">36.6</td>
145
+ <td align="center">39.4</td>
146
+ <td align="center">50.2</td>
147
+ <td align="center"><strong>53.0</strong></td>
148
+ <td align="center">40.8</td>
149
+ <td align="center">32.6</td>
150
+ </tr>
151
+
152
+ <tr>
153
+ <td align="center" rowspan="2">SWE-bench Verified <br/> <sup>(Agentic Coding)</sup></td>
154
+ <td align="center">Single Attempt (Acc)</td>
155
+ <td align="center"><ins><strong>65.8</strong></ins></td>
156
+ <td align="center">38.8</td>
157
+ <td align="center">34.4</td>
158
+ <td align="center"><strong>72.7</strong><sup>*</sup></td>
159
+ <td align="center">72.5<sup>*</sup></td>
160
+ <td align="center">54.6</td>
161
+ <td align="center">—</td>
162
+ </tr>
163
+
164
+ <tr>
165
+ <!--<td align="center">(Agentic Coding)</td>-->
166
+ <td align="center">Multiple Attempts (Acc)</td>
167
+ <td align="center"><ins><strong>71.6</strong></ins></td>
168
+ <td align="center">—</td>
169
+ <td align="center">—</td>
170
+ <td align="center"><strong>80.2</strong></td>
171
+ <td align="center">79.4<sup>*</sup></td>
172
+ <td align="center">—</td>
173
+ <td align="center">—</td>
174
+ </tr>
175
+ <tr>
176
+ <td align="center">SWE-bench Multilingual<br /> <sup>(Agentic Coding)</sup></td>
177
+ <td align="center">Single Attempt (Acc)</td>
178
+ <td align="center"><ins><strong>47.3</strong> </ins></td>
179
+ <td align="center">25.8</td>
180
+ <td align="center">20.9</td>
181
+ <td align="center"><strong>51.0</strong></td>
182
+ <td align="center">—</td>
183
+ <td align="center">31.5</td>
184
+ <td align="center">—</td>
185
+ </tr>
186
+ <tr>
187
+ <td align="center" rowspan="2">TerminalBench</td>
188
+ <td align="center">Inhouse Framework (Acc)</td>
189
+ <td align="center"><ins><strong>30.0</strong></ins></td>
190
+ <td align="center">—</td>
191
+ <td align="center">—</td>
192
+ <td align="center">35.5</td>
193
+ <td align="center"><strong>43.2</strong></td>
194
+ <td align="center">8.3</td>
195
+ <td align="center">—</td>
196
+ </tr>
197
+ <tr>
198
+ <!--<td align="center">TerminalBench</td>-->
199
+ <td align="center">Terminus (Acc)</td>
200
+ <td align="center"><ins><strong>25.0</strong> </ins></td>
201
+ <td align="center">16.3</td>
202
+ <td align="center">6.6</td>
203
+ <td align="center">—</td>
204
+ <td align="center">—</td>
205
+ <td align="center"><strong>30.3</strong></td>
206
+ <td align="center">16.8</td>
207
+ </tr>
208
+ <tr>
209
+ <td align="center">Aider-Polyglot</td>
210
+ <td align="center">Acc</td>
211
+ <td align="center">60.0</td>
212
+ <td align="center">55.1</td>
213
+ <td align="center"><ins><strong>61.8</strong></ins></td>
214
+ <td align="center">56.4</td>
215
+ <td align="center"><strong>70.7</strong></td>
216
+ <td align="center">52.4</td>
217
+ <td align="center">44.0</td>
218
+ </tr>
219
+ <tr>
220
+ <td align="center" colspan=9><strong>Tool Use Tasks</strong></td>
221
+ </tr>
222
+ <tr>
223
+ <td align="center">Tau2 retail</td>
224
+ <td align="center">Avg@4</td>
225
+ <td align="center"><ins><strong>70.6</strong></ins></td>
226
+ <td align="center">69.1</td>
227
+ <td align="center">57.0</td>
228
+ <td align="center">75.0</td>
229
+ <td align="center"><strong>81.8</strong></td>
230
+ <td align="center">74.8</td>
231
+ <td align="center">64.3</td>
232
+ </tr>
233
+ <tr>
234
+ <td align="center">Tau2 airline</td>
235
+ <td align="center">Avg@4</td>
236
+ <td align="center"><ins><strong>56.5</strong></ins></td>
237
+ <td align="center">39.0</td>
238
+ <td align="center">26.5</td>
239
+ <td align="center">55.5</td>
240
+ <td align="center"><strong>60.0</strong></td>
241
+ <td align="center">54.5</td>
242
+ <td align="center">42.5</td>
243
+ </tr>
244
+ <tr>
245
+ <td align="center">Tau2 telecom</td>
246
+ <td align="center">Avg@4</td>
247
+ <td align="center"><strong>65.8</strong></td>
248
+ <td align="center">32.5</td>
249
+ <td align="center">22.1</td>
250
+ <td align="center">45.2</td>
251
+ <td align="center">57.0</td>
252
+ <td align="center">38.6</td>
253
+ <td align="center">16.9</td>
254
+ </tr>
255
+ <tr>
256
+ <td align="center">AceBench</td>
257
+ <td align="center">Acc</td>
258
+ <td align="center"><ins><strong>76.5</strong></ins></td>
259
+ <td align="center">72.7</td>
260
+ <td align="center">70.5</td>
261
+ <td align="center">76.2</td>
262
+ <td align="center">75.6</td>
263
+ <td align="center"><strong>80.1</strong></td>
264
+ <td align="center">74.5</td>
265
+ </tr>
266
+ <tr>
267
+ <td align="center" colspan=9><strong>Math &amp; STEM Tasks</strong></td>
268
+ </tr>
269
+ <tr>
270
+ <td align="center">AIME 2024</td>
271
+ <td align="center">Avg@64</td>
272
+ <td align="center"><strong>69.6</strong></td>
273
+ <td align="center">59.4<sup>*</sup></td>
274
+ <td align="center">40.1<sup>*</sup></td>
275
+ <td align="center">43.4</td>
276
+ <td align="center">48.2</td>
277
+ <td align="center">46.5</td>
278
+ <td align="center">61.3</td>
279
+ </tr>
280
+ <tr>
281
+ <td align="center">AIME 2025</td>
282
+ <td align="center">Avg@64</td>
283
+ <td align="center"><strong>49.5</strong></td>
284
+ <td align="center">46.7</td>
285
+ <td align="center">24.7<sup>*</sup></td>
286
+ <td align="center">33.1<sup>*</sup></td>
287
+ <td align="center">33.9<sup>*</sup></td>
288
+ <td align="center">37.0</td>
289
+ <td align="center">46.6</td>
290
+ </tr>
291
+ <tr>
292
+ <td align="center">MATH-500</td>
293
+ <td align="center">Acc</td>
294
+ <td align="center"><strong>97.4</strong></td>
295
+ <td align="center">94.0<sup>*</sup></td>
296
+ <td align="center">91.2<sup>*</sup></td>
297
+ <td align="center">94.0</td>
298
+ <td align="center">94.4</td>
299
+ <td align="center">92.4</td>
300
+ <td align="center">95.4</td>
301
+ </tr>
302
+ <tr>
303
+ <td align="center">HMMT 2025</td>
304
+ <td align="center">Avg@32</td>
305
+ <td align="center"><strong>38.8</strong></td>
306
+ <td align="center">27.5</td>
307
+ <td align="center">11.9</td>
308
+ <td align="center">15.9</td>
309
+ <td align="center">15.9</td>
310
+ <td align="center">19.4</td>
311
+ <td align="center">34.7</td>
312
+ </tr>
313
+ <tr>
314
+ <td align="center">CNMO 2024</td>
315
+ <td align="center">Avg@16</td>
316
+ <td align="center">74.3</td>
317
+ <td align="center"><ins><strong>74.7</strong></ins></td>
318
+ <td align="center">48.6</td>
319
+ <td align="center">60.4</td>
320
+ <td align="center">57.6</td>
321
+ <td align="center">56.6</td>
322
+ <td align="center"><strong>75.0</strong></td>
323
+ </tr>
324
+ <tr>
325
+ <td align="center">PolyMath-en</td>
326
+ <td align="center">Avg@4</td>
327
+ <td align="center"><strong>65.1</strong></td>
328
+ <td align="center">59.5</td>
329
+ <td align="center">51.9</td>
330
+ <td align="center">52.8</td>
331
+ <td align="center">49.8</td>
332
+ <td align="center">54.0</td>
333
+ <td align="center">49.9</td>
334
+ </tr>
335
+
336
+ <tr>
337
+ <td align="center">ZebraLogic</td>
338
+ <td align="center">Acc</td>
339
+ <td align="center"><strong>89.0</strong></td>
340
+ <td align="center">84.0</td>
341
+ <td align="center">37.7<sup>*</sup></td>
342
+ <td align="center">73.7</td>
343
+ <td align="center">59.3</td>
344
+ <td align="center">58.5</td>
345
+ <td align="center">57.9</td>
346
+ </tr>
347
+ <tr>
348
+ <td align="center">AutoLogi</td>
349
+ <td align="center">Acc</td>
350
+ <td align="center"><ins><strong>89.5</strong></ins></td>
351
+ <td align="center">88.9</td>
352
+ <td align="center">83.3</td>
353
+ <td align="center"><strong>89.8</strong></td>
354
+ <td align="center">86.1</td>
355
+ <td align="center">88.2</td>
356
+ <td align="center">84.1</td>
357
+ </tr>
358
+ <tr>
359
+ <td align="center">GPQA-Diamond</td>
360
+ <td align="center">Avg@8</td>
361
+ <td align="center"><strong>75.1</strong></td>
362
+ <td align="center">68.4<sup>*</sup></td>
363
+ <td align="center">62.9<sup>*</sup></td>
364
+ <td align="center">70.0<sup>*</sup></td>
365
+ <td align="center">74.9<sup>*</sup></td>
366
+ <td align="center">66.3</td>
367
+ <td align="center">68.2</td>
368
+ </tr>
369
+ <tr>
370
+ <td align="center">SuperGPQA</td>
371
+ <td align="center">Acc</td>
372
+ <td align="center"><strong>57.2</strong></td>
373
+ <td align="center">53.7</td>
374
+ <td align="center">50.2</td>
375
+ <td align="center">55.7</td>
376
+ <td align="center">56.5</td>
377
+ <td align="center">50.8</td>
378
+ <td align="center">49.6</td>
379
+ </tr>
380
+ <tr>
381
+ <td align="center">Humanity's Last Exam<br><sup>(Text Only)</sup></td>
382
+ <td align="center">-</td>
383
+ <td align="center">4.7</td>
384
+ <td align="center">5.2</td>
385
+ <td align="center"><ins><strong>5.7</strong></ins></td>
386
+ <td align="center">5.8</td>
387
+ <td align="center"><strong>7.1</strong></td>
388
+ <td align="center">3.7</td>
389
+ <td align="center">5.6</td>
390
+ </tr>
391
+ <tr>
392
+ <td align="center" colspan=9><strong>General Tasks</strong></td>
393
+ </tr>
394
+ <tr>
395
+ <td align="center">MMLU</td>
396
+ <td align="center">EM</td>
397
+ <td align="center"><ins><strong>89.5</strong></ins></td>
398
+ <td align="center">89.4</td>
399
+ <td align="center">87.0</td>
400
+ <td align="center">91.5</td>
401
+ <td align="center"><strong>92.9</strong></td>
402
+ <td align="center">90.4</td>
403
+ <td align="center">90.1</td>
404
+ </tr>
405
+ <tr>
406
+ <td align="center">MMLU-Redux</td>
407
+ <td align="center">EM</td>
408
+ <td align="center"><ins><strong>92.7</strong></ins></td>
409
+ <td align="center">90.5</td>
410
+ <td align="center">89.2</td>
411
+ <td align="center">93.6</td>
412
+ <td align="center"><strong>94.2</strong></td>
413
+ <td align="center">92.4</td>
414
+ <td align="center">90.6</td>
415
+ </tr>
416
+ <tr>
417
+ <td align="center">MMLU-Pro</td>
418
+ <td align="center">EM</td>
419
+ <td align="center">81.1</td>
420
+ <td align="center"><ins><strong>81.2</strong></ins><sup>*</sup></td>
421
+ <td align="center">77.3</td>
422
+ <td align="center">83.7</td>
423
+ <td align="center"><strong>86.6</strong></td>
424
+ <td align="center">81.8</td>
425
+ <td align="center">79.4</td>
426
+ </tr>
427
+
428
+ <tr>
429
+ <td align="center">IFEval</td>
430
+ <td align="center">Prompt Strict</td>
431
+ <td align="center"><strong>89.8</strong></td>
432
+ <td align="center">81.1</td>
433
+ <td align="center">83.2<sup>*</sup></td>
434
+ <td align="center">87.6</td>
435
+ <td align="center">87.4</td>
436
+ <td align="center">88.0</td>
437
+ <td align="center">84.3</td>
438
+ </tr>
439
+ <tr>
440
+ <td align="center">Multi-Challenge</td>
441
+ <td align="center">Acc</td>
442
+ <td align="center"><strong>54.1</strong></td>
443
+ <td align="center">31.4</td>
444
+ <td align="center">34.0</td>
445
+ <td align="center">46.8</td>
446
+ <td align="center">49.0</td>
447
+ <td align="center">36.4</td>
448
+ <td align="center">39.5</td>
449
+ </tr>
450
+ <tr>
451
+ <td align="center">SimpleQA</td>
452
+ <td align="center">Correct</td>
453
+ <td align="center"><ins><strong>31.0</strong></ins></td>
454
+ <td align="center">27.7</td>
455
+ <td align="center">13.2</td>
456
+ <td align="center">15.9</td>
457
+ <td align="center">22.8</td>
458
+ <td align="center"><strong>42.3</strong></td>
459
+ <td align="center">23.3</td>
460
+ </tr>
461
+ <tr>
462
+ <td align="center">Livebench</td>
463
+ <td align="center">Pass@1</td>
464
+ <td align="center"><strong>76.4</strong></td>
465
+ <td align="center">72.4</td>
466
+ <td align="center">67.6</td>
467
+ <td align="center">74.8</td>
468
+ <td align="center">74.6</td>
469
+ <td align="center">69.8</td>
470
+ <td align="center">67.8</td>
471
+ </tr>
472
+ </tbody>
473
+ </table>
474
+ </div>
475
+ <sup>
476
+ • Bold denotes global SOTA, and underlined denotes open-source SOTA.
477
+ </sup><br/><sup>
478
+ • Data points marked with * are taken directly from the model's tech report or blog.
479
+ </sup><br/><sup>
480
+ • All metrics, except for SWE-bench Verified (Agentless), are evaluated with an 8k output token length. SWE-bench Verified (Agentless) is limited to a 16k output token length.
481
+ </sup><br/><sup>
482
+ • Kimi K2 achieves 65.8% pass@1 on the SWE-bench Verified tests with bash/editor tools (single-attempt patches, no test-time compute). It also achieves a 47.3% pass@1 on the SWE-bench Multilingual tests under the same conditions. Additionally, we report results on SWE-bench Verified tests (71.6%) that leverage parallel test-time compute by sampling multiple sequences and selecting the single best via an internal scoring model.
483
+ </sup><br/><sup>
484
+ • To ensure the stability of the evaluation, we employed avg@k on the AIME, HMMT, CNMO, PolyMath-en, GPQA-Diamond, EvalPlus, Tau2.
485
+ </sup><br/><sup>
486
+ • Some data points have been omitted due to prohibitively expensive evaluation costs.
487
+ </sup>
488
+ ---
489
+
490
+ #### Base model evaluation results
491
+
492
+ <div align="center">
493
+
494
+ <table>
495
+ <thead>
496
+ <tr>
497
+ <th align="center">Benchmark</th>
498
+ <th align="center">Metric</th>
499
+ <th align="center">Shot</th>
500
+ <th align="center">Kimi K2 Base</th>
501
+ <th align="center">Deepseek-V3-Base</th>
502
+ <th align="center">Qwen2.5-72B</th>
503
+ <th align="center">Llama 4 Maverick</th>
504
+ </tr>
505
+ </thead>
506
+ <tbody>
507
+ <tr>
508
+ <td align="center" colspan="7"><strong>General Tasks</strong></td>
509
+ </tr>
510
+ <tr>
511
+ <td align="center">MMLU</td>
512
+ <td align="center">EM</td>
513
+ <td align="center">5-shot</td>
514
+ <td align="center"><strong>87.8</strong></td>
515
+ <td align="center">87.1</td>
516
+ <td align="center">86.1</td>
517
+ <td align="center">84.9</td>
518
+ </tr>
519
+ <tr>
520
+ <td align="center">MMLU-pro</td>
521
+ <td align="center">EM</td>
522
+ <td align="center">5-shot</td>
523
+ <td align="center"><strong>69.2</strong></td>
524
+ <td align="center">60.6</td>
525
+ <td align="center">62.8</td>
526
+ <td align="center">63.5</td>
527
+ </tr>
528
+ <tr>
529
+ <td align="center">MMLU-redux-2.0</td>
530
+ <td align="center">EM</td>
531
+ <td align="center">5-shot</td>
532
+ <td align="center"><strong>90.2</strong></td>
533
+ <td align="center">89.5</td>
534
+ <td align="center">87.8</td>
535
+ <td align="center">88.2</td>
536
+ </tr>
537
+ <tr>
538
+ <td align="center">SimpleQA</td>
539
+ <td align="center">Correct</td>
540
+ <td align="center">5-shot</td>
541
+ <td align="center"><strong>35.3</strong></td>
542
+ <td align="center">26.5</td>
543
+ <td align="center">10.3</td>
544
+ <td align="center">23.7</td>
545
+ </tr>
546
+ <tr>
547
+ <td align="center">TriviaQA</td>
548
+ <td align="center">EM</td>
549
+ <td align="center">5-shot</td>
550
+ <td align="center"><strong>85.1</strong></td>
551
+ <td align="center">84.1</td>
552
+ <td align="center">76.0</td>
553
+ <td align="center">79.3</td>
554
+ </tr>
555
+ <tr>
556
+ <td align="center">GPQA-Diamond</td>
557
+ <td align="center">Avg@8</td>
558
+ <td align="center">5-shot</td>
559
+ <td align="center">48.1</td>
560
+ <td align="center"><strong>50.5</strong></td>
561
+ <td align="center">40.8</td>
562
+ <td align="center">49.4</td>
563
+ </tr>
564
+ <tr>
565
+ <td align="center">SuperGPQA</td>
566
+ <td align="center">EM</td>
567
+ <td align="center">5-shot</td>
568
+ <td align="center"><strong>44.7</strong></td>
569
+ <td align="center">39.2</td>
570
+ <td align="center">34.2</td>
571
+ <td align="center">38.8</td>
572
+ </tr>
573
+ <tr>
574
+ <td align="center" colspan="7"><strong>Coding Tasks</strong></td>
575
+ </tr>
576
+ <tr>
577
+ <td align="center">LiveCodeBench v6</td>
578
+ <td align="center">Pass@1</td>
579
+ <td align="center">1-shot</td>
580
+ <td align="center"><strong>26.3</strong></td>
581
+ <td align="center">22.9</td>
582
+ <td align="center">21.1</td>
583
+ <td align="center">25.1</td>
584
+ </tr>
585
+ <tr>
586
+ <td align="center">EvalPlus</td>
587
+ <td align="center">Pass@1</td>
588
+ <td align="center">-</td>
589
+ <td align="center"><strong>80.3</strong></td>
590
+ <td align="center">65.6</td>
591
+ <td align="center">66.0</td>
592
+ <td align="center">65.5</td>
593
+ </tr>
594
+ <tr>
595
+ <td align="center" colspan="7"><strong>Mathematics Tasks</strong></td>
596
+ </tr>
597
+ <tr>
598
+ <td align="center">MATH</td>
599
+ <td align="center">EM</td>
600
+ <td align="center">4-shot</td>
601
+ <td align="center"><strong>70.2</strong></td>
602
+ <td align="center">60.1</td>
603
+ <td align="center">61.0</td>
604
+ <td align="center">63.0</td>
605
+ </tr>
606
+ <tr>
607
+ <td align="center">GSM8k</td>
608
+ <td align="center">EM</td>
609
+ <td align="center">8-shot</td>
610
+ <td align="center"><strong>92.1</strong></td>
611
+ <td align="center">91.7</td>
612
+ <td align="center">90.4</td>
613
+ <td align="center">86.3</td>
614
+ </tr>
615
+ <tr>
616
+ <td align="center" colspan="7"><strong>Chinese Tasks</strong></td>
617
+ </tr>
618
+ <tr>
619
+ <td align="center">C-Eval</td>
620
+ <td align="center">EM</td>
621
+ <td align="center">5-shot</td>
622
+ <td align="center"><strong>92.5</strong></td>
623
+ <td align="center">90.0</td>
624
+ <td align="center">90.9</td>
625
+ <td align="center">80.9</td>
626
+ </tr>
627
+ <tr>
628
+ <td align="center">CSimpleQA</td>
629
+ <td align="center">Correct</td>
630
+ <td align="center">5-shot</td>
631
+ <td align="center"><strong>77.6</strong></td>
632
+ <td align="center">72.1</td>
633
+ <td align="center">50.5</td>
634
+ <td align="center">53.5</td>
635
+ </tr>
636
+ </tbody>
637
+ </table>
638
+ </div>
639
+ <sup>
640
+ • We only evaluate open-source pretrained models in this work. We report results for Qwen2.5-72B because the base checkpoint for Qwen3-235B-A22B was not open-sourced at the time of our study.
641
+ </sup><br/><sup>
642
+ • All models are evaluated using the same evaluation protocol.
643
+
644
+ </sup>
645
+
646
+
647
+ ## 4. Deployment
648
+ > [!Note]
649
+ > You can access Kimi K2's API on https://platform.moonshot.ai , we provide OpenAI/Anthropic-compatible API for you.
650
+ >
651
+ > The Anthropic-compatible API maps temperature by `real_temperature = request_temperature * 0.6` for better compatible with existing applications.
652
+
653
+ Our model checkpoints are stored in the block-fp8 format, you can find it on [Huggingface](https://huggingface.co/moonshotai/Kimi-K2-Instruct).
654
+
655
+ Currently, Kimi-K2 is recommended to run on the following inference engines:
656
+
657
+ * vLLM
658
+ * SGLang
659
+ * KTransformers
660
+ * TensorRT-LLM
661
+
662
+ Deployment examples for vLLM and SGLang can be found in the [Model Deployment Guide](docs/deploy_guidance.md).
663
+
664
+ ---
665
+
666
+ ## 5. Model Usage
667
+
668
+ ### Chat Completion
669
+
670
+ Once the local inference service is up, you can interact with it through the chat endpoint:
671
+
672
+ ```python
673
+ def simple_chat(client: OpenAI, model_name: str):
674
+ messages = [
675
+ {"role": "system", "content": "You are Kimi, an AI assistant created by Moonshot AI."},
676
+ {"role": "user", "content": [{"type": "text", "text": "Please give a brief self-introduction."}]},
677
+ ]
678
+ response = client.chat.completions.create(
679
+ model=model_name,
680
+ messages=messages,
681
+ stream=False,
682
+ temperature=0.6,
683
+ max_tokens=256
684
+ )
685
+ print(response.choices[0].message.content)
686
+ ```
687
+
688
+ > [!NOTE]
689
+ > The recommended temperature for Kimi-K2-Instruct is `temperature = 0.6`.
690
+ > If no special instructions are required, the system prompt above is a good default.
691
+
692
+ ---
693
+
694
+ ### Tool Calling
695
+
696
+ Kimi-K2-Instruct has strong tool-calling capabilities.
697
+ To enable them, you need to pass the list of available tools in each request, then the model will autonomously decide when and how to invoke them.
698
+
699
+ The following example demonstrates calling a weather tool end-to-end:
700
+
701
+ ```python
702
+ # Your tool implementation
703
+ def get_weather(city: str) -> dict:
704
+ return {"weather": "Sunny"}
705
+ # Tool schema definition
706
+ tools = [{
707
+ "type": "function",
708
+ "function": {
709
+ "name": "get_weather",
710
+ "description": "Retrieve current weather information. Call this when the user asks about the weather.",
711
+ "parameters": {
712
+ "type": "object",
713
+ "required": ["city"],
714
+ "properties": {
715
+ "city": {
716
+ "type": "string",
717
+ "description": "Name of the city"
718
+ }
719
+ }
720
+ }
721
+ }
722
+ }]
723
+ # Map tool names to their implementations
724
+ tool_map = {
725
+ "get_weather": get_weather
726
+ }
727
+ def tool_call_with_client(client: OpenAI, model_name: str):
728
+ messages = [
729
+ {"role": "system", "content": "You are Kimi, an AI assistant created by Moonshot AI."},
730
+ {"role": "user", "content": "What's the weather like in Beijing today? Use the tool to check."}
731
+ ]
732
+ finish_reason = None
733
+ while finish_reason is None or finish_reason == "tool_calls":
734
+ completion = client.chat.completions.create(
735
+ model=model_name,
736
+ messages=messages,
737
+ temperature=0.6,
738
+ tools=tools, # tool list defined above
739
+ tool_choice="auto"
740
+ )
741
+ choice = completion.choices[0]
742
+ finish_reason = choice.finish_reason
743
+ if finish_reason == "tool_calls":
744
+ messages.append(choice.message)
745
+ for tool_call in choice.message.tool_calls:
746
+ tool_call_name = tool_call.function.name
747
+ tool_call_arguments = json.loads(tool_call.function.arguments)
748
+ tool_function = tool_map[tool_call_name]
749
+ tool_result = tool_function(**tool_call_arguments)
750
+ print("tool_result:", tool_result)
751
+ messages.append({
752
+ "role": "tool",
753
+ "tool_call_id": tool_call.id,
754
+ "name": tool_call_name,
755
+ "content": json.dumps(tool_result)
756
+ })
757
+ print("-" * 100)
758
+ print(choice.message.content)
759
+ ```
760
+
761
+ The `tool_call_with_client` function implements the pipeline from user query to tool execution.
762
+ This pipeline requires the inference engine to support Kimi-K2’s native tool-parsing logic.
763
+ For streaming output and manual tool-parsing, see the [Tool Calling Guide](docs/tool_call_guidance.md).
764
+
765
+ ---
766
+
767
+ ## 6. License
768
+
769
+ Both the code repository and the model weights are released under the [Modified MIT License](LICENSE).
770
+
771
+ ---
772
+
773
+ ## 7. Third Party Notices
774
+
775
+ See [THIRD PARTY NOTICES](THIRD_PARTY_NOTICES.md)
776
+
777
+ ---
778
+
779
+ ## 7. Contact Us
780
+
781
+ If you have any questions, please reach out at [support@moonshot.cn](mailto:support@moonshot.cn).