Model reference · open weights
Kimi-K2 is an open-weight language model from moonshotai. Kimi-K2-Instruct (FP8) weighs 1029 GB; the smallest configuration that runs it is 8× B200 180 GB.
Summary of the moonshotai/Kimi-K2-Instruct model card, 2026-10-01
What it is
| Released by | moonshotai |
|---|---|
| Released | 2025-07-11 |
| Parameters | 1026.4B |
| VRAM | 1029 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … 8× H200 141 GB 15 smaller cards | — | — | — | |
| 8× B200 180 GB tensor parallel | 49 | 12 | all 128K | 176 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 1032 GB | 1034 GB |
| 5 | 1034 GB | 1043 GB |
| 8 | 1036 GB | 1050 GB |
| 16 | 1041 GB | 1068 GB |
| 32 | 1050 GB | 1105 GB |
| 64 | 1068 GB | 1179 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| Kimi-K2-Instruct (above) ↗ | 1026.4B | FP8 | 1029 GB | 8× B200 180 GB |
| Kimi-K2-Base ↗ | 1026.5B | FP8 | 1029 GB | 8× B200 180 GB |
| Kimi-K2-Instruct-GGUF ↗ packaged by unsloth 27 builds: TQ1_0 244 GB … BF16 2053 GB |
— | GGUF | 621 GB | 4× B200 180 GB |
From the model card
name field are now supported. We’ve also moved the chat template to a standalone file for easier viewing.[EOS] can be encoded to their token ids.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.
| Architecture | Mixture-of-Experts (MoE) |
| Total Parameters | 1T |
| Activated Parameters | 32B |
| Number of Layers (Dense layer included) | 61 |
| Number of Dense Layers | 1 |
| Attention Hidden Dimension | 7168 |
| MoE Hidden Dimension (per Expert) | 2048 |
| Number of Attention Heads | 64 |
| Number of Experts | 384 |
| Selected Experts per Token | 8 |
| Number of Shared Experts | 1 |
| Vocabulary Size | 160K |
| Context Length | 128K |
| Attention Mechanism | MLA |
| Activation Function | SwiGLU |
• Bold denotes global SOTA, and underlined denotes open-source SOTA. • Data points marked with * are taken directly from the model's tech report or blog. • 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. • 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. • To ensure the stability of the evaluation, we employed avg@k on the AIME, HMMT, CNMO, PolyMath-en, GPQA-Diamond, EvalPlus, Tau2. • Some data points have been omitted due to prohibitively expensive evaluation costs.
• 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. • All models are evaluated using the same evaluation protocol.
[!Note] You can access Kimi K2's API on https://platform.moonshot.ai , we provide OpenAI/Anthropic-compatible API for you.
The Anthropic-compatible API maps temperature by
real_temperature = request_temperature * 0.6for better compatible with existing applications.
Our model checkpoints are stored in the block-fp8 format, you can find it on Huggingface.
Currently, Kimi-K2 is recommended to run on the following inference engines:
Deployment examples for vLLM and SGLang can be found in the Model Deployment Guide.
Once the local inference service is up, you can interact with it through the chat endpoint:
def simple_chat(client: OpenAI, model_name: str):
messages = [
{"role": "system", "content": "You are Kimi, an AI assistant created by Moonshot AI."},
{"role": "user", "content": [{"type": "text", "text": "Please give a brief self-introduction."}]},
]
response = client.chat.completions.create(
model=model_name,
messages=messages,
stream=False,
temperature=0.6,
max_tokens=256
)
print(response.choices[0].message.content)
[!NOTE] The recommended temperature for Kimi-K2-Instruct is
temperature = 0.6. If no special instructions are required, the system prompt above is a good default.
Kimi-K2-Instruct has strong tool-calling capabilities. 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.
The following example demonstrates calling a weather tool end-to-end:
# Your tool implementation
def get_weather(city: str) -> dict:
return {"weather": "Sunny"}
# Tool schema definition
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Retrieve current weather information. Call this when the user asks about the weather.",
"parameters": {
"type": "object",
"required": ["city"],
"properties": {
"city": {
"type": "string",
"description": "Name of the city"
}
}
}
}
}]
# Map tool names to their implementations
tool_map = {
"gQuoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.