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

Unofficial fine-tune of the LithosAI/Kimi-K3.1-Pro-DSpark draft head for lossless speculative decoding with gureshov/Kimi-K3.1-Pro-Coding-720E (Kimi-K3.1-Pro with 720 of 896 experts kept, specialised for coding). Not made, reviewed or endorsed by LithosAI or Moonshot AI.

The original draft head was trained against the full Kimi-K3.1-Pro. After expert pruning, the target's hidden states and token distribution shift, and the original head guesses noticeably worse. This checkpoint re-trains it against the pruned target on coding and coding-agent traffic.

Speculative decoding is lossless: every kept token is drawn from the target's own distribution. The draft only changes speed.

Results

Offline acceptance on a held-out set (40 requests, 10,971 draft positions; requests not used for training), greedy target (temperature 0, as in the original card), block of 8 = current token + 7 drafted tokens, target = Kimi-K3.1-Pro-Coding-720E:

Draft Mean acceptance length
LithosAI/Kimi-K3.1-Pro-DSpark (original) 3.92
this checkpoint 5.49 (+40 %)

Share of draft positions where the first k drafted tokens were all accepted, and the mean acceptance length the same head would reach with a shorter block (this checkpoint):

k 1 2 3 4 5 6 7
first k accepted 0.83 0.72 0.65 0.61 0.58 0.56 0.53
acceptance length with k drafted tokens 1.83 2.55 3.21 3.82 4.40 4.96 5.49

Read these numbers with care.

  • The held-out requests come from the same distribution as the training data (coding and coding-agent sessions on the pruned target). They are not comparable with the 3.448 the original card reports on 10 public benchmarks against the full Kimi-K3.1-Pro. On general text or with the full model this checkpoint may be no better, or worse, than the original.
  • The figures are computed offline from target features recorded in serving. Acceptance measured live in serving (with sampling, tool-call grammars and real batching) is lower; end-to-end throughput has not been measured yet.

Training

  • Data: target features recorded in serving from 363 requests (39 GB): a mix of coding-agent traffic and multi-turn conversations the target generated itself. Only positions written by the model are supervised.
  • Recorded per request: the fused projection of target layers 7, 23, 67, 83, 91, the target's top-16 distribution at verification, and tokens.
  • Trained: the 5 decoder layers, the final norm and the Markov head. Frozen and copied unchanged: the target-feature projection, its norm and the confidence head. The token embedding and LM head are the target's and are not stored here.
  • Loss: 0.3 ร— cross-entropy to the target's token + 0.7 ร— cross-entropy to the target's top-16 distribution where recorded.
  • Schedule: 3 epochs, AdamW (ฮฒ 0.9/0.95), lr 2.5e-5 with 50 warm-up steps and cosine decay, then 1 more epoch from the best checkpoint at lr 1e-5. Block of 7 drafted tokens. One GPU.

The checkpoint has exactly the same tensors (names, shapes, dtypes) and config.json as the original.

Usage

Use it like the original head: replace the draft model path. 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): pipeline parallelism over 24 GPUs, with the draft running on the last stage behind an EAGLE-style relay. Stock SGLang / vLLM paths for DSpark are expected to load it like the original, but this has not been verified.

License

Derivative of LithosAI/Kimi-K3.1-Pro-DSpark, which is distributed under the Kimi K3.1-Pro License, Copyright (c) 2026 Moonshot AI. The license text is included unchanged, and its conditions apply to anyone using this model.

Downloads last month
69
Safetensors
Model size
2B params
Tensor type
BF16
ยท
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-DSpark

Finetuned
(1)
this model