Kimi-K3.1-Pro-Coding-720E

Unofficial expert-pruned derivative of moonshotai/Kimi-K3.1-Pro (revision d9e99b07), specialised for coding and coding-agent work. Not made, reviewed or endorsed by Moonshot AI.

⚑ Matching speculative-decoding draft: gureshov/Kimi-K3.1-Pro-Coding-720E-DSpark

The original LithosAI DSpark head was trained against the full model and guesses worse after pruning; this one is re-trained against Kimi-K3.1-Pro-Coding-720E. Offline mean acceptance length on held-out coding traffic: 5.49 vs 3.92 for the original head (block of 8). Lossless β€” it only changes speed. See Usage.

Each of the 92 MoE layers keeps 720 of 896 routed experts (βˆ’20 %). Everything else is untouched and byte-identical to the base model: the attention layers (69 KDA + 24 MLA/DSA), shared experts, router weights of the kept experts, embeddings, lm_head, the vision tower, the tokenizer and the chat template. Weights stay in the original MXFP4 QAT format (compressed-tensors mxfp4-pack-quantized). Size: 1.28 TB instead of ~1.56 TB.

What it is good at β€” and what it is not

Validated against the full Kimi-K3.1-Pro on a held-out 15 % of the calibration corpus (sessions not seen during calibration). Only differences larger than the noise between two identical runs are reported.

Domain Perplexity vs. full model Top-1 next-token accuracy vs. full model
Code +0.04 % (no loss) within noise
Coding-agent sessions (tool calls, reasoning) not worse βˆ’2.5β€¦βˆ’3 pp
General text (Wikipedia) +6.4 % βˆ’8 pp

Use it for programming and agentic coding. For general knowledge, writing or non-code tasks use the full model.

How it was made

Router statistics of the full model were collected on a corpus of source code and coding-agent sessions. In every MoE layer the 720 experts with the largest total contribution (routing frequency Γ— output magnitude) were kept; the other 176 were removed and the remaining experts renumbered. On the calibration corpus the removed experts had received 6.9 % of routing decisions on average (2.6–11.7 % per layer); no kept-expert weight was modified, no fine-tuning was done.

keep.json lists, for every layer, the original indices of the kept experts (layers) and per-layer statistics (info), so the mapping back to the base model is reproducible.

Usage

The checkpoint has the same layout as the base model with num_experts: 720 in config.json, so the base model's instructions apply unchanged (--trust-remote-code, the kimi_k3 reasoning and tool-call parsers, encoding_k3.py). 16 experts stay active per token.

For faster decoding, pair it with the matching DSpark draft head, for example in SGLang:

python -m sglang.launch_server \
  --model-path gureshov/Kimi-K3.1-Pro-Coding-720E \
  --trust-remote-code \
  --speculative-algorithm DSPARK \
  --speculative-draft-model-path gureshov/Kimi-K3.1-Pro-Coding-720E-DSpark \
  --speculative-dspark-block-size 7 \
  --speculative-num-draft-tokens 8

Tested only with a patched SGLang build on NVIDIA Ampere (sm80) with pipeline parallelism. Stock vLLM / SGLang on Hopper or Blackwell are expected to load it like the base model, but this has not been verified yet.

License

This model is a derivative work of Kimi-K3.1-Pro and is distributed under the Kimi K3.1-Pro License, Copyright (c) 2026 Moonshot AI. The license text is included unchanged; its conditions on Model-as-a-Service revenue and on displaying "Kimi K3.1-Pro" in large commercial products apply to anyone using this model.

Downloads last month
575
Safetensors
Model size
2.2T params
Tensor type
BF16
Β·
F32
Β·
U8
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for gureshov/Kimi-K3.1-Pro-Coding-720E

Finetuned
(27)
this model