Model reference · open weights
Kimi-K2.7-Code is an open-weight language model from moonshotai. Kimi-K2.7-Code (INT4) weighs 595 GB; the smallest configuration that runs it is 4× B200 180 GB.
Summary of the moonshotai/Kimi-K2.7-Code model card, 2026-10-01
What it is
| Released by | moonshotai |
|---|---|
| Released | 2026-06-11 |
| Parameters | 1026.9B |
| VRAM | 595 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … 8× H100 80 GB 13 smaller cards | — | — | — | |
| 8× A100 80 GB tensor parallel | — | — | 1K | 78.2 GB a card |
| 4× B200 180 GB tensor parallel | 12 | 3 | 98K | 176 GB a card |
| 8× H200 141 GB tensor parallel | 87 | 21 | all 256K | 138 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 599 GB | 601 GB |
| 5 | 602 GB | 610 GB |
| 8 | 603 GB | 617 GB |
| 16 | 608 GB | 636 GB |
| 32 | 617 GB | 673 GB |
| 64 | 636 GB | 746 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| Kimi-K2.7-Code (above) ↗ | 1026.9B | INT4 | 595 GB | 4× B200 180 GB |
| Kimi-K2.7-Code-NVFP4 ↗ packaged by nvidia |
— | NVFP4 | 595 GB | 4× B200 180 GB |
| Kimi-K2.7-Code-GGUF ↗ packaged by unsloth 10 builds: IQ1_M 304 GB … Q8_K_XL 595 GB |
— | GGUF | 464 GB | 4× H200 141 GB |
From the model card
Kimi K2.7 Code is a coding-focused agentic model built upon Kimi K2.6. With substantial improvements on real-world long-horizon coding tasks, it strengthens end-to-end task completion across complex software engineering workflows while improving token efficiency, reducing thinking-token usage by approximately 30% compared with Kimi K2.6.
| 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 | 256K |
| Attention Mechanism | MLA |
| Activation Function | SwiGLU |
| Vision Encoder | MoonViT |
| Parameters of Vision Encoder | 400M |
Kimi-K2.7-Code adopts the same native int4 quantization method as Kimi-K2-Thinking.
[!Note] You can access Kimi-K2.7-Code's API on https://platform.moonshot.ai and we provide OpenAI/Anthropic-compatible API for you. Currently, Kimi-K2.7-Code is recommended to run on the following inference engines:
Kimi-K2.7-Code has the same architecture as Kimi-K2.5/Kimi-K2.6, and the deployment method can be directly reused.
The version requirement for transformers is >=4.57.1, <5.0.0.
Deployment examples can be found in the Model Deployment Guide.
The usage demos below demonstrate how to call our official API. Note that Kimi-K2.7-Code forces thinking and preserve_thinking as True.
For third-party APIs deployed with vLLM or SGLang, please note that:
[!Note]
Chat with video content is an experimental feature and is only supported in our official API for now.
The recommended
temperaturewill be1.0for Thinking mode.The recommended
top_pis0.95.Instant mode is not supported.
This is a simple chat completion script which shows how to call K2.7-Code API in Thinking mode.
import openai
import base64
import requests
def simple_chat(client: openai.OpenAI, model_name: str):
messages = [
{'role': 'system', 'content': 'You are Kimi, an AI assistant created by Moonshot AI.'},
{
'role': 'user',
'content': [Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.