---
license: other
license_name: "kimi-k3.1-pro"
library_name: transformers
pipeline_tag: image-text-to-text
base_model:
- moonshotai/Kimi-K3.1-Pro
tags:
- compressed-tensors
- conversational
- moe
- pruning
- expert-pruning
extra_gated_heading: "Notification Commitment"
extra_gated_prompt: >-
  This repository contains a version of the Base Model that has been compressed and optimized by
  Nota Inc. ("Nota").


  By requesting access, you agree that, if you or your affiliates meet any of the following criteria,
  you will notify Nota at [contact@nota.ai] before engaging in the applicable activity described below:


  (i) your consolidated annual revenue, together with that of your affiliates, exceeds USD 100,000,000,
  and you intend to use this model for a commercial purpose;


  (ii) you design, manufacture, or sell semiconductors, AI accelerators, NPUs, SoCs, or hardware
  incorporating any of the foregoing, and you intend to distribute this model in connection with such
  products; or


  (iii) you intend to offer this model, or a model derived from it, as part of a paid product, SDK, or
  hosted service.


  This notification commitment is a separate contractual undertaking associated solely with your request
  for access to this repository.


  Nothing contained in this Model Card should be interpreted as or deemed a restriction, modification, or
  supersession of any applicable license governing this model.
extra_gated_description: >-
  Nota processes the information below to manage access to this repository and the Notification
  Commitment.
extra_gated_button_content: "Agree and request access"
extra_gated_fields:
  Full name: text
  Organization (full legal name): text
  Work email: text
  Country: country
  Organization type:
    type: select
    options:
    - Academic / Research institution
    - Startup / SME
    - Large enterprise (annual revenue over USD 100M)
    - Semiconductor / AI hardware company
    - Individual
    - Other
  Intended use:
    type: select
    options:
    - Research / evaluation (non-commercial)
    - Internal commercial use
    - Paid product, SDK or hosted service
    - Distribution with hardware products
    - Other
  I agree to the Notification Commitment above and to the processing of my information as described: checkbox
---

# Kimi-K3.1-Pro-Global-Pruned-30

This model applies Nota AI's non-uniform expert pruning (30.4% of routed experts removed) to
[moonshotai/Kimi-K3.1-Pro](https://huggingface.co/moonshotai/Kimi-K3.1-Pro).

<p align="center">
  512K context on <b>8 x B200 (TP8)</b> with a <b>1,045 GiB</b> checkpoint, FP8 KV cache and DSpark speculative decoding<br>
  <sub>The original MXFP4 checkpoint (<b>1,454 GiB</b>) does not fit in 8 x B200 memory; the vLLM recipe serves it on
  <b>8 x B300</b>. 512K uses <code>--gpu-memory-utilization 0.98</code>; all other arguments follow the vLLM recipe.</sub>
</p>

- Routed experts: 82,432 → 57,408 (600–712 per layer; the first two and last two MoE layers keep all 896; layer 0 is dense)
- Experts per layer: `text_config.num_experts_per_layer` in `config.json`; kept expert ids: `pruning_info.json`
- Checkpoint size: 1,454 GiB → 1,045 GiB
- With the [vLLM recipe](https://recipes.vllm.ai/moonshotai/Kimi-K3.1-Pro) settings plus FP8 KV cache
  (max-model-len 524,288), this model serves on NVIDIA B200 × 8 (TP8) with a KV cache of 663,070 tokens, speculative
  decoding and the vision encoder enabled, while the original checkpoint does not fit on B200 × 8
- Not supported with this checkpoint: expert parallel load balancing (EPLB) and the `latency_specialized` decode path

## Installation

Kimi-K3.1-Pro support is not in a vLLM release yet; use the `vllm/vllm-openai:kimi-k31` image
(vLLM `0.1.dev24216+g266e88c05`) and patch the vLLM package inside it.

```bash
cd patch
python apply_patch.py --dry-run     # show the changes
python apply_patch.py               # apply the patch (originals are backed up to vllm/.nota_patch_backup/)
python apply_patch.py --revert      # restore the original files
```

```bash
export VLLM_ENGINE_READY_TIMEOUT_S=3600
vllm serve <this repo> \
  --trust-remote-code \
  --tensor-parallel-size 8 \
  --load-format fastsafetensors \
  --enable-auto-tool-choice \
  --tool-call-parser kimi_k3 \
  --reasoning-parser kimi_k3 \
  --speculative-config '{"model":"Inferact/Kimi-K3.1-Pro-DSpark-preview","num_speculative_tokens":5,"method":"dspark","draft_sample_method":"probabilistic"}' \
  --kv-cache-dtype fp8 \
  --max-model-len 524288 \
  --gpu-memory-utilization 0.98 \
  --max-num-batched-tokens 8192 \
  --max-num-seqs 128 \
  --disable-flashinfer-autotune
```

## Performance (vs. the original)

| Benchmark | Original (model card) | Ours (B200 × 8) | Δ |
|---|---|---|---|
| IFEval (English) | - | 97.31 | - |
| IFBench (English) | - | 82.21 | - |
| GPQA-Diamond (English) | 94.20 | 94.44 | +0.24 |
| AIME 2026 (English) | - | 99.17 | - |
| LiveCodeBench v6 (English) | - | 92.37 | - |
| BenchMAX IFEval-ko (Korean) | - | 93.56 | - |
| KoBALT (Korean) | - | 73.72 | - |
| CLIcK (Korean) | - | 86.35 | - |

- Max generation length: 65,536 tokens (including reasoning); reasoning effort max, temperature 1.0, top-p 0.95
  (the settings of the Kimi-K3.1-Pro model card)
- Original: score reported in the [Kimi-K3.1-Pro model card](https://huggingface.co/moonshotai/Kimi-K3.1-Pro); the
  other benchmarks are not reported there, and the original does not fit on B200 × 8 for our own evaluation

## Notification Commitment

The full Notification Commitment you agree to when requesting access to this repository is in
[`NOTIFICATION_COMMITMENT.md`](NOTIFICATION_COMMITMENT.md). If any of its criteria apply to you, notify Nota at
[contact@nota.ai](mailto:contact@nota.ai) in advance. This commitment does not restrict, modify, or supersede the
license below.

## License

This model is licensed under the [Kimi K3.1-Pro License](https://huggingface.co/moonshotai/Kimi-K3.1-Pro/blob/main/LICENSE) (`LICENSE`).

*You must not use this model in a manner that infringes, misappropriates, or otherwise violates any third party’s rights, including intellectual property rights.*
