A long-context DSpark speculator for
Kimi K3. It supports context lengths of up to 1 million tokens.
A DSpark speculator for the Kimi K3 target, enabling faster inference through speculative decoding.
DSpark extends the DFlash parallel-draft backbone with a Markov logit-bias head and a per-position confidence head. This checkpoint was trained with
SpecForge using hidden states from a live
SGLang target engine.
RULER V2 uses the 1M input configuration. Actual prompts span
1,000,432–1,047,925 tokens; partition acc_len is 4.4658 for MK, 4.3081 for
MV, and 3.9919 for QA.
SGLang Cookbook provides Kimi K3 deployment recipes.
1sglang serve \
2 --trust-remote-code \
3 --model-path moonshotai/Kimi-K3 \
4 --tp-size 8 \
5 --dcp-size 8 \
6 --mem-fraction-static 0.85 \
7 --max-mamba-cache-size 160 \
8 --max-running-requests 32 \
9 --cuda-graph-max-bs-decode 32 \
10 --reasoning-parser kimi_k3 \
11 --tool-call-parser kimi_k3 \
12 --host 0.0.0.0 \
13 --port 30000 \
14 --speculative-algorithm DSPARK \
15 --speculative-draft-model-path RadixArk/Kimi-K3-DSpark \
16 --speculative-dspark-block-size 7 \
17 --speculative-draft-attention-backend trtllm_mha \
18 --enable-linear-replayssm-spec \
19 --context-length 1048576 \
20 --chunked-prefill-size 16384