Kimi K2.7 Code is a long-horizon coding and agent-specialized model built on an MoE architecture (1T total parameters / 32B active) , natively integrating the MoonViT multimodal vision encoder and out-of-the-box INT4 quantization, achieving a massive leap in coding performance while cutting thinking token consumption by roughly 30% compared to K2.6.
Base architecture: MoE architecture with 61 layers in total (including 1 dense layer) , 384 experts, activating 8 routed experts + 1 shared expert per token.
Attention and activation: Multi-Head Latent Attention (MLA) mechanism, SwiGLU activation function, 160K vocabulary size, and 256K context window.
Vision module: MoonViT vision encoder (400M parameters) , supporting native image and video inputs.
Quantization and deployment: Native INT4 quantization support (~595GB model weights) , compatible with vLLM, SGLang, and KTransformers inference backends.
Evaluation parameters: Thinking mode strictly enabled (preserve_thinking=True) , temperature=1.0, top_p=0.95.
Official benchmark comparison matrix published in the Model Card (percentage scores) :
| Benchmark Category | Benchmark | Kimi K2.6 | Kimi K2.7 Code | GPT-5.5 | Claude Opus 4.8 |
|---|---|---|---|---|---|
| Coding | Kimi Code Bench v2 | 50.9 | 62.0 (+11.1) | 69.0 | 67.4 |
| Program Bench | 48.3 | 53.6 (+5.3) | 69.1 | 63.8 | |
| MLS Bench Lite | 26.7 | 35.1 (+8.4) | 35.5 | 42.8 | |
| Agent / Tool Calling | Kimi Claw 24/7 Bench | 42.9 | 46.9 (+4.0) | 52.8 | 50.4 |
| MCP Atlas | 69.4 | 76.0 (+6.6) | 79.4 | 81.3 | |
| MCP Mark Verified | 72.8 | 81.1 (+8.3) | 92.9 | 76.4 |
Significant leaps in code generation and multilingual capabilities: On the multilingual software engineering benchmark MLS Bench Lite, the score surged from 26.7 to 35.1 (approaching GPT-5.5's 35.5) , while Kimi Code Bench v2 saw an 11.1 percentage point gain.
Exceptional performance across MCP and Agent protocols: Reaching 81.1% on MCP Mark Verified, it surpasses Claude Opus 4.8 (76.4%) , demonstrating high-fidelity structured tool-following capabilities.
Inference efficiency optimization: Official figures indicate that K2.7 reduces unproductive overthinking (overthinking) tokens by an average of 30% compared to K2.6 in long-horizon tasks, accelerating end-to-end response latency and cutting API serving costs.
Several benchmarks in the official comparison table are internally developed evaluation suites by Moonshot (such as Kimi Code Bench v2 and Kimi Claw 24/7) , which require cross-validation against open-source third-party benchmarks.
The mandatory requirement to preserve reasoning_content introduces compatibility barriers for third-party clients and API gateways that do not support reasoning field round-tripping.
Deploy with vLLM or SGLang: python3 -m sglang.launch_server --model-path "moonshotai/Kimi-K2.7-Code" --port 30000.
Maintain temperature=1.0, top_p=0.95, and thinking={"type": "enabled"}.
In multi-turn conversations, preserve and return the previous assistant message's reasoning_content verbatim.
Run the MCP Mark Verified and MLS Bench test suites respectively, logging success rates and token consumption.
The official Hugging Face README explicitly outlines the full model architectural hyperparameter table, benchmark score comparison matrix, INT4 quantization specifications, and multimodal video inference sample code.
Official statement: "Kimi K2.7 Code 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."
Kimi K2.7 Code