Instructions to use gureshov/Kimi-K3.1-Pro-Coding-720E with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gureshov/Kimi-K3.1-Pro-Coding-720E with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="gureshov/Kimi-K3.1-Pro-Coding-720E", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("gureshov/Kimi-K3.1-Pro-Coding-720E", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gureshov/Kimi-K3.1-Pro-Coding-720E with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gureshov/Kimi-K3.1-Pro-Coding-720E" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gureshov/Kimi-K3.1-Pro-Coding-720E", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/gureshov/Kimi-K3.1-Pro-Coding-720E
- SGLang
How to use gureshov/Kimi-K3.1-Pro-Coding-720E with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "gureshov/Kimi-K3.1-Pro-Coding-720E" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gureshov/Kimi-K3.1-Pro-Coding-720E", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "gureshov/Kimi-K3.1-Pro-Coding-720E" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gureshov/Kimi-K3.1-Pro-Coding-720E", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use gureshov/Kimi-K3.1-Pro-Coding-720E with Docker Model Runner:
docker model run hf.co/gureshov/Kimi-K3.1-Pro-Coding-720E
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
Model tree for gureshov/Kimi-K3.1-Pro-Coding-720E
Base model
moonshotai/Kimi-K3.1-Pro