Model reference · open weights

Kimi-K2.7-Code

LLMs moonshotai Vision + text 3 builds Its own licence terms 250k dl/mo

Kimi-K2.7-Code is an open-weight language model from moonshotai. Kimi-K2.7-Code-NVFP4 (NVFP4) weighs 595 GB; the smallest configuration that runs it is 4× B200 180 GB.

  • Kimi-K2.7-Code is a coding-focused agentic model developed by moonshotai that supports image and video inputs.
  • It features a Mixture-of-Experts architecture with 1026.9B total parameters and 32B activated parameters, operating with a 256K context length.
  • The model is released under a Modified MIT License and is designed for complex software engineering workflows.

Summary of the moonshotai/Kimi-K2.7-Code model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released bymoonshotai
Released2026-06-11
Parameters1026.9B
VRAM595 GB for the weights

What it runs on

Memory and cards for Kimi-K2.7-Code-NVFP4 (NVFP4)

595 GBweights, file size
40 MBcache per 1K tokens (8-bit)
3.7 GBruntime overhead, at least
262,144 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … 8× H100 80 GB
13 smaller cards
———
8× A100 80 GB
tensor parallel · FP4 without its speed-up here
——2K78.2 GB a card
4× B200 180 GB
tensor parallel
215172K176 GB a card
8× H200 141 GB
tensor parallel · FP4 without its speed-up here
15338all 256K138 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
1599 GB600 GB
5601 GB605 GB
8602 GB609 GB
16604 GB620 GB
32609 GB641 GB
64620 GB683 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
Kimi-K2.7-Code ↗ 1026.9BINT4 595 GB4× B200 180 GB
Kimi-K2.7-Code-NVFP4 (above) ↗
packaged by nvidia
—NVFP4 595 GB4× B200 180 GB
Kimi-K2.7-Code-GGUF ↗
packaged by unsloth
10 builds: IQ1_M 304 GB … Q8_K_XL 595 GB
—GGUF 464 GB4× H200 141 GB

From the model card

What moonshotai says about Kimi-K2.7-Code

Read the model card

1. Model Introduction

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.

2. Model Summary

ArchitectureMixture-of-Experts (MoE)
Total Parameters1T
Activated Parameters32B
Number of Layers (Dense layer included)61
Number of Dense Layers1
Attention Hidden Dimension7168
MoE Hidden Dimension (per Expert)2048
Number of Attention Heads64
Number of Experts384
Selected Experts per Token8
Number of Shared Experts1
Vocabulary Size160K
Context Length256K
Attention MechanismMLA
Activation FunctionSwiGLU
Vision EncoderMoonViT
Parameters of Vision Encoder400M

3. Evaluation Results

  1. General Testing Details
    • Unless stated otherwise, Kimi K2.7 Code and K2.6 were tested with thinking mode enabled via Kimi Code CLI at temperature = 1.0, top-p = 0.95, and a 262,144-token context length; GPT-5.5 ran in Codex with xhigh mode, and Opus 4.8 in Claude Code with xhigh mode. Aside from these differences, all benchmarks were evaluated under the same conditions.
  2. Coding Benchmarks
    • Kimi Code Bench V2 is our in-house benchmark designed to evaluate coding agents on realistic tasks. It has diversed software engineering tasks across 10+ mainstream programming languages and a full production tech stack covering tasks from internal engineering use cases, production incidents, and real-world open-source projects, with emphasis on backend services, infrastructure, performance engineering, systems programming, security, frontend development, and ML/data engineering.
    • Program Bench evaluates code-generation agents by asking them to recreate a program’s behavior from only a compiled binary and its documentation. It spans 200 tasks, from small CLI tools to large systems like FFmpeg and SQLite. Submissions are judged against over 248,000 fuzz-generated behavioral tests. In each task, the agent is given an executable and its documentation, but no source code, decompilation, or internet access. It must choose its own implementation language, build the full program from scratch, and pass a behavioral test suite comparing its output against the original binary.
    • MLS-Bench evaluates whether AI systems can invent generalizable and scalable ML methods. MLS-Bench-Lite is the official 30-task subset of MLS-Bench, covering LLM pretraining and post-training, robotics, world models, computer vision, reinforcement learning, optimization, ML systems, AI for Science, and more. Agents are given 5 hours to explore before submitting their solutions. Opus 4.8 is evaluated with the max effort setting in Claude Code.
  3. Agentic Benchmarks
    • Kimi Claw 24/7 Bench is our in-house benchmark for evaluating long-horizon agentic performance in persistent, multi-day coworking tasks. It spans 17 professional scenarios across 610 evaluation points, covering domains such as software engineering, ML research, recruiting, trading, marketing. All tasks are executed through the OpenClaw harness. The final score is the average pass rate across all evaluation points, and is averaged over 3 runs.
    • MCP-Atlas evaluates LLM performance on realistic tool-use tasks through the scalable MCPs. We followed the official MCP-Atlas evaluation configuration with a 100 tool-call budget, and with 32k max tokens per step. The final result is averaged over 3 runs.
    • MCPMark-Verified is a human-verified edition of MCPMark, a benchmark for evaluating MCP tool use across five real server environments — Notion, GitHub, Filesystem, Postgres, and Playwright. Each task has been re-checked by our team and the benchmark offical and will be open-sourced soon. We followed the official MCPMark evaluation configuration with a 100-step tool-call budget and 32k max tokens per step. The final result is averaged over 3 runs.

4. Native INT4 Quantization

Kimi-K2.7-Code adopts the same native int4 quantization method as Kimi-K2-Thinking.

5. Deployment

[!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:

  • vLLM
  • SGLang
  • KTransformers

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.


6. Model Usage

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 temperature will be 1.0 for Thinking mode.

  • The recommended top_p is 0.95.

  • Instant mode is not supported.

Chat Completion

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.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms