Kimi K2.7 Code

Chat Homepage Original License

ℹ️ Full BF16 Weights (dequantized)

This repository provides full bfloat16 weights for moonshotai/Kimi-K2.7-Code, which Moonshot AI released in native INT4 (pack-quantized / compressed-tensors) format.

The weights here are a faithful dequantization of the official INT4 release to bfloat16no fine-tuning, ablation, distillation, or other behavioral modification. quantization_config has been removed from config.json and dtype set to bfloat16, so the model loads as a standard full-precision transformers model.

Base model moonshotai/Kimi-K2.7-Code (© Moonshot AI, Modified MIT)
This repo BF16 dequantization by Blackfrost-AI
Precision bfloat16 (attention, shared experts, and routed experts all upcast from INT4)
Size ~2.05 TB · 64 safetensors shards · 70,310 tensors
Behavior Identical to the original — all architecture, capabilities, and evaluations below are Moonshot's
Intended use A full-precision base for re-quantization (GGUF / NVFP4 / FP8), fine-tuning, or research that needs unpacked weights

All credit for the model belongs to Moonshot AI. This conversion is provided under the same Modified MIT License as the original.


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

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
Weight Precision (this repo) BF16 (dequantized from native INT4)

3. Evaluation Results

Evaluations are those of the original moonshotai/Kimi-K2.7-Code. Dequantization to BF16 does not change model behavior; if anything it removes INT4 rounding.

Benchmark Kimi K2.6 Kimi K2.7 Code GPT-5.5 Claude Opus 4.8
Coding
Kimi Code Bench v250.962.069.067.4
Program Bench48.353.669.163.8
MLS Bench Lite26.735.135.542.8
Agentic
Kimi Claw 24/7 Bench42.946.952.850.4
MCP Atlas69.476.079.481.3
MCP Mark Verified72.881.192.976.4

4. Quantization / Precision

The original Kimi-K2.7-Code is released in native INT4 (pack-quantized), using the same method as Kimi-K2-Thinking.

This repository is the full BF16 dequantization of that release. The INT4 packed routed-expert weights were unpacked and dequantized to bfloat16; attention, shared experts, dense layer 0, embeddings, lm_head, and the vision tower (already BF16 in the original) are carried through unchanged. config.json has quantization_config removed and dtype: bfloat16, so it loads as a standard BF16 model — no compressed-tensors needed.

Use these weights as a full-precision starting point to re-quantize (GGUF, NVFP4, FP8, AWQ, …) or to fine-tune.

5. Deployment

Kimi-K2.7-Code has the same architecture as Kimi-K2.5/Kimi-K2.6, and the deployment method can be directly reused. Recommended inference engines:

  • vLLM
  • SGLang
  • KTransformers

This BF16 checkpoint loads with trust_remote_code=True at dtype=torch.bfloat16. Note it is ~2 TB — plan tensor-parallel/offload accordingly. For the original INT4 release and its official deployment guide, see moonshotai/Kimi-K2.7-Code.

6. Model Usage

Usage is identical to the original model (forced thinking + preserve_thinking). See the original model card for chat-completion, vision, preserve-thinking, and tool-call examples. The chat template and tokenizer in this repo are the originals, unchanged.

7. License

Released under the Modified MIT License, the same license as the original model weights. Copyright © 2026 Moonshot AI. This BF16 conversion by Blackfrost-AI is distributed under the same terms.

8. Third Party Notices

See THIRD PARTY NOTICES.

9. Acknowledgements & Contact

Full credit to Moonshot AI for creating and open-sourcing Kimi-K2.7-Code. This repository only redistributes a dequantized copy of their weights. For questions about the original model, contact support@moonshot.ai.

Downloads last month
22
Safetensors
Model size
1T params
Tensor type
BF16
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for BlackfrostAI/Kimi-K2.7-Code-BF16

Finetuned
(9)
this model